[MPlayer-dev-eng] [PATCH] Fix vf_expand aspect when d_width != width

Jason Tackaberry tack at sault.org
Mon Dec 5 05:38:01 CET 2005


The attached patch fixes vf_expand so that when specifying an aspect
ratio, it accounts for hardware scaling (or, more accurately, when
d_width != width) so that the final display resolution is the
user-specified aspect ratio.

For example, I have a movie with a frame size of 704x368 and an aspect
ratio of 2.271, so that the display size would be 836x368.  Without this
patch, specifying -vf expand=:::::4/3 would cause a frame size of
704x528 and a display size of 836x528 (because 704/(4/3) = 528), which
is not the aspect given (1.583 != 1.333).  With this patch, the expand
height takes into account the display aspect, so the expanded frame size
is 704x627 and display size of 836x627 (which is 4/3).

Cheers,
Jason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expand.patch
Type: text/x-patch
Size: 686 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051204/91c36ec2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051204/91c36ec2/attachment.pgp>


More information about the MPlayer-dev-eng mailing list