[MPlayer-dev-eng] -vop scale

Kim Minh Kaplan kmkaplan at selfoffice.com
Tue Jul 16 15:20:27 CEST 2002


Hello,

I recently started using -vop scale=640:-2,crop=... instead of
calculating the scaled width myself.  But the code in vf_scale.c is
not restrictive enough: it can result in dimensions (height here) that
are not usable because it is not even.  So I came up with the
attached patch which does the job quite well and rounds to the nearest even height.

I want to commit this but to be complete I have to do the same thing
for the width.  But what value does it have to be a multiple of? 8, 16
or 32?

Kim Minh.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_scale.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020716/0f7081fc/attachment.bin>


More information about the MPlayer-dev-eng mailing list