[Mplayer-cvslog] CVS: main/libmpcodecs vd_raw.c,1.3,1.4

Rik Snel CVS rik at mplayer.dev.hu
Sat Mar 23 15:26:55 CET 2002


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

Modified Files:
	vd_raw.c 
Log Message:
adding support for 12 bit planar YUV formats (for YUV4MPEG(2))

Index: vd_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_raw.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vd_raw.c	16 Mar 2002 01:10:31 -0000	1.3
+++ vd_raw.c	23 Mar 2002 14:26:53 -0000	1.4
@@ -62,6 +62,13 @@
 	// TODO !!!
 	mpi->planes[0]=data;
 	mpi->stride[0]=mpi->width;
+        if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) {
+            // Support for some common Planar YUV formats
+            mpi->planes[2]=data+mpi->width*mpi->height;
+            mpi->stride[2]=mpi->width/2;
+            mpi->planes[1]=data+5*mpi->width*mpi->height/4;
+            mpi->stride[1]=mpi->width/2;
+       	}
     } else {
 	mpi->planes[0]=data;
 	mpi->stride[0]=mpi->width*(mpi->bpp/8);




More information about the MPlayer-cvslog mailing list