libcamera: bayer_format: Add Y12 to bayerToFormat
Support for Mono 12-bit formats were added to the mbusCodeToBayer table
without supplying the corresponding entry for converting the other way.
Add the relevant entry to the bayerToFormat table.
Fixes: ec63095716 ("libcamera: bayer_format: Add unpacked mono 12-bit format to the conversion table")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -170,6 +170,8 @@ const std::map<BayerFormat, Formats, BayerFormatComparator> bayerToFormat{
|
||||
{ formats::R10, V4L2PixelFormat(V4L2_PIX_FMT_Y10) } },
|
||||
{ { BayerFormat::MONO, 10, BayerFormat::Packing::CSI2 },
|
||||
{ formats::R10_CSI2P, V4L2PixelFormat(V4L2_PIX_FMT_Y10P) } },
|
||||
{ { BayerFormat::MONO, 12, BayerFormat::Packing::None },
|
||||
{ formats::R12, V4L2PixelFormat(V4L2_PIX_FMT_Y12) } },
|
||||
{ { BayerFormat::MONO, 16, BayerFormat::Packing::None },
|
||||
{ formats::R16, V4L2PixelFormat(V4L2_PIX_FMT_Y16) } },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user