changeset 9582:c9012dcd3a70

clear black bands when using slices
author arpi
date Fri, 14 Mar 2003 15:06:21 +0000
parents 0ef45318414a
children e442209e6241
files libmpcodecs/vf_expand.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_expand.c	Fri Mar 14 12:46:49 2003 +0000
+++ b/libmpcodecs/vf_expand.c	Fri Mar 14 15:06:21 2003 +0000
@@ -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