avdevice/v4l2: add V4L2_PIX_FMT_SRGGB8
authorPeter Ross <pross@xvid.org>
Sat, 22 Feb 2014 12:42:15 +0000 (23:42 +1100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 23 Feb 2014 12:42:41 +0000 (13:42 +0100)
libavdevice/v4l2-common.c

index 572f0ed..1ab67e3 100644 (file)
@@ -49,6 +49,7 @@ const struct fmt_map avpriv_fmt_conversion_table[] = {
 #ifdef V4L2_PIX_FMT_CPIA1
     { AV_PIX_FMT_NONE,    AV_CODEC_ID_CPIA,     V4L2_PIX_FMT_CPIA1   },
 #endif
+    { AV_PIX_FMT_BAYER_RGGB8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SRGGB8 },
     { AV_PIX_FMT_NONE,    AV_CODEC_ID_NONE,     0                    },
 };