v4l2object: set colorspace for output devices
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 29 Sep 2014 09:49:45 +0000 (11:49 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 30 Sep 2014 01:23:01 +0000 (21:23 -0400)
commitcfb4c021871ae65a8836401768c1b816229c1191
tree0a4062caaf101f30a124dc53fe3cca1e87327a4d
parent2a3adec2f769576fa4c950448756182884dbf10b
v4l2object: set colorspace for output devices

When the v4l2 device is an output device, the application shall set the
colorspace. So map GStreamer colorimetry info to V4L2 colorspace and set
on set_format. In case we have no colorimetry information, we try to
guess it according to pixel format and video size.

https://bugzilla.gnome.org/show_bug.cgi?id=737579
sys/v4l2/gstv4l2object.c