[MPlayer-dev-eng] [PATCH] cropdetect

rcooley rcooley at spamcop.net
Tue Aug 10 06:40:09 CEST 2004


On Sat, 7 Aug 2004 21:37:07 +0900
Attila Kinali <attila at kinali.ch> wrote:

> What is the reason to increas x resp y if w resp h is a multple of 2 ?

For the x/y offset to be correct (center the video), you have to add 0.5
to x/y for every 1 you remove from w/h.  Since every other time we go
through the while() loop, w/h will be even, checking if w/h is
divisible by 2, and adding one then, seemed to be the best way to adjust
x/y.

Does that answer your question?




More information about the MPlayer-dev-eng mailing list