v4l2object: refactor gst_v4l2_object_get_colorspace to take a v4l2_format parameter
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 18 May 2016 08:17:12 +0000 (10:17 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:39:26 +0000 (17:39 -0400)
commitb5530a19a7b53064466b5487cc4e28547038c0e3
tree2536c621a4b39ad35599e94f0cf7227319b05eb1
parent1f31715c98616791293d0f9539d43845d7e0343e
v4l2object: refactor gst_v4l2_object_get_colorspace to take a v4l2_format parameter

Move the extraction of colorimetry parameters from struct v4l2_format and the
setting of the identity matrix for RGB formats into the function to avoid code
duplication.

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