Revision 22e8222f libswscale/swscale.c

View differences:

libswscale/swscale.c
39 39

  
40 40
/*
41 41
tested special converters (most are tested actually, but I did not write it down ...)
42
 YV12 -> BGR16
42
 YV12 -> BGR12/BGR16
43 43
 YV12 -> YV12
44 44
 BGR15 -> BGR16
45 45
 BGR16 -> BGR16
......
805 805
            }\
806 806
        }\
807 807
        break;\
808
    case PIX_FMT_RGB444BE:\
809
    case PIX_FMT_RGB444LE:\
810
    case PIX_FMT_BGR444BE:\
811
    case PIX_FMT_BGR444LE:\
812
        {\
813
            const int dr1= dither_4x4_16[y&3    ][0];\
814
            const int dg1= dither_4x4_16[y&3    ][1];\
815
            const int db1= dither_4x4_16[(y&3)^3][0];\
816
            const int dr2= dither_4x4_16[y&3    ][1];\
817
            const int dg2= dither_4x4_16[y&3    ][0];\
818
            const int db2= dither_4x4_16[(y&3)^3][1];\
819
            func(uint16_t,0)\
820
                ((uint16_t*)dest)[i2+0]= r[Y1+dr1] + g[Y1+dg1] + b[Y1+db1];\
821
                ((uint16_t*)dest)[i2+1]= r[Y2+dr2] + g[Y2+dg2] + b[Y2+db2];\
822
            }\
823
        }\
824
        break;\
808 825
    case PIX_FMT_RGB8:\
809 826
    case PIX_FMT_BGR8:\
810 827
        {\

Also available in: Unified diff