[Mplayer-cvslog] CVS: main/libmpcodecs vd_raw.c,1.8,1.9

Alex Beregszaszi alex at mplayerhq.hu
Fri Jun 21 18:37:40 CEST 2002


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

Modified Files:
	vd_raw.c 
Log Message:
yvu9 support

Index: vd_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_raw.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- vd_raw.c	29 May 2002 22:38:34 -0000	1.8
+++ vd_raw.c	21 Jun 2002 16:37:37 -0000	1.9
@@ -67,6 +67,7 @@
 	mpi->stride[0]=mpi->width;
         if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) {
             // Support for some common Planar YUV formats
+	    /* YV12,I420,IYUV */
             int cb=2, cr=1;
             if(mpi->flags&MP_IMGFLAG_SWAPPED) {
                 cb=1; cr=2;
@@ -76,6 +77,12 @@
             mpi->planes[cr]=data+5*mpi->width*mpi->height/4;
             mpi->stride[cr]=mpi->width/2;
        	}
+	else if (mpi->bpp==9 && mpi->flags&MP_IMGFLAG_YUV) {
+	    /* YVU9 ! */
+            mpi->stride[1]=mpi->stride[2]=mpi->width/4;
+            mpi->planes[2]=mpi->planes[0]+mpi->width*mpi->height;
+            mpi->planes[1]=mpi->planes[2]+(mpi->width>>2)*(mpi->height>>2);
+	}
     } else {
 	mpi->planes[0]=data;
 	mpi->stride[0]=mpi->width*(mpi->bpp/8);





More information about the MPlayer-cvslog mailing list