libcamera: Add support for RGB565 format
Add support for RGB565 format. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
7855dc922f
commit
d9295552b1
3 changed files with 14 additions and 0 deletions
|
@ -233,6 +233,16 @@ const PixelFormatInfo pixelFormatInfoInvalid{};
|
|||
|
||||
const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
|
||||
/* RGB formats. */
|
||||
{ formats::RGB565, {
|
||||
.name = "RGB565",
|
||||
.format = formats::RGB565,
|
||||
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_RGB565),
|
||||
.bitsPerPixel = 16,
|
||||
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
||||
.packed = false,
|
||||
.pixelsPerGroup = 1,
|
||||
.planes = {{ { 3, 1 }, { 0, 0 }, { 0, 0 } }},
|
||||
} },
|
||||
{ formats::BGR888, {
|
||||
.name = "BGR888",
|
||||
.format = formats::BGR888,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue