[Mplayer-cvslog] CVS: main/libmpcodecs vf_expand.c,1.20,1.21

Arpi of Ize arpi at mplayerhq.hu
Fri Mar 14 16:06:41 CET 2003


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

Modified Files:
	vf_expand.c 
Log Message:
clear black bands when using slices


Index: vf_expand.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_expand.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- vf_expand.c	23 Feb 2003 23:30:44 -0000	1.20
+++ vf_expand.c	14 Mar 2003 15:06:21 -0000	1.21
@@ -256,6 +256,15 @@
     if(mpi->flags&MP_IMGFLAG_DIRECT || mpi->flags&MP_IMGFLAG_DRAW_CALLBACK){
 	vf->priv->dmpi=mpi->priv;
 	mpi->priv=NULL;
+	if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK){
+	    if(vf->priv->exp_y>0)
+		vf_next_draw_slice(vf, vf->priv->dmpi->planes, vf->priv->dmpi->stride,
+		vf->priv->dmpi->w,vf->priv->exp_y,0,0);
+	    if(vf->priv->exp_y+mpi->h<vf->priv->dmpi->h)
+		vf_next_draw_slice(vf, vf->priv->dmpi->planes, vf->priv->dmpi->stride,
+		vf->priv->dmpi->w,vf->priv->dmpi->h-(vf->priv->exp_y+mpi->h),
+		0,vf->priv->exp_y+mpi->h);
+	}
 #ifdef OSD_SUPPORT
 	if(vf->priv->osd) draw_osd(vf,mpi->w,mpi->h);
 #endif



More information about the MPlayer-cvslog mailing list