libcamera: Add pixel format BGRX8888
This patch adds pixel format BGRX8888 to libcamera. Additionally adds mapping of V4L2 pixel format (V4L2_PIX_FMT_XRGB32) to BGRX8888. Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
3715d1b21d
commit
4889464fd8
@@ -52,6 +52,7 @@ const std::map<V4L2PixelFormat, PixelFormat> vpf2pf{
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_RGB24), formats::BGR888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_BGR24), formats::RGB888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_XBGR32), formats::XRGB8888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_XRGB32), formats::BGRX8888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_RGBX32), formats::XBGR8888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_RGBA32), formats::ABGR8888 },
|
||||
{ V4L2PixelFormat(V4L2_PIX_FMT_ABGR32), formats::ARGB8888 },
|
||||
|
||||
Reference in New Issue
Block a user