gstreamer/sys/v4l2
Aurélien Zanelli c163250f0d v4l2object: probe all colorspace supported by device
A device can support more than one colorspace for a given image
dimension and pixel format. So we have to probe all the supported
colorspace and not only rely on the default one. Otherwise we could end
up with negotiation failure if the caps colorimetry field don't match
the v4l2 device default one even if the v4l2 could support such
colorimetry.

This patch enable probing if colorspace for both capture and output
device. It really makes sense for output device since the colorspace
shall be set by the application and a little less for capture device
which, at the moment, shall provide the colorspace; ie: the v4l2
specification seems to not take into account the fact that a capture
device could do colorspace conversion.

As a side effet, probing takes some times and so sligthly delay v4l2
initialization. Note that this patch only probe colorspace and not all
colorspace, matrix, transfer and range combination to avoid taking too
much time, especially with low-speed devices as full probing do 1782
ioctl.

https://bugzilla.gnome.org/show_bug.cgi?id=755937
2016-03-24 14:05:45 -04:00
..
ext v4l2: Update kernel headers to latest from media tree 2015-06-08 17:56:48 -04:00
gstv4l2.c v4l2-probe: Skip devices without supported formats 2015-11-25 14:31:29 -05:00
gstv4l2allocator.c v4l2allocator: Fix spelling of reenqueueing 2016-02-08 15:35:19 +00:00
gstv4l2allocator.h gstv4l2bufferpool: handle -EPIPE from DQBUF to signal EOS 2015-06-09 21:56:40 -04:00
gstv4l2bufferpool.c v4l2: don't use undeclared core debug category symbols 2016-02-20 11:51:56 +00:00
gstv4l2bufferpool.h v4l2: Workaround driver not setting field correctly 2015-03-01 14:03:04 -05:00
gstv4l2colorbalance.c Fix FSF address 2012-11-04 00:07:18 +00:00
gstv4l2colorbalance.h Fix FSF address 2012-11-04 00:07:18 +00:00
gstv4l2deviceprovider.c v4l2: Don't free props structure twice. 2016-01-20 18:23:37 +11:00
gstv4l2deviceprovider.h pulse, v4l2: add missing G_END_DECLS in some places 2014-10-28 21:32:06 +00:00
gstv4l2object.c v4l2object: probe all colorspace supported by device 2016-03-24 14:05:45 -04:00
gstv4l2object.h v4l2: add gst_v4l2_object_probe_caps 2015-11-25 14:32:28 -05:00
gstv4l2radio.c Fix FSF address 2012-11-04 00:07:18 +00:00
gstv4l2radio.h Fix FSF address 2012-11-04 00:07:18 +00:00
gstv4l2sink.c v4l2: query crop configuration after each call of S_CROP 2015-02-26 08:38:32 -05:00
gstv4l2sink.h v4l2: De-duplicate caps probing between src and sink 2013-08-19 13:08:18 -04:00
gstv4l2src.c v4l2src: fix indentation 2016-02-19 15:03:41 +00:00
gstv4l2src.h v4l2src: device sequence/offset correction in case of renegotiation 2015-04-02 17:40:20 -04:00
gstv4l2transform.c v4l2-*: Configuring output pool correctly for using drivers min_buffer if present. 2016-01-04 16:32:28 -05:00
gstv4l2transform.h v4l2transform: Check if caps have changes before asserting 2014-05-08 15:56:36 -04:00
gstv4l2tuner.c v4l2: Use G_DEFINE_ macros for added thread safety 2013-08-19 12:48:35 -04:00
gstv4l2tuner.h pulse, v4l2: add missing G_END_DECLS in some places 2014-10-28 21:32:06 +00:00
gstv4l2videodec.c v4l2src: fix indentation 2016-02-19 15:03:41 +00:00
gstv4l2videodec.h v4l2: Add initial support for alignment and cropping 2014-05-08 15:56:35 -04:00
gstv4l2vidorient.c v4l2: Use a copy of videodev2.h header 2014-03-15 13:54:47 +01:00
gstv4l2vidorient.h Fix FSF address 2012-11-04 00:07:18 +00:00
Makefile.am Rename GstDeviceMonitor to GstDeviceProvider 2014-06-26 14:57:36 -04:00
README Fix level for multi-channel case. 2007-02-22 14:35:28 +00:00
tuner.c v4l2: Use G_DEFINE_ macros for added thread safety 2013-08-19 12:48:35 -04:00
tuner.h v4l2: remove unused enumtypes and use generic marshaller 2013-08-04 11:03:49 +01:00
tunerchannel.c v4l2: Use G_DEFINE_ macros for added thread safety 2013-08-19 12:48:35 -04:00
tunerchannel.h Fix FSF address 2012-11-04 00:07:18 +00:00
tunernorm.c v4l2: Use G_DEFINE_ macros for added thread safety 2013-08-19 12:48:35 -04:00
tunernorm.h Fix FSF address 2012-11-04 00:07:18 +00:00
v4l2-utils.c v4l2: Add a common device enumerator 2014-05-03 23:11:35 -04:00
v4l2-utils.h v4l2: Add a common device enumerator 2014-05-03 23:11:35 -04:00
v4l2_calls.c v4l2: cast unused return to void 2015-04-21 15:21:37 +01:00
v4l2_calls.h v4l2: Remove last include to linux/videodev2.h 2014-11-30 17:55:19 -05: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/