mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
v4l2: accept Bayer as possible input/output for V4L2 codecs
A V4L2 transform codec may input/output data on Bayer format. Add support for that.
This commit is contained in:
parent
55c1274dba
commit
dc7bd48326
1 changed files with 8 additions and 4 deletions
|
@ -158,10 +158,10 @@ static const GstV4L2FormatDesc gst_v4l2_formats[] = {
|
|||
{V4L2_PIX_FMT_NV42, TRUE, GST_V4L2_RAW},
|
||||
|
||||
/* Bayer formats - see http://www.siliconimaging.com/RGB%20Bayer.htm */
|
||||
{V4L2_PIX_FMT_SBGGR8, TRUE, GST_V4L2_CODEC},
|
||||
{V4L2_PIX_FMT_SGBRG8, TRUE, GST_V4L2_CODEC},
|
||||
{V4L2_PIX_FMT_SGRBG8, TRUE, GST_V4L2_CODEC},
|
||||
{V4L2_PIX_FMT_SRGGB8, TRUE, GST_V4L2_CODEC},
|
||||
{V4L2_PIX_FMT_SBGGR8, TRUE, GST_V4L2_RAW},
|
||||
{V4L2_PIX_FMT_SGBRG8, TRUE, GST_V4L2_RAW},
|
||||
{V4L2_PIX_FMT_SGRBG8, TRUE, GST_V4L2_RAW},
|
||||
{V4L2_PIX_FMT_SRGGB8, TRUE, GST_V4L2_RAW},
|
||||
|
||||
/* compressed formats */
|
||||
{V4L2_PIX_FMT_MJPEG, FALSE, GST_V4L2_CODEC},
|
||||
|
@ -1388,6 +1388,10 @@ gst_v4l2_object_v4l2fourcc_is_rgb (guint32 fourcc)
|
|||
case V4L2_PIX_FMT_BGR32:
|
||||
case V4L2_PIX_FMT_ABGR32:
|
||||
case V4L2_PIX_FMT_ARGB32:
|
||||
case V4L2_PIX_FMT_SBGGR8:
|
||||
case V4L2_PIX_FMT_SGBRG8:
|
||||
case V4L2_PIX_FMT_SGRBG8:
|
||||
case V4L2_PIX_FMT_SRGGB8:
|
||||
ret = TRUE;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue