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:
parent
6c6289ee18
commit
868ab2287d
1 changed files with 13 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue