[FFmpeg-devel] [PATCH] Fix bit-exactness of MMX avg_no_rnd_pixels
Wed Apr 15 19:27:10 CEST 2009
On Wed, Apr 15, 2009 at 12:41:01PM -0400, David Conrad wrote:
> As I found in VC1, the MMX versions of avg_no_rnd_pixels are not identical
> with their C counterparts. The problem is that the C versions use
> (a+b+1)>>1 to average the interpolated pixels with the existing pixels,
> while the MMX versions use the same (a+b)>>1 used for interpolation.
> This fixes the problem by adding an OP_AVG macro to always use (a+b+1)>>1
> where needed.
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel