Revision 23bf3b2c libswscale/swscale.c

View differences:

libswscale/swscale.c
1849 1849
                r= (i>>3    )*255;
1850 1850
                g= ((i>>1)&3)*85;
1851 1851
                b= (i&1     )*255;
1852
            } else if(c->srcFormat == PIX_FMT_GRAY8) {
1853
                r = g = b = i;
1852 1854
            } else {
1853 1855
                assert(c->srcFormat == PIX_FMT_BGR4_BYTE);
1854 1856
                b= (i>>3    )*255;

Also available in: Unified diff