[FFmpeg-devel] [PATCH] swscale: round on planar2x C code

Ramiro Polla ramiro.polla
Sun Sep 12 05:15:55 CEST 2010


The C and MMX2/3dnow code differ in planar2x due to pavgb's rounding.
Attached patch makes the output similar.

I couldn't measure any speed difference. gcc ends up using "leal
3(xxx)" instead of "leal (xxx)" which doesn't seem to have a speed

Otherwise we could put the MMX2/3dnow code under some if(flags &bitexact).

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: planar2x_round.diff
Type: text/x-patch
Size: 1175 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100912/4ecde271/attachment.bin>

More information about the ffmpeg-devel mailing list