V4L2 Colorspace for RGB formats

Nicolas Dufresne
2016-01-19T18:00:54Z

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

Hi Hans,

we are having issues in GStreamer with the colorspace in V4L2. The API
does not provide any encoding for RGB formats. The encoding matrix for
those is usually the identity matrix, anything else makes very little
sense to me. For example, vivid will declare a stream with RGB based
pixel format as having the default for sRGB colorspace, which lead to
non-identity syCC encoding.

Shall we simply ignore the encoding set by drivers when the pixel
format is RGB based ? To me it makes very little sense, but the code in
GStreamer is very generic and this wrong information lead to errors
when the data is converted to YUV and back to RGB.

https://bugzilla.gnome.org/show_bug.cgi?id=759624

cheers,
Nicolas

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]