[MPlayer-dev-eng] [PATCH] Fractional zoom

Panagiotis Issaris takis at lumumba.luc.ac.be
Thu Sep 19 17:11:26 CEST 2002


Hello everybody,

This patch allows you to use fractional values for specifying a zoom. I
really wanted this because in my opinion the difference between a 2x
zoom and 3x zoom is too big. 

Thus, instead of saying "mplayer -xy 2 mayall.avi" you can now say
"mplayer -xy 1.4" or "mplayer -xy 0.01" to scale down. 

At this time MPlayer uses values greater than 8 to scale down to a
certain width specified with an absolute value. My patch enables you to
use fractions and therefore specify a relative size when scaling down.

So, before this patch:
mplayer -xy v
v={2,...,8} to scale up accordingly
v={8,...,4096} to scale to the specified absolute width keeping aspect
ratio correct

After this patch:
v={0.001, ..., 0.2, ..., 1.4, ..., 8} to scale up accordingly
v={8,...,4096} to scale to the specified absolute width keeping aspect

With friendly regards,
Takis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20020919-takis-mplayer-zoom.patch.gz
Type: application/x-gunzip
Size: 628 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020919/a3a342b2/attachment.bin>


More information about the MPlayer-dev-eng mailing list