[{"id":31009,"web_url":"https://patchwork.libcamera.org/comment/31009/","msgid":"<20240831001819.GL3811@pendragon.ideasonboard.com>","date":"2024-08-31T00:18:19","subject":"Re: [PATCH v2 12/20] libcamera: v4l2_subdevice: Formatting\n\timprovements","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"On Fri, Aug 30, 2024 at 05:27:09PM +0200, Milan Zamazal wrote:\n> The LSP autoformatter doesn't like some of the current formatting, let's\n> make it happy.  In v4l2_subdevice.cpp, this causes larger changes,\n> extracted to a separate patch.\n\nNone of the changes here look good to me.\n\n> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>\n> ---\n>  src/libcamera/v4l2_subdevice.cpp | 1306 ++++++++++++++++--------------\n>  1 file changed, 693 insertions(+), 613 deletions(-)\n> \n> diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp\n> index 9f2ec479..38b448dc 100644\n> --- a/src/libcamera/v4l2_subdevice.cpp\n> +++ b/src/libcamera/v4l2_subdevice.cpp\n> @@ -90,616 +90,695 @@ namespace {\n>  \n>  const std::map<uint32_t, MediaBusFormatInfo> mediaBusFormatInfo{\n>  \t/* This table is sorted to match the order in linux/media-bus-format.h */\n> -\t{ MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE, {\n> -\t\t.name = \"RGB444_2X8_PADHI_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE, {\n> -\t\t.name = \"RGB444_2X8_PADHI_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE, {\n> -\t\t.name = \"RGB555_2X8_PADHI_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE, {\n> -\t\t.name = \"RGB555_2X8_PADHI_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB565_1X16, {\n> -\t\t.name = \"RGB565_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB565_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_BGR565_2X8_BE, {\n> -\t\t.name = \"BGR565_2X8_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_BGR565_2X8_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_BGR565_2X8_LE, {\n> -\t\t.name = \"BGR565_2X8_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_BGR565_2X8_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB565_2X8_BE, {\n> -\t\t.name = \"RGB565_2X8_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB565_2X8_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB565_2X8_LE, {\n> -\t\t.name = \"RGB565_2X8_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB565_2X8_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB666_1X18, {\n> -\t\t.name = \"RGB666_1X18\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB666_1X18,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 18,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_BGR888_1X24, {\n> -\t\t.name = \"BGR888_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_BGR888_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB888_1X24, {\n> -\t\t.name = \"RGB888_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB888_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB888_2X12_BE, {\n> -\t\t.name = \"RGB888_2X12_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB888_2X12_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_RGB888_2X12_LE, {\n> -\t\t.name = \"RGB888_2X12_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_RGB888_2X12_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_ARGB8888_1X32, {\n> -\t\t.name = \"ARGB8888_1X32\",\n> -\t\t.code = MEDIA_BUS_FMT_ARGB8888_1X32,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 32,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_Y8_1X8, {\n> -\t\t.name = \"Y8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_Y8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UV8_1X8, {\n> -\t\t.name = \"UV8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_UV8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY8_1_5X8, {\n> -\t\t.name = \"UYVY8_1_5X8\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY8_1_5X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY8_1_5X8, {\n> -\t\t.name = \"VYUY8_1_5X8\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY8_1_5X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV8_1_5X8, {\n> -\t\t.name = \"YUYV8_1_5X8\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV8_1_5X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU8_1_5X8, {\n> -\t\t.name = \"YVYU8_1_5X8\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU8_1_5X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY8_2X8, {\n> -\t\t.name = \"UYVY8_2X8\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY8_2X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY8_2X8, {\n> -\t\t.name = \"VYUY8_2X8\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY8_2X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV8_2X8, {\n> -\t\t.name = \"YUYV8_2X8\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV8_2X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU8_2X8, {\n> -\t\t.name = \"YVYU8_2X8\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU8_2X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_Y10_1X10, {\n> -\t\t.name = \"Y10_1X10\",\n> -\t\t.code = MEDIA_BUS_FMT_Y10_1X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 10,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY10_2X10, {\n> -\t\t.name = \"UYVY10_2X10\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY10_2X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY10_2X10, {\n> -\t\t.name = \"VYUY10_2X10\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY10_2X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV10_2X10, {\n> -\t\t.name = \"YUYV10_2X10\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV10_2X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU10_2X10, {\n> -\t\t.name = \"YVYU10_2X10\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU10_2X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_Y12_1X12, {\n> -\t\t.name = \"Y12_1X12\",\n> -\t\t.code = MEDIA_BUS_FMT_Y12_1X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_Y16_1X16, {\n> -\t\t.name = \"Y16_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_Y16_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY8_1X16, {\n> -\t\t.name = \"UYVY8_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY8_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY8_1X16, {\n> -\t\t.name = \"VYUY8_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY8_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV8_1X16, {\n> -\t\t.name = \"YUYV8_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV8_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU8_1X16, {\n> -\t\t.name = \"YVYU8_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU8_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YDYUYDYV8_1X16, {\n> -\t\t.name = \"YDYUYDYV8_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_YDYUYDYV8_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY10_1X20, {\n> -\t\t.name = \"UYVY10_1X20\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY10_1X20,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY10_1X20, {\n> -\t\t.name = \"VYUY10_1X20\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY10_1X20,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV10_1X20, {\n> -\t\t.name = \"YUYV10_1X20\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV10_1X20,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU10_1X20, {\n> -\t\t.name = \"YVYU10_1X20\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU10_1X20,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 20,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUV8_1X24, {\n> -\t\t.name = \"YUV8_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_YUV8_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUV10_1X30, {\n> -\t\t.name = \"YUV10_1X30\",\n> -\t\t.code = MEDIA_BUS_FMT_YUV10_1X30,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 30,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_AYUV8_1X32, {\n> -\t\t.name = \"AYUV8_1X32\",\n> -\t\t.code = MEDIA_BUS_FMT_AYUV8_1X32,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 32,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY12_2X12, {\n> -\t\t.name = \"UYVY12_2X12\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY12_2X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY12_2X12, {\n> -\t\t.name = \"VYUY12_2X12\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY12_2X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV12_2X12, {\n> -\t\t.name = \"YUYV12_2X12\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV12_2X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU12_2X12, {\n> -\t\t.name = \"YVYU12_2X12\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU12_2X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_UYVY12_1X24, {\n> -\t\t.name = \"UYVY12_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_UYVY12_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_VYUY12_1X24, {\n> -\t\t.name = \"VYUY12_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_VYUY12_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YUYV12_1X24, {\n> -\t\t.name = \"YUYV12_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_YUYV12_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_YVYU12_1X24, {\n> -\t\t.name = \"YVYU12_1X24\",\n> -\t\t.code = MEDIA_BUS_FMT_YVYU12_1X24,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 24,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR8_1X8, {\n> -\t\t.name = \"SBGGR8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG8_1X8, {\n> -\t\t.name = \"SGBRG8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG8_1X8, {\n> -\t\t.name = \"SGRBG8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB8_1X8, {\n> -\t\t.name = \"SRGGB8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_ALAW8_1X8, {\n> -\t\t.name = \"SBGGR10_ALAW8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_ALAW8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG10_ALAW8_1X8, {\n> -\t\t.name = \"SGBRG10_ALAW8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG10_ALAW8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG10_ALAW8_1X8, {\n> -\t\t.name = \"SGRBG10_ALAW8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG10_ALAW8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB10_ALAW8_1X8, {\n> -\t\t.name = \"SRGGB10_ALAW8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB10_ALAW8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8, {\n> -\t\t.name = \"SBGGR10_DPCM8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8, {\n> -\t\t.name = \"SGBRG10_DPCM8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8, {\n> -\t\t.name = \"SGRBG10_DPCM8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8, {\n> -\t\t.name = \"SRGGB10_DPCM8_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE, {\n> -\t\t.name = \"SBGGR10_2X8_PADHI_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE, {\n> -\t\t.name = \"SBGGR10_2X8_PADHI_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE, {\n> -\t\t.name = \"SBGGR10_2X8_PADLO_BE\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_LE, {\n> -\t\t.name = \"SBGGR10_2X8_PADLO_LE\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_LE,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR10_1X10, {\n> -\t\t.name = \"SBGGR10_1X10\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR10_1X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 10,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG10_1X10, {\n> -\t\t.name = \"SGBRG10_1X10\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG10_1X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 10,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG10_1X10, {\n> -\t\t.name = \"SGRBG10_1X10\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG10_1X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 10,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB10_1X10, {\n> -\t\t.name = \"SRGGB10_1X10\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB10_1X10,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 10,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR12_1X12, {\n> -\t\t.name = \"SBGGR12_1X12\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR12_1X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG12_1X12, {\n> -\t\t.name = \"SGBRG12_1X12\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG12_1X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG12_1X12, {\n> -\t\t.name = \"SGRBG12_1X12\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG12_1X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB12_1X12, {\n> -\t\t.name = \"SRGGB12_1X12\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB12_1X12,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 12,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR14_1X14, {\n> -\t\t.name = \"SBGGR14_1X14\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR14_1X14,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 14,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG14_1X14, {\n> -\t\t.name = \"SGBRG14_1X14\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG14_1X14,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 14,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG14_1X14, {\n> -\t\t.name = \"SGRBG14_1X14\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG14_1X14,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 14,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB14_1X14, {\n> -\t\t.name = \"SRGGB14_1X14\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB14_1X14,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 14,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SBGGR16_1X16, {\n> -\t\t.name = \"SBGGR16_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_SBGGR16_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGBRG16_1X16, {\n> -\t\t.name = \"SGBRG16_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_SGBRG16_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SGRBG16_1X16, {\n> -\t\t.name = \"SGRBG16_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_SGRBG16_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_SRGGB16_1X16, {\n> -\t\t.name = \"SRGGB16_1X16\",\n> -\t\t.code = MEDIA_BUS_FMT_SRGGB16_1X16,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 16,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n> -\t} },\n> +\t{ MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE,\n> +\t  {\n> +\t\t  .name = \"RGB444_2X8_PADHI_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE,\n> +\t  {\n> +\t\t  .name = \"RGB444_2X8_PADHI_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE,\n> +\t  {\n> +\t\t  .name = \"RGB555_2X8_PADHI_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE,\n> +\t  {\n> +\t\t  .name = \"RGB555_2X8_PADHI_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB565_1X16,\n> +\t  {\n> +\t\t  .name = \"RGB565_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB565_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_BGR565_2X8_BE,\n> +\t  {\n> +\t\t  .name = \"BGR565_2X8_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_BGR565_2X8_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_BGR565_2X8_LE,\n> +\t  {\n> +\t\t  .name = \"BGR565_2X8_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_BGR565_2X8_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB565_2X8_BE,\n> +\t  {\n> +\t\t  .name = \"RGB565_2X8_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB565_2X8_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB565_2X8_LE,\n> +\t  {\n> +\t\t  .name = \"RGB565_2X8_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB565_2X8_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB666_1X18,\n> +\t  {\n> +\t\t  .name = \"RGB666_1X18\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB666_1X18,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 18,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_BGR888_1X24,\n> +\t  {\n> +\t\t  .name = \"BGR888_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_BGR888_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB888_1X24,\n> +\t  {\n> +\t\t  .name = \"RGB888_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB888_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB888_2X12_BE,\n> +\t  {\n> +\t\t  .name = \"RGB888_2X12_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB888_2X12_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_RGB888_2X12_LE,\n> +\t  {\n> +\t\t  .name = \"RGB888_2X12_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_RGB888_2X12_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_ARGB8888_1X32,\n> +\t  {\n> +\t\t  .name = \"ARGB8888_1X32\",\n> +\t\t  .code = MEDIA_BUS_FMT_ARGB8888_1X32,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 32,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_Y8_1X8,\n> +\t  {\n> +\t\t  .name = \"Y8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_Y8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UV8_1X8,\n> +\t  {\n> +\t\t  .name = \"UV8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_UV8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY8_1_5X8,\n> +\t  {\n> +\t\t  .name = \"UYVY8_1_5X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY8_1_5X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY8_1_5X8,\n> +\t  {\n> +\t\t  .name = \"VYUY8_1_5X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY8_1_5X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV8_1_5X8,\n> +\t  {\n> +\t\t  .name = \"YUYV8_1_5X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV8_1_5X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU8_1_5X8,\n> +\t  {\n> +\t\t  .name = \"YVYU8_1_5X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU8_1_5X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY8_2X8,\n> +\t  {\n> +\t\t  .name = \"UYVY8_2X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY8_2X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY8_2X8,\n> +\t  {\n> +\t\t  .name = \"VYUY8_2X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY8_2X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV8_2X8,\n> +\t  {\n> +\t\t  .name = \"YUYV8_2X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV8_2X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU8_2X8,\n> +\t  {\n> +\t\t  .name = \"YVYU8_2X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU8_2X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_Y10_1X10,\n> +\t  {\n> +\t\t  .name = \"Y10_1X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_Y10_1X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 10,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY10_2X10,\n> +\t  {\n> +\t\t  .name = \"UYVY10_2X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY10_2X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY10_2X10,\n> +\t  {\n> +\t\t  .name = \"VYUY10_2X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY10_2X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV10_2X10,\n> +\t  {\n> +\t\t  .name = \"YUYV10_2X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV10_2X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU10_2X10,\n> +\t  {\n> +\t\t  .name = \"YVYU10_2X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU10_2X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_Y12_1X12,\n> +\t  {\n> +\t\t  .name = \"Y12_1X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_Y12_1X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_Y16_1X16,\n> +\t  {\n> +\t\t  .name = \"Y16_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_Y16_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY8_1X16,\n> +\t  {\n> +\t\t  .name = \"UYVY8_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY8_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY8_1X16,\n> +\t  {\n> +\t\t  .name = \"VYUY8_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY8_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV8_1X16,\n> +\t  {\n> +\t\t  .name = \"YUYV8_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV8_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU8_1X16,\n> +\t  {\n> +\t\t  .name = \"YVYU8_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU8_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YDYUYDYV8_1X16,\n> +\t  {\n> +\t\t  .name = \"YDYUYDYV8_1X16\",\n> +\t\t  .code = MEDIA_BUS_FMT_YDYUYDYV8_1X16,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY10_1X20,\n> +\t  {\n> +\t\t  .name = \"UYVY10_1X20\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY10_1X20,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY10_1X20,\n> +\t  {\n> +\t\t  .name = \"VYUY10_1X20\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY10_1X20,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV10_1X20,\n> +\t  {\n> +\t\t  .name = \"YUYV10_1X20\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV10_1X20,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU10_1X20,\n> +\t  {\n> +\t\t  .name = \"YVYU10_1X20\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU10_1X20,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 20,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUV8_1X24,\n> +\t  {\n> +\t\t  .name = \"YUV8_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUV8_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUV10_1X30,\n> +\t  {\n> +\t\t  .name = \"YUV10_1X30\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUV10_1X30,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 30,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_AYUV8_1X32,\n> +\t  {\n> +\t\t  .name = \"AYUV8_1X32\",\n> +\t\t  .code = MEDIA_BUS_FMT_AYUV8_1X32,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 32,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY12_2X12,\n> +\t  {\n> +\t\t  .name = \"UYVY12_2X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY12_2X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY12_2X12,\n> +\t  {\n> +\t\t  .name = \"VYUY12_2X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY12_2X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV12_2X12,\n> +\t  {\n> +\t\t  .name = \"YUYV12_2X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV12_2X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU12_2X12,\n> +\t  {\n> +\t\t  .name = \"YVYU12_2X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU12_2X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_UYVY12_1X24,\n> +\t  {\n> +\t\t  .name = \"UYVY12_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_UYVY12_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_VYUY12_1X24,\n> +\t  {\n> +\t\t  .name = \"VYUY12_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_VYUY12_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YUYV12_1X24,\n> +\t  {\n> +\t\t  .name = \"YUYV12_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_YUYV12_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_YVYU12_1X24,\n> +\t  {\n> +\t\t  .name = \"YVYU12_1X24\",\n> +\t\t  .code = MEDIA_BUS_FMT_YVYU12_1X24,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 24,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR8_1X8,\n> +\t  {\n> +\t\t  .name = \"SBGGR8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGBRG8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGRBG8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB8_1X8,\n> +\t  {\n> +\t\t  .name = \"SRGGB8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_ALAW8_1X8,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_ALAW8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_ALAW8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG10_ALAW8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGBRG10_ALAW8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG10_ALAW8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG10_ALAW8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGRBG10_ALAW8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG10_ALAW8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB10_ALAW8_1X8,\n> +\t  {\n> +\t\t  .name = \"SRGGB10_ALAW8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB10_ALAW8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_DPCM8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGBRG10_DPCM8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8,\n> +\t  {\n> +\t\t  .name = \"SGRBG10_DPCM8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8,\n> +\t  {\n> +\t\t  .name = \"SRGGB10_DPCM8_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_2X8_PADHI_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_2X8_PADHI_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_2X8_PADLO_BE\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_LE,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_2X8_PADLO_LE\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_LE,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 16,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR10_1X10,\n> +\t  {\n> +\t\t  .name = \"SBGGR10_1X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR10_1X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 10,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG10_1X10,\n> +\t  {\n> +\t\t  .name = \"SGBRG10_1X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG10_1X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 10,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG10_1X10,\n> +\t  {\n> +\t\t  .name = \"SGRBG10_1X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG10_1X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 10,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB10_1X10,\n> +\t  {\n> +\t\t  .name = \"SRGGB10_1X10\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB10_1X10,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 10,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR12_1X12,\n> +\t  {\n> +\t\t  .name = \"SBGGR12_1X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR12_1X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG12_1X12,\n> +\t  {\n> +\t\t  .name = \"SGBRG12_1X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG12_1X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG12_1X12,\n> +\t  {\n> +\t\t  .name = \"SGRBG12_1X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG12_1X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB12_1X12,\n> +\t  {\n> +\t\t  .name = \"SRGGB12_1X12\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB12_1X12,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 12,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR14_1X14,\n> +\t  {\n> +\t\t  .name = \"SBGGR14_1X14\",\n> +\t\t  .code = MEDIA_BUS_FMT_SBGGR14_1X14,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 14,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGBRG14_1X14,\n> +\t  {\n> +\t\t  .name = \"SGBRG14_1X14\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGBRG14_1X14,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 14,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SGRBG14_1X14,\n> +\t  {\n> +\t\t  .name = \"SGRBG14_1X14\",\n> +\t\t  .code = MEDIA_BUS_FMT_SGRBG14_1X14,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 14,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SRGGB14_1X14,\n> +\t  {\n> +\t\t  .name = \"SRGGB14_1X14\",\n> +\t\t  .code = MEDIA_BUS_FMT_SRGGB14_1X14,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 14,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_SBGGR16_1X16,\n> +\t  { .name = \"SBGGR16_1X16\",\n> +\t    .code = MEDIA_BUS_FMT_SBGGR16_1X16,\n> +\t    .type = MediaBusFormatInfo::Type::Image,\n> +\t    .bitsPerPixel = 16,\n> +\t    .colourEncoding = PixelFormatInfo::ColourEncodingRAW } },\n> +\t{ MEDIA_BUS_FMT_SGBRG16_1X16,\n> +\t  { .name = \"SGBRG16_1X16\",\n> +\t    .code = MEDIA_BUS_FMT_SGBRG16_1X16,\n> +\t    .type = MediaBusFormatInfo::Type::Image,\n> +\t    .bitsPerPixel = 16,\n> +\t    .colourEncoding = PixelFormatInfo::ColourEncodingRAW } },\n> +\t{ MEDIA_BUS_FMT_SGRBG16_1X16,\n> +\t  { .name = \"SGRBG16_1X16\",\n> +\t    .code = MEDIA_BUS_FMT_SGRBG16_1X16,\n> +\t    .type = MediaBusFormatInfo::Type::Image,\n> +\t    .bitsPerPixel = 16,\n> +\t    .colourEncoding = PixelFormatInfo::ColourEncodingRAW } },\n> +\t{ MEDIA_BUS_FMT_SRGGB16_1X16,\n> +\t  { .name = \"SRGGB16_1X16\",\n> +\t    .code = MEDIA_BUS_FMT_SRGGB16_1X16,\n> +\t    .type = MediaBusFormatInfo::Type::Image,\n> +\t    .bitsPerPixel = 16,\n> +\t    .colourEncoding = PixelFormatInfo::ColourEncodingRAW } },\n>  \t/* \\todo Clarify colour encoding for HSV formats */\n> -\t{ MEDIA_BUS_FMT_AHSV8888_1X32, {\n> -\t\t.name = \"AHSV8888_1X32\",\n> -\t\t.code = MEDIA_BUS_FMT_AHSV8888_1X32,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 32,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_JPEG_1X8, {\n> -\t\t.name = \"JPEG_1X8\",\n> -\t\t.code = MEDIA_BUS_FMT_JPEG_1X8,\n> -\t\t.type = MediaBusFormatInfo::Type::Image,\n> -\t\t.bitsPerPixel = 8,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> -\t} },\n> -\t{ MEDIA_BUS_FMT_METADATA_FIXED, {\n> -\t\t.name = \"METADATA_FIXED\",\n> -\t\t.code = MEDIA_BUS_FMT_METADATA_FIXED,\n> -\t\t.type = MediaBusFormatInfo::Type::Metadata,\n> -\t\t.bitsPerPixel = 0,\n> -\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> -\t} },\n> +\t{ MEDIA_BUS_FMT_AHSV8888_1X32,\n> +\t  {\n> +\t\t  .name = \"AHSV8888_1X32\",\n> +\t\t  .code = MEDIA_BUS_FMT_AHSV8888_1X32,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 32,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_JPEG_1X8,\n> +\t  {\n> +\t\t  .name = \"JPEG_1X8\",\n> +\t\t  .code = MEDIA_BUS_FMT_JPEG_1X8,\n> +\t\t  .type = MediaBusFormatInfo::Type::Image,\n> +\t\t  .bitsPerPixel = 8,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n> +\t  } },\n> +\t{ MEDIA_BUS_FMT_METADATA_FIXED,\n> +\t  {\n> +\t\t  .name = \"METADATA_FIXED\",\n> +\t\t  .code = MEDIA_BUS_FMT_METADATA_FIXED,\n> +\t\t  .type = MediaBusFormatInfo::Type::Metadata,\n> +\t\t  .bitsPerPixel = 0,\n> +\t\t  .colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n> +\t  } },\n>  };\n>  \n>  } /* namespace */\n> @@ -1037,7 +1116,8 @@ int V4L2Subdevice::open()\n>  \n>  \t/* If the subdev supports streams, enable the streams API. */\n>  \tif (caps_.hasStreams()) {\n> -\t\tstruct v4l2_subdev_client_capability clientCaps{};\n> +\t\tstruct v4l2_subdev_client_capability clientCaps {\n> +\t\t};\n>  \t\tclientCaps.capabilities = V4L2_SUBDEV_CLIENT_CAP_STREAMS;\n>  \n>  \t\tret = ioctl(VIDIOC_SUBDEV_S_CLIENT_CAP, &clientCaps);\n> @@ -1376,8 +1456,8 @@ struct v4l2_subdev_routing_legacy {\n>  \t__u32 reserved[6];\n>  };\n>  \n> -#define VIDIOC_SUBDEV_G_ROUTING_LEGACY\t_IOWR('V', 38, struct v4l2_subdev_routing_legacy)\n> -#define VIDIOC_SUBDEV_S_ROUTING_LEGACY\t_IOWR('V', 39, struct v4l2_subdev_routing_legacy)\n> +#define VIDIOC_SUBDEV_G_ROUTING_LEGACY _IOWR('V', 38, struct v4l2_subdev_routing_legacy)\n> +#define VIDIOC_SUBDEV_S_ROUTING_LEGACY _IOWR('V', 39, struct v4l2_subdev_routing_legacy)\n>  \n>  } /* namespace */\n>  \n> @@ -1665,7 +1745,7 @@ std::vector<unsigned int> V4L2Subdevice::enumPadCodes(const Stream &stream)\n>  \tstd::vector<unsigned int> codes;\n>  \tint ret;\n>  \n> -\tfor (unsigned int index = 0; ; index++) {\n> +\tfor (unsigned int index = 0;; index++) {\n>  \t\tstruct v4l2_subdev_mbus_code_enum mbusEnum = {};\n>  \t\tmbusEnum.pad = stream.pad;\n>  \t\tmbusEnum.stream = stream.stream;\n> -- \n> 2.44.1\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A7825C324C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 31 Aug 2024 00:18:53 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 478F363469;\n\tSat, 31 Aug 2024 02:18:53 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F21A06341E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 31 Aug 2024 02:18:51 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4BA0E74C;\n\tSat, 31 Aug 2024 02:17:42 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"mWo78IvT\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1725063462;\n\tbh=1KJN9c1ge5FYi6T0kAmNKi9ZodZEZRerMdSnBxuSVFo=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=mWo78IvTAyETH1xeBFux1kW1g6Ovdwpyku/CymEY7lyPznQPT/81c9n0tQi+lYpJJ\n\t3poYFXOs6UlluAJ9fEN0+kH78QrqtOXVtJ9YabsaDvJRCFKcJPb3Cp8ac26u1DykwY\n\tvNIsVc7ZRgaKB/PozMAI6zYnV2wgQ7hnv7IkhRg4=","Date":"Sat, 31 Aug 2024 03:18:19 +0300","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Milan Zamazal <mzamazal@redhat.com>","Cc":"libcamera-devel@lists.libcamera.org","Subject":"Re: [PATCH v2 12/20] libcamera: v4l2_subdevice: Formatting\n\timprovements","Message-ID":"<20240831001819.GL3811@pendragon.ideasonboard.com>","References":"<20240830152721.1420313-1-mzamazal@redhat.com>\n\t<20240830152721.1420313-13-mzamazal@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","In-Reply-To":"<20240830152721.1420313-13-mzamazal@redhat.com>","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]