v4l2: fix sRGB colorspace definition

V4l2 can also use the sRGB colorspace for YUV formats and thus needs a
default matrix.
This commit is contained in:
Wim Taymans 2016-01-22 10:03:50 +01:00
parent 5d14746792
commit 710ab7f083

View file

@ -1904,13 +1904,7 @@ gst_v4l2_object_get_colorspace (enum v4l2_colorspace colorspace,
cinfo->primaries = GST_VIDEO_COLOR_PRIMARIES_BT709;
break;
case V4L2_COLORSPACE_SRGB:
cinfo->range = GST_VIDEO_COLOR_RANGE_0_255;
cinfo->matrix = GST_VIDEO_COLOR_MATRIX_RGB;
cinfo->transfer = GST_VIDEO_TRANSFER_SRGB;
cinfo->primaries = GST_VIDEO_COLOR_PRIMARIES_BT709;
break;
case V4L2_COLORSPACE_JPEG:
/* This is in fact sYCC */
cinfo->range = GST_VIDEO_COLOR_RANGE_0_255;
cinfo->matrix = GST_VIDEO_COLOR_MATRIX_BT601;
cinfo->transfer = GST_VIDEO_TRANSFER_SRGB;