Add support for the PIX_FMT_RGB555 and PIX_FMT_RGB565 pixel formats in
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Sep 2008 20:36:42 +0000 (20:36 +0000)
committerLuca Abeni <lucabe72@email.it>
Fri, 5 Sep 2008 20:36:42 +0000 (20:36 +0000)
video4linux2 devices.
Patch by Jean Delvare (khali AT linux-fr DOT org)

Originally committed as revision 15218 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/v4l2.c

index 818366a..034cdcf 100644 (file)
@@ -99,6 +99,14 @@ static struct fmt_map fmt_conversion_table[] = {
         .v4l2_fmt = V4L2_PIX_FMT_YUV410,
     },
     {
+        .ff_fmt = PIX_FMT_RGB555,
+        .v4l2_fmt = V4L2_PIX_FMT_RGB555,
+    },
+    {
+        .ff_fmt = PIX_FMT_RGB565,
+        .v4l2_fmt = V4L2_PIX_FMT_RGB565,
+    },
+    {
         .ff_fmt = PIX_FMT_BGR24,
         .v4l2_fmt = V4L2_PIX_FMT_BGR24,
     },