Add missing 8-, 10- and 12-bit Bayer formats
[media-ctl.git] / src / main.c
index 461dae1..35c34a2 100644 (file)
@@ -52,8 +52,22 @@ static struct {
        { "Y8", V4L2_MBUS_FMT_Y8_1X8},
        { "YUYV", V4L2_MBUS_FMT_YUYV8_1X16 },
        { "UYVY", V4L2_MBUS_FMT_UYVY8_1X16 },
+       { "SBGGR8", V4L2_MBUS_FMT_SBGGR8_1X8 },
+       { "SGBRG8", V4L2_MBUS_FMT_SGBRG8_1X8 },
+       { "SGRBG8", V4L2_MBUS_FMT_SGRBG8_1X8 },
+       { "SRGGB8", V4L2_MBUS_FMT_SRGGB8_1X8 },
+       { "SBGGR10", V4L2_MBUS_FMT_SBGGR10_1X10 },
+       { "SGBRG10", V4L2_MBUS_FMT_SGBRG10_1X10 },
        { "SGRBG10", V4L2_MBUS_FMT_SGRBG10_1X10 },
+       { "SRGGB10", V4L2_MBUS_FMT_SRGGB10_1X10 },
+       { "SBGGR10_DPCM8", V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 },
+       { "SGBRG10_DPCM8", V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8 },
        { "SGRBG10_DPCM8", V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 },
+       { "SRGGB10_DPCM8", V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8 },
+       { "SBGGR12", V4L2_MBUS_FMT_SBGGR12_1X12 },
+       { "SGBRG12", V4L2_MBUS_FMT_SGBRG12_1X12 },
+       { "SGRBG12", V4L2_MBUS_FMT_SGRBG12_1X12 },
+       { "SRGGB12", V4L2_MBUS_FMT_SRGGB12_1X12 },
 };
 
 static const char *pixelcode_to_string(enum v4l2_mbus_pixelcode code)