From 2ab8b8d48aa84f58b055ecf241d7c47b9fcb7a71 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Thu, 16 Nov 2023 09:24:40 +0000 Subject: libcamera: formats: Add 16-bit mono format Add the relevant definitions for a 16-bit mono pixel and media-bus format. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/libcamera/formats.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libcamera/formats.cpp') diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp index 447e6238..46ccd43b 100644 --- a/src/libcamera/formats.cpp +++ b/src/libcamera/formats.cpp @@ -507,6 +507,16 @@ const std::map pixelFormatInfo{ .pixelsPerGroup = 1, .planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }}, } }, + { formats::R16, { + .name = "R16", + .format = formats::R16, + .v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_Y16), }, + .bitsPerPixel = 16, + .colourEncoding = PixelFormatInfo::ColourEncodingYUV, + .packed = false, + .pixelsPerGroup = 1, + .planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }}, + } }, { formats::R10_CSI2P, { .name = "R10_CSI2P", .format = formats::R10_CSI2P, -- cgit v1.2.1