[MPlayer-dev-eng] [PATCH] speedup and little bugfix for -vop eq2

Linards Ticmanis ticmanis at coli.uni-sb.de
Sun Dec 1 22:27:04 CET 2002


Greetings,

Maybe you are interested in this little patch for -vop eq2.

It fixes a small bug where a byte value is divided by 255.0 to convert
to a float within [0.0, 1.0] and later multiplied by 256.0 to convert
back. This makes the luminance lookup table more correct, although the
visual difference is relatively small.

More importantly, it speeds up the inner loop a good bit, at least on
x86 systems, the only one I have and can test on. Of course the code
should work on all architectures, there's no asm stuff, just faster C.
Comments on how it is done in detail are in the file.

(I hope Mozilla will base64-encode this, if not I hope it will still be
usable for you.)

Yours,
-- 

Linards Ticmanis

 The Master said, "The business of laying on the colors follows the
preparation of the plain ground."




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf_eq2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021201/1cbb0e76/attachment.asc>


More information about the MPlayer-dev-eng mailing list