Revision a1899e0a libswscale/swscale.c

View differences:

libswscale/swscale.c
1069 1069
{\
1070 1070
    int i;\
1071 1071
    for (i=0; i<width; i++) {\
1072
        int b= (((const type*)src)[i]&maskb)>>(shb+shp);\
1073
        int g= (((const type*)src)[i]&maskg)>>(shg+shp);\
1074
        int r= (((const type*)src)[i]&maskr)>>(shr+shp);\
1072
        int b= ((((const type*)src)[i]>>shp)&maskb)>>shb;\
1073
        int g= ((((const type*)src)[i]>>shp)&maskg)>>shg;\
1074
        int r= ((((const type*)src)[i]>>shp)&maskr)>>shr;\
1075 1075
\
1076 1076
        dstU[i]= ((RU)*r + (GU)*g + (BU)*b + (257<<((S)-1)))>>(S);\
1077 1077
        dstV[i]= ((RV)*r + (GV)*g + (BV)*b + (257<<((S)-1)))>>(S);\

Also available in: Unified diff