[MPlayer-dev-eng] [PATCH] VF Overlay

Jason Tackaberry tack at urandom.ca
Sat Aug 8 01:59:23 CEST 2009


On Fri, 2009-08-07 at 19:56 -0400, Jason Tackaberry wrote:
> FFALIGN would work, but you'd want to subtract 1 for dst_y since we want
> to round down, rather than up.  Something like:
> 
>         dst_y = ry = av_clip(FFALIGN(orig_y - i - 1, 2), 0, priv->h);
>         dst_h = rh = av_clip(FFALIGN(orig_h + 1 + i*2, 2), 0, priv->h - ry);

Sorry, superfluous + 1:

        dst_h = rh = av_clip(FFALIGN(orig_h + i*2, 2), 0, priv->h - ry);






More information about the MPlayer-dev-eng mailing list