libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info

Add the missing 16-bit MEDIA_BUS_FMT_xxxx16_1X16 definitions to the
mediaBusFormatInfo table.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Naushir Patuck
2024-05-10 11:02:06 +01:00
committed by Kieran Bingham
parent 8c93055043
commit 84ed4456fc

View File

@@ -651,6 +651,34 @@ const std::map<uint32_t, MediaBusFormatInfo> mediaBusFormatInfo{
.bitsPerPixel = 14,
.colourEncoding = PixelFormatInfo::ColourEncodingRAW,
} },
{ MEDIA_BUS_FMT_SBGGR16_1X16, {
.name = "SBGGR16_1X16",
.code = MEDIA_BUS_FMT_SBGGR16_1X16,
.type = MediaBusFormatInfo::Type::Image,
.bitsPerPixel = 16,
.colourEncoding = PixelFormatInfo::ColourEncodingRAW
} },
{ MEDIA_BUS_FMT_SGBRG16_1X16, {
.name = "SGBRG16_1X16",
.code = MEDIA_BUS_FMT_SGBRG16_1X16,
.type = MediaBusFormatInfo::Type::Image,
.bitsPerPixel = 16,
.colourEncoding = PixelFormatInfo::ColourEncodingRAW
} },
{ MEDIA_BUS_FMT_SGRBG16_1X16, {
.name = "SGRBG16_1X16",
.code = MEDIA_BUS_FMT_SGRBG16_1X16,
.type = MediaBusFormatInfo::Type::Image,
.bitsPerPixel = 16,
.colourEncoding = PixelFormatInfo::ColourEncodingRAW
} },
{ MEDIA_BUS_FMT_SRGGB16_1X16, {
.name = "SRGGB16_1X16",
.code = MEDIA_BUS_FMT_SRGGB16_1X16,
.type = MediaBusFormatInfo::Type::Image,
.bitsPerPixel = 16,
.colourEncoding = PixelFormatInfo::ColourEncodingRAW
} },
/* \todo Clarify colour encoding for HSV formats */
{ MEDIA_BUS_FMT_AHSV8888_1X32, {
.name = "AHSV8888_1X32",