[Mplayer-cvslog] CVS: main/libmpdemux demux_rawvideo.c,1.3,1.4

Arpi of Ize arpi at mplayerhq.hu
Wed Jun 18 02:34:38 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv24220/libmpdemux

Modified Files:
	demux_rawvideo.c 
Log Message:
HM12 & NV12 "decoder" (specially interleaved YUV formats, used by Hauppauge's PVR cards)
based on patch by Alex <d18c7db at hotmail.com>


Index: demux_rawvideo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rawvideo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- demux_rawvideo.c	27 Mar 2003 20:30:44 -0000	1.3
+++ demux_rawvideo.c	18 Jun 2003 00:34:35 -0000	1.4
@@ -40,6 +40,8 @@
   { "format", &format, CONF_TYPE_INT, 0, 0 , 0, NULL },
   { "y420", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_I420, NULL },
   { "yv12", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_YV12, NULL },
+  { "nv12", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_NV12, NULL },
+  { "hm12", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_HM12, NULL },
   { "yuy2", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_YUY2, NULL },
   { "uyvy", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_UYVY, NULL },
   { "y8", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_Y8, NULL },
@@ -73,6 +75,8 @@
   switch(format){
   case IMGFMT_I420:
   case IMGFMT_IYUV:
+  case IMGFMT_NV12:
+  case IMGFMT_HM12:
   case IMGFMT_YV12: imgsize=width*height+2*(width>>1)*(height>>1);break;
   case IMGFMT_YUY2: imgsize=width*height*2;break;
   case IMGFMT_UYVY: imgsize=width*height*2;break;



More information about the MPlayer-cvslog mailing list