[MPlayer-cvslog] r34979 - trunk/libmpcodecs/vf_unsharp.c
ib
subversion at mplayerhq.hu
Thu May 31 00:04:51 CEST 2012
Author: ib
Date: Thu May 31 00:04:51 2012
New Revision: 34979
Log:
Request a sufficiently large image for direct rendering.
Fixes broken video near the borders.
Modified:
trunk/libmpcodecs/vf_unsharp.c
Modified: trunk/libmpcodecs/vf_unsharp.c
==============================================================================
--- trunk/libmpcodecs/vf_unsharp.c Wed May 30 23:21:46 2012 (r34978)
+++ trunk/libmpcodecs/vf_unsharp.c Thu May 31 00:04:51 2012 (r34979)
@@ -166,7 +166,7 @@ static void get_image( struct vf_instanc
return; // colorspace differ
mpi->priv =
- vf->dmpi = vf_get_image( vf->next, mpi->imgfmt, mpi->type, mpi->flags, mpi->w, mpi->h );
+ vf->dmpi = vf_get_image( vf->next, mpi->imgfmt, mpi->type, mpi->flags, mpi->width, mpi->height );
mpi->planes[0] = vf->dmpi->planes[0];
mpi->stride[0] = vf->dmpi->stride[0];
mpi->width = vf->dmpi->width;
@@ -184,7 +184,7 @@ static int put_image( struct vf_instance
if( !(mpi->flags & MP_IMGFLAG_DIRECT) )
// no DR, so get a new image! hope we'll get DR buffer:
- dmpi = vf->dmpi = vf_get_image( vf->next,vf->priv->outfmt, MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, mpi->w, mpi->h);
+ dmpi = vf->dmpi = vf_get_image( vf->next,vf->priv->outfmt, MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, mpi->width, mpi->height);
unsharp( dmpi->planes[0], mpi->planes[0], dmpi->stride[0], mpi->stride[0], mpi->w, mpi->h, &vf->priv->lumaParam );
unsharp( dmpi->planes[1], mpi->planes[1], dmpi->stride[1], mpi->stride[1], mpi->w/2, mpi->h/2, &vf->priv->chromaParam );
More information about the MPlayer-cvslog
mailing list