From 26c82ce13697e1af5950f4935ecff83c6453f351 Mon Sep 17 00:00:00 2001 From: David Plowman Date: Thu, 4 Aug 2022 11:45:50 +0100 Subject: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/libcamera/formats.cpp | 2 +- src/libcamera/v4l2_pixelformat.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp index f06bb4a7..0bd0e09a 100644 --- a/src/libcamera/formats.cpp +++ b/src/libcamera/formats.cpp @@ -509,7 +509,7 @@ const std::map 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, diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp index 792acc1b..3590fb73 100644 --- a/src/libcamera/v4l2_pixelformat.cpp +++ b/src/libcamera/v4l2_pixelformat.cpp @@ -131,6 +131,8 @@ const std::map 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" } }, -- cgit v1.2.1