[MPlayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.30,1.31

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Wed Dec 1 15:20:47 CET 2004


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv4626

Modified Files:
	vf_pp.c 
Log Message:
call vf_get_image with aligned dimensions when doing DR

don't try the direct rendering when the requester doesn't accept stride
and the image dimensions are odd


Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- vf_pp.c	31 Aug 2003 22:18:27 -0000	1.30
+++ vf_pp.c	1 Dec 2004 14:20:45 -0000	1.31
@@ -95,9 +95,10 @@
 	mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
     if(!(mpi->flags&MP_IMGFLAG_ACCEPT_STRIDE) && mpi->imgfmt!=vf->priv->outfmt)
 	return; // colorspace differ
+    if (mpi->w&7 && !(mpi->flags&MP_IMGFLAG_ACCEPT_STRIDE)) return; // width is not a multiple of 8
     // ok, we can do pp in-place (or pp disabled):
     vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
-        mpi->type, mpi->flags, mpi->w, mpi->h);
+        mpi->type, mpi->flags, (mpi->w+7)&(~7),(mpi->h+7)&(~7));
     mpi->planes[0]=vf->dmpi->planes[0];
     mpi->stride[0]=vf->dmpi->stride[0];
     mpi->width=vf->dmpi->width;




More information about the MPlayer-cvslog mailing list