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:
parent
3715d1b21d
commit
4889464fd8
2 changed files with 11 additions and 0 deletions
|
@ -205,6 +205,16 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
|
|||
.pixelsPerGroup = 1,
|
||||
.planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
|
||||
} },
|
||||
{ formats::BGRX8888, {
|
||||
.name = "BGRX8888",
|
||||
.format = formats::BGRX8888,
|
||||
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_XRGB32),
|
||||
.bitsPerPixel = 32,
|
||||
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
||||
.packed = false,
|
||||
.pixelsPerGroup = 1,
|
||||
.planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
|
||||
} },
|
||||
{ formats::ABGR8888, {
|
||||
.name = "ABGR8888",
|
||||
.format = formats::ABGR8888,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue