[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.4,1.5

Arpi of Ize arpi at mplayer.dev.hu
Mon Apr 8 02:06:06 CEST 2002


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

Modified Files:
	vf_scale.c 
Log Message:
pp passtrough

Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vf_scale.c	7 Apr 2002 23:30:59 -0000	1.4
+++ vf_scale.c	8 Apr 2002 00:06:03 -0000	1.5
@@ -84,6 +84,13 @@
     
     vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride);
     
+    if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){
+	// just conversion, no scaling -> keep postprocessing data
+	// this way we can apply pp filter to non-yv12 source using scaler
+	dmpi->qscale=mpi->qscale;
+	dmpi->qstride=mpi->qstride;
+    }
+    
     vf_next_put_image(vf,dmpi);
 }
 




More information about the MPlayer-cvslog mailing list