gstreamer/sys/v4l2
Sjoerd Simons b6755a7000 Wait for a frame to become available before capturing it
Use GstPoll to wait for the fd of the video device to become readable before
trying to capture a frame. This speeds up stopping v4l2src a lot as it no
longer has to wait for the next frame, especially when capturing with low
framerates or when the video device just never generates a frame (which seems a
common issue for uvcvideo devices)

Fixes bug #563574.
2009-03-01 19:55:26 +01:00
..
.gitignore add cvsignores 2003-09-11 19:17:02 +00:00
gstv4l2.c sys/v4l2/gstv4l2.c: Give it a primary rank for autovideosrc. 2008-11-14 15:42:32 +00:00
gstv4l2colorbalance.c sys/v4l2/Makefile.am: Fix makefile, list libs in stack order. 2006-09-26 13:18:06 +00:00
gstv4l2colorbalance.h configure.ac: Detect video4linux headers on Solaris too. 2008-01-21 19:35:58 +00:00
gstv4l2object.c Wait for a frame to become available before capturing it 2009-03-01 19:55:26 +01:00
gstv4l2object.h Wait for a frame to become available before capturing it 2009-03-01 19:55:26 +01:00
gstv4l2src.c Wait for a frame to become available before capturing it 2009-03-01 19:55:26 +01:00
gstv4l2src.h sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty _init(). No need to memset instance structures. ... 2008-08-26 12:27:11 +00:00
gstv4l2tuner.c Fix comparison of the tuner norms 2009-01-30 14:42:44 +01:00
gstv4l2tuner.h sys/v4l2/gstv4l2tuner.*: Fix _set_channel(): remove useless g_object_notify() for "channel" property that doesn't exi... 2006-10-18 11:04:09 +00:00
gstv4l2vidorient.c sys/v4l2/: Fix compilation with newer GIT kernels that deprecated 2008-06-09 08:42:49 +00:00
gstv4l2vidorient.h sys/v4l2/Makefile.am: Fix makefile, list libs in stack order. 2006-09-26 13:18:06 +00:00
gstv4l2xoverlay.c sys/v4l2/gstv4l2xoverlay.*: Fix build as per the patch in #338818 comment 36. 2006-10-09 07:01:19 +00:00
gstv4l2xoverlay.h sys/v4l2/gstv4l2xoverlay.*: Fix build as per the patch in #338818 comment 36. 2006-10-09 07:01:19 +00:00
Makefile.am Optionally use libv4l to access v4l2 devices. Fixes bug #545033. 2008-11-04 12:32:48 +00:00
README Fix level for multi-channel case. 2007-02-22 14:35:28 +00:00
v4l2_calls.c Wait for a frame to become available before capturing it 2009-03-01 19:55:26 +01:00
v4l2_calls.h Optionally use libv4l to access v4l2 devices. Fixes bug #545033. 2008-11-04 12:32:48 +00:00
v4l2src_calls.c Wait for a frame to become available before capturing it 2009-03-01 19:55:26 +01:00
v4l2src_calls.h sys/v4l2/v4l2_calls.c: Treat ENOTTY (driver does not implement ioctl) the same as 2008-01-31 16:12:28 +00:00

v4l2 plugins
============

The idea is a bit the same as the idea for the v4l1 plugins. We want
one generic v4l2element, and a few child objects (probably only two:
v4l2src and v4l2sink):

                /-------- v4l2src
v4l2element ---=
                \-------- v4l2sink

Both v4l2src and v4l2sink have a uncompressed and a compressed
recording-/playback-mode. Since this is all part of v4l2, the 'client'
of these elements, i.e. an application using v4l2src/v4l2sink, will
hardly notice this. All capsnego stuff is done inside, and the plugin
knows which formats are compressed and which are not.

Please note that the v4l1 and the v4l2 plugins are *not* compatible
concerning properties. Naming has been kept the same where possible,
but in some cases, properties had to be removed or added to make
full use of v4l2.

V4L2 API: http://linux.bytesex.org/v4l2/.
          http://v4l2spec.bytesex.org/
          /usr/include/linux/videodev2.h or

Kernel patches available from
          http://dl.bytesex.org/patches/.

Articles:
          http://lwn.net/Articles/203924/