libcamera: Add support for planar YVU420 format

Add support for planar YVU420.

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:
Niklas Söderlund 2020-07-18 16:13:21 +02:00
parent 3e7aa49344
commit 7855dc922f
3 changed files with 13 additions and 0 deletions

View file

@ -407,6 +407,16 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.pixelsPerGroup = 2,
.planes = {{ { 2, 1 }, { 1, 2 }, { 1, 2 } }},
} },
{ formats::YVU420, {
.name = "YVU420",
.format = PixelFormat(formats::YVU420),
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_YVU420),
.bitsPerPixel = 12,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
.packed = false,
.pixelsPerGroup = 2,
.planes = {{ { 2, 1 }, { 1, 2 }, { 1, 2 } }},
} },
{ formats::YUV422, {
.name = "YUV422",
.format = PixelFormat(formats::YUV422),