Add gray16 as a supported v4l2 input format.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 17 Feb 2013 18:44:13 +0000 (19:44 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 17 Feb 2013 18:44:13 +0000 (19:44 +0100)
libavdevice/v4l2.c

index 4c43e37..b17a0c8 100644 (file)
@@ -149,6 +149,7 @@ static struct fmt_map fmt_conversion_table[] = {
     { AV_PIX_FMT_BGR0,    AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR32   },
     { AV_PIX_FMT_0RGB,    AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB32   },
     { AV_PIX_FMT_GRAY8,   AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_GREY    },
+    { AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Y16     },
     { AV_PIX_FMT_NV12,    AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12    },
     { AV_PIX_FMT_NONE,    AV_CODEC_ID_MJPEG,    V4L2_PIX_FMT_MJPEG   },
     { AV_PIX_FMT_NONE,    AV_CODEC_ID_MJPEG,    V4L2_PIX_FMT_JPEG    },