mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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:
parent
5d14746792
commit
710ab7f083
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue