util: do not redefine bool in C++
Signed-off-by: Hervé Fache <h-fache@ti.com>
Signed-off-by: Hervé Fache <h-fache@ti.com>
display-kms: add option to disable multiplanar
Signed-off-by: Hervé Fache <h-fache@ti.com>
Conflicts:
util/display-kms.c
Signed-off-by: Hervé Fache <h-fache@ti.com>
Conflicts:
util/display-kms.c
disp_open: do not crash on error
Signed-off-by: Hervé Fache <h-fache@ti.com>
Signed-off-by: Hervé Fache <h-fache@ti.com>
display: add close "virtual" function
Change the per-display close function into a proper "virtual" function
mechanism with function pointer in the display structure. This fixes the
segfault, when closing a kms display.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Change the per-display close function into a proper "virtual" function
mechanism with function pointer in the display structure. This fixes the
segfault, when closing a kms display.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test: handle non-multiplanar
Latest non-multiplanar dri2video in xf86-video-omap now uses a single buffer
under x11 instead of separate Y and U/V. Adapt viddec3test, like gst-ducati
does, and keep KMS multiplanar functional.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Latest non-multiplanar dri2video in xf86-video-omap now uses a single buffer
under x11 instead of separate Y and U/V. Adapt viddec3test, like gst-ducati
does, and keep KMS multiplanar functional.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
display: new multiplanar qualifier
Introduce a new "qualifier" on displays and display buffers, to keep track of
whether we have a single buffer for Y/U/V or if we have Y and U/V separated.
KMS display buffers are multiplanar, and X11 display buffers are
non-multiplanar since latest non-multiplanar dri2video in xf86-video-omap.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Introduce a new "qualifier" on displays and display buffers, to keep track of
whether we have a single buffer for Y/U/V or if we have Y and U/V separated.
KMS display buffers are multiplanar, and X11 display buffers are
non-multiplanar since latest non-multiplanar dri2video in xf86-video-omap.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test: new option --loop
Allow to playback in loop; in which case we rewind when reaching the end of the
stream.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Allow to playback in loop; in which case we rewind when reaching the end of the
stream.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
demux: add rewind
New demux_rewind() function, to seek to frame 0 of a stream and allow playback
in a loop.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
New demux_rewind() function, to seek to frame 0 of a stream and allow playback
in a loop.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test: new option --no-process
Allows to specify from command line that we do not actually want to call
VIDDEC3_process method. This is for benchmarking. Note that rate control will
still work.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Allows to specify from command line that we do not actually want to call
VIDDEC3_process method. This is for benchmarking. Note that rate control will
still work.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
disp: new option --debug and dynamic debug
We introduce a new DBG() macro for debug printing, which can be enabled or
disabled at runtime. This, to allow benchmarking.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
We introduce a new DBG() macro for debug printing, which can be enabled or
disabled at runtime. This, to allow benchmarking.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
disp: new option --no-post to disable buffers posting
This allows to disable display updates from command line for benchmarking
purposes. This is done by overriding the display post_buffer() and
post_vid_buffer() functions with empty ones. Note that rate control does still
work.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
This allows to disable display updates from command line for benchmarking
purposes. This is done by overriding the display post_buffer() and
post_vid_buffer() functions with empty ones. Note that rate control does still
work.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
disp: new option --fps to maintain playback rate
Add a new rate control mechanism to the generic display, to allow forcing the
playback rate from command line.
We add rate control calls in the generic display functions disp_post_buffer()
and disp_post_vid_buffer(). As this is in the generic display part, x11 and kms
(and future) displays benefit from that mechanism.
We use the mark() and usleep() functions for the rate control implementation,
and we do also filter a bit the sleep duration, to avoid being too "choppy".
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Add a new rate control mechanism to the generic display, to allow forcing the
playback rate from command line.
We add rate control calls in the generic display functions disp_post_buffer()
and disp_post_vid_buffer(). As this is in the generic display part, x11 and kms
(and future) displays benefit from that mechanism.
We use the mark() and usleep() functions for the rate control implementation,
and we do also filter a bit the sleep duration, to avoid being too "choppy".
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
mark(): handle one second change properly
We handle one second change properly. Two seconds and more will still lead to
erroneous deltas.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
We handle one second change properly. Two seconds and more will still lead to
erroneous deltas.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test: -h, --help command line options
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Ignore tags
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Add disp_close, disp_x11_close
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test: better initialization of buffer fields
We zero the allocated structures and initialize more fields to their correct
values. This, to avoid complaints from the codec.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
We zero the allocated structures and initialize more fields to their correct
values. This, to avoid complaints from the codec.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
add NOCONFIGURE support to autogen.sh
add --disable-x11 option
For example, if you have x11/libdri2 but don't want to build x11
support, or if you have a pre-dri2video version of libdri2.
For example, if you have x11/libdri2 but don't want to build x11
support, or if you have a pre-dri2video version of libdri2.
Preserve user $CFLAGS
Do not override the $CFLAGS variable internally to allow specifying it at
configure time. Keep the Linux kernel include path flags in a separate
LIN_CFLAGS variable.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Do not override the $CFLAGS variable internally to allow specifying it at
configure time. Keep the Linux kernel include path flags in a separate
LIN_CFLAGS variable.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
util: silence the compiler
The compiler complains about this:
util.c: In function 'disp_get_vid_buffers':
util.c:76:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
This patch makes the counter variable unsigned too.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
The compiler complains about this:
util.c: In function 'disp_get_vid_buffers':
util.c:76:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
This patch makes the counter variable unsigned too.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
configure.ac: pass kernel source path
By default the configure.ac only checked for videodev2.h in
/usr/src/linux-headers-$kversion.
With this patch the user can pass the kernel source path with the parameter
--with-kernel-source.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
By default the configure.ac only checked for videodev2.h in
/usr/src/linux-headers-$kversion.
With this patch the user can pass the kernel source path with the parameter
--with-kernel-source.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
fliptest: request OMAP_BO_SCANOUT buffers
Works on OMAP5 µEVM.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Works on OMAP5 µEVM.
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Add linux-headers include dir
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
fixes for proper stride for tiled buffers
viddec: support for multiple decoder instances
Enable support for testing multiple decoders in a single process.
Enable support for testing multiple decoders in a single process.
x11: only open driver once
This is needed if you have multiple dri2video windows in a single
process, since GEM handles only have meaning within the context of
a single file-open.
This is needed if you have multiple dri2video windows in a single
process, since GEM handles only have meaning within the context of
a single file-open.
viddec3test: add profiling for render times
camera/v4l2 fixes
add missing #include's for config.h
WIP: x11/dri2video support
fix typo in checking for libdri2
Only enable v4l2/dmabuf tests if supported
Test v4l2 headers, and only enable v4l2/dmabuf tests if dmabuf support
is detected.
Test v4l2 headers, and only enable v4l2/dmabuf tests if dmabuf support
is detected.
add viddec3 decoder test
add video buffer lock/unlock API
Intended to make life easier for clients like video decode test, which
needs a pool of buffers it can allocate from, and later free back to.
Intended to make life easier for clients like video decode test, which
needs a pool of buffers it can allocate from, and later free back to.
add video buffer support
v4l2: add mcf pipeline setup
The MEDIA_IOC_SETUP_LINK sometimes fails with a timeout msg, and DQBUF
still hangs, but at least now it isn't failing at STREAMON.
The MEDIA_IOC_SETUP_LINK sometimes fails with a timeout msg, and DQBUF
still hangs, but at least now it isn't failing at STREAMON.
Initial commit