search for: squareddifference

Displaying 1 result from an estimated 1 matches for "squareddifference".

2004 Sep 15
1
Theora mcomp tuning...
...d char * NewDataPtr, - unsigned char * RefDataPtr, - ogg_uint32_t PixelsPerLine, - ogg_uint32_t ErrorSoFar) { +/* We hope that the compiler is sensible enough to inline this. Usually is. */ +static ogg_uint32_t SquaredDifference(const int a, + const int b) { + return ((a-b)*(a-b)); +} + +static ogg_uint32_t GetSumSqrDiffs (const unsigned char * NewDataPtr, + const unsigned char * RefDataPtr, + ogg_uint32_t PixelsP...