[FFmpeg-cvslog] r24759 - trunk/libavdevice/v4l2.c

lucabe subversion
Wed Aug 11 09:34:33 CEST 2010


Author: lucabe
Date: Wed Aug 11 09:34:33 2010
New Revision: 24759

Log:
Add a mapping for the V4L2_PIX_FMT_NV12 format to PIX_FMT_NV12 for
video4linux2 devices. This is used by Sensoray Model 2253 cards.
Patch by Pete Eberlein (pete AT sensoray DOT com)

Modified:
   trunk/libavdevice/v4l2.c

Modified: trunk/libavdevice/v4l2.c
==============================================================================
--- trunk/libavdevice/v4l2.c	Wed Aug 11 07:24:19 2010	(r24758)
+++ trunk/libavdevice/v4l2.c	Wed Aug 11 09:34:33 2010	(r24759)
@@ -139,6 +139,11 @@ static struct fmt_map fmt_conversion_tab
         .v4l2_fmt = V4L2_PIX_FMT_GREY,
     },
     {
+        .ff_fmt = PIX_FMT_NV12,
+        .codec_id = CODEC_ID_RAWVIDEO,
+        .v4l2_fmt = V4L2_PIX_FMT_NV12,
+    },
+    {
         .ff_fmt = PIX_FMT_NONE,
         .codec_id = CODEC_ID_MJPEG,
         .v4l2_fmt = V4L2_PIX_FMT_MJPEG,



More information about the ffmpeg-cvslog mailing list