Showing the changes to codec/processing/src/downsample (1 of 13 files). Show all
Unified · Split
| @@ -110,7 +110,7 @@ void GeneralBilinearFastDownsampler_c (uint8_t* pDst, const int32_t kiDstStride, · 109 unmodified lines | ||
| 110 | 110 | x += 1; |
| 111 | 111 | x >>= 1; |
| 112 | 112 | //x = (((__int64)(SCALE_BIG - 1 - iFu))*(SCALE_BIG - 1 - fv)*a + ((__int64)iFu)*(SCALE_BIG - 1 -fv)*b + ((__int64)(SCALE_BIG - 1 -iFu))*fv*c + |
| 113 | − // ((__int64)iFu)*fv*d + (1 << (2*SCALE_BIT_BIG-1)) ) >> (2*SCALE_BIT_BIG); | |
| 113 | + // ((__int64)iFu)*fv*d + (1 << (2*SCALE_BIT_BIG-1)) ) >> (2*SCALE_BIT_BIG); | |
| 114 | 114 | x = WELS_CLAMP (x, 0, 255); |
| 115 | 115 | *pByDst++ = (uint8_t)x; |
| 116 | 116 | |