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

Arpi of Ize arpi at mplayerhq.hu
Mon Sep 9 22:55:59 CEST 2002


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

Modified Files:
	vf_yuy2.c 
Log Message:
yuv422planar->yuy2 support


Index: vf_yuy2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_yuy2.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vf_yuy2.c	13 Apr 2002 19:14:31 -0000	1.3
+++ vf_yuy2.c	9 Sep 2002 20:55:57 -0000	1.4
@@ -35,6 +35,10 @@
 	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 	mpi->w, mpi->h);
 
+    if(mpi->imgfmt==IMGFMT_422P)
+    yuv422ptoyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0],
+	    mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]);
+    else
     yv12toyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0],
 	    mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]);
     
@@ -51,6 +55,7 @@
     case IMGFMT_YV12:
     case IMGFMT_I420:
     case IMGFMT_IYUV:
+    case IMGFMT_422P:
 	return vf_next_query_format(vf,IMGFMT_YUY2) & (~VFCAP_CSP_SUPPORTED_BY_HW);
     }
     return 0;
@@ -64,7 +69,7 @@
 }
 
 vf_info_t vf_info_yuy2 = {
-    "fast YV12->YUY2 conversion",
+    "fast YV12/Y422p -> YUY2 conversion",
     "yuy2",
     "A'rpi",
     "",




More information about the MPlayer-cvslog mailing list