[MPlayer-dev-eng] [PATCH] V4L UYVY format

Stephen Beahm stephenbeahm at adelphia.net
Mon Dec 15 09:42:24 CET 2003


Hello,

The rivatv v4l capture device uses native UYVY format. Here is the  
patch I used to make the 'outfmt=uyvy' option set rivatv properly:



Index: libmpdemux/tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.67
diff -u -r1.67 tvi_v4l.c
--- libmpdemux/tvi_v4l.c        1 Sep 2003 12:10:29 -0000       1.67
+++ libmpdemux/tvi_v4l.c        15 Dec 2003 08:38:56 -0000
@@ -241,6 +241,8 @@
            return(VIDEO_PALETTE_YUV420P);
        case IMGFMT_YUY2:
            return(VIDEO_PALETTE_YUV422);
+       case IMGFMT_UYVY:
+           return(VIDEO_PALETTE_UYVY);
     }
     return(-1);
 }



Enjoy,
-- 
Stephen Beahm
mailto:stephenbeahm at adelphia.net



More information about the MPlayer-dev-eng mailing list