[libcamera-devel] [PATCH v5 06/11] libcamera: bayer_format: Add unpacked mono 10-bit format to the conversion table
Naushir Patuck
naush at raspberrypi.com
Mon Nov 1 10:15:05 CET 2021
Add BayerFormat conversions for formats::R10 (10-bit unpacked) format.
Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/libcamera/bayer_format.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libcamera/bayer_format.cpp b/src/libcamera/bayer_format.cpp
index 120115ce8f62..8665a025f7e0 100644
--- a/src/libcamera/bayer_format.cpp
+++ b/src/libcamera/bayer_format.cpp
@@ -149,6 +149,8 @@ const std::map<BayerFormat, Formats, BayerFormatComparator> bayerToFormat{
{ formats::SRGGB16, V4L2PixelFormat(V4L2_PIX_FMT_SRGGB16) } },
{ { BayerFormat::MONO, 8, BayerFormat::Packing::None },
{ formats::R8, V4L2PixelFormat(V4L2_PIX_FMT_GREY) } },
+ { { BayerFormat::MONO, 10, BayerFormat::Packing::None },
+ { formats::R10, V4L2PixelFormat(V4L2_PIX_FMT_Y10) } },
{ { BayerFormat::MONO, 10, BayerFormat::Packing::CSI2 },
{ formats::R10_CSI2P, V4L2PixelFormat(V4L2_PIX_FMT_Y10P) } },
};
--
2.25.1
More information about the libcamera-devel
mailing list