1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

swscale: More accurate rounding in YSCALE_YUV_2_PACKEDX_FULL_C()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-06-01 04:15:13 +02:00
parent f6a8ce98a7
commit 201549d1a9

View File

@@ -557,9 +557,9 @@ static inline void yuv2nv12XinC(const int16_t *lumFilter, const int16_t **lumSrc
#define YSCALE_YUV_2_PACKEDX_FULL_C(rnd,alpha) \ #define YSCALE_YUV_2_PACKEDX_FULL_C(rnd,alpha) \
for (i=0; i<dstW; i++) {\ for (i=0; i<dstW; i++) {\
int j;\ int j;\
int Y = 0;\ int Y = 1<<9;\
int U = -128<<19;\ int U = (1<<9)-(128<<19);\
int V = -128<<19;\ int V = (1<<9)-(128<<19);\
int av_unused A;\ int av_unused A;\
int R,G,B;\ int R,G,B;\
\ \