[FFmpeg-cvslog] Add gray16 as a supported v4l2 input format.

Carl Eugen Hoyos git at videolan.org
Sun Feb 17 19:47:48 CET 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Feb 17 19:44:13 2013 +0100| [fdec49cbe83f11ea8c8e372f0899eb87dbcf1bba] | committer: Carl Eugen Hoyos

Add gray16 as a supported v4l2 input format.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fdec49cbe83f11ea8c8e372f0899eb87dbcf1bba
---

 libavdevice/v4l2.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 4c43e37..b17a0c8 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -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    },



More information about the ffmpeg-cvslog mailing list