gstreamer: Add support for additional RGB formats

libcamerasrc only supports three RGB formats. Adding the other RGB
formats supported by libcamera is trivial, do so.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2022-08-23 21:22:47 +03:00
parent 6c6289ee18
commit 868ab2287d

View file

@ -19,9 +19,21 @@ static struct {
/* Compressed */
{ GST_VIDEO_FORMAT_ENCODED, formats::MJPEG },
/* RGB */
/* RGB16 */
{ GST_VIDEO_FORMAT_RGB16, formats::RGB565 },
/* RGB24 */
{ GST_VIDEO_FORMAT_RGB, formats::BGR888 },
{ GST_VIDEO_FORMAT_BGR, formats::RGB888 },
/* RGB32 */
{ GST_VIDEO_FORMAT_BGRx, formats::XRGB8888 },
{ GST_VIDEO_FORMAT_RGBx, formats::XBGR8888 },
{ GST_VIDEO_FORMAT_xBGR, formats::RGBX8888 },
{ GST_VIDEO_FORMAT_xRGB, formats::BGRX8888 },
{ GST_VIDEO_FORMAT_BGRA, formats::ARGB8888 },
{ GST_VIDEO_FORMAT_RGBA, formats::ABGR8888 },
{ GST_VIDEO_FORMAT_ABGR, formats::RGBA8888 },
{ GST_VIDEO_FORMAT_ARGB, formats::BGRA8888 },
/* YUV Semiplanar */