[MPlayer-dev-eng] [PATCH] [RESEND] -aspect-tolerenace option

Kurt Garloff kurt at garloff.de
Wed Apr 9 06:47:32 CEST 2008


Hi,

this patch introduces the aspect tolerance option.
When decodding mpeg material, there is a prescaling step involved
that takes care of expanding the frames to the right aspect ratio.

Scaling is a process that does however reduce the quality, so ideally
we would avoid it. The option actually is meant to avoid if if the
prescaling done for the aspect ratio is actually only making a tiny
correction. This can happen due to roundoff errors, e.g. 1366x768 vs
1360x768 or 1360x766.

Default is 0.01, which means that we'll avoid prescaling for up to
0.01 error in the aspect ratio (0.56% for 16:9). Aspect inaccuracies
of that size are typically more acceptable than the loss of quality
by prescaling (at least for high quality material).
Behavior can be controlled via the -aspect-tolerance option.

Best,
-- 
Kurt Garloff                   <kurt at garloff.de>             [Koeln, DE]
Physics:Plasma modeling <garloff at plasimo.phys.tue.nl> [TU Eindhoven, NL]
Linux: VP PM OPS               <garloff at suse.de>            [Novell Inc]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-aspect-tolerance.diff
Type: text/x-patch
Size: 3355 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080409/0421f85f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080409/0421f85f/attachment.pgp>


More information about the MPlayer-dev-eng mailing list