summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-05-11 11:40:21 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-05-11 11:40:21 +0200
commita183835abdefb8e40650fc9eb22e2d291aac9883 (patch)
tree0c7bd8a310457727221b9ab065daa3f769d61df1
parent42b3b3916e5a11d9bcd72bae9c721cd4e40c0cb4 (diff)
Add missing 8-, 10- and 12-bit Bayer formats
Thanks for Javier Martin for pointing out they were missing. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 461dae1..35c34a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)