libcamera: Correct typos and omissions for packed 10-bit raw monochrome format

One typo is corrected, and this format is added to one further table
where it was missing entirely.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman
2022-08-04 11:45:50 +01:00
committed by Laurent Pinchart
parent 73570c0637
commit 26c82ce136
2 changed files with 3 additions and 1 deletions

View File

@@ -509,7 +509,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
} },
{ formats::R10_CSI2P, {
.name = "R10_CSI2P",
.format = formats::R10,
.format = formats::R10_CSI2P,
.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_Y10P), },
.bitsPerPixel = 10,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,

View File

@@ -131,6 +131,8 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{
{ formats::R8, "8-bit Greyscale" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_Y10),
{ formats::R10, "10-bit Greyscale" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_Y10P),
{ formats::R10_CSI2P, "10-bit Greyscale Packed" } },
{ V4L2PixelFormat(V4L2_PIX_FMT_Y12),
{ formats::R12, "12-bit Greyscale" } },