diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-05-19 10:06:20 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-19 13:56:54 +0300 |
commit | 4a7e5d3b8b1be4d8e9bbb00eaf00266f8c0aea9d (patch) | |
tree | b7ab28956d90815d9d73e5147a487fa286ac0b52 /src/libcamera/formats.cpp | |
parent | 1d49b3999401c7678872617639d775979bb08794 (diff) |
libcamera: formats: Add missing RGBX8888 info
Add missing RGBX8888 PixelFormatInfo.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/formats.cpp')
-rw-r--r-- | src/libcamera/formats.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp index 3e60ec7d..a4f27cd4 100644 --- a/src/libcamera/formats.cpp +++ b/src/libcamera/formats.cpp @@ -231,6 +231,19 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{ .pixelsPerGroup = 1, .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }}, } }, + { formats::RGBX8888, { + .name = "RGBX8888", + .format = formats::RGBX8888, + .v4l2Formats = { + .single = V4L2PixelFormat(V4L2_PIX_FMT_BGRX32), + .multi = V4L2PixelFormat(), + }, + .bitsPerPixel = 32, + .colourEncoding = PixelFormatInfo::ColourEncodingRGB, + .packed = false, + .pixelsPerGroup = 1, + .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }}, + } }, { formats::BGRX8888, { .name = "BGRX8888", .format = formats::BGRX8888, |