yuv2mono_2_c_template(SwsContext *c, const int16_t *buf[2],

                      const int16_t *ubuf[2], const int16_t *vbuf[2],

                      const int16_t *abuf[2], uint8_t *dest, int dstW,

                      int yalpha, int uvalpha, int y,

                      enum PixelFormat target)

{

    const int16_t *buf0  = buf[0],  *buf1  = buf[1];

    const uint8_t * const d128 = dither_8x8_220[y & 7];

    int  yalpha1 = 4095 - yalpha;

    int i;



    for (i = 0; i < dstW; i += 8) {

        int Y, acc = 0;



        Y = (buf0[i + 0] * yalpha1 + buf1[i + 0] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[0]);

        Y = (buf0[i + 1] * yalpha1 + buf1[i + 1] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[1]);

        Y = (buf0[i + 2] * yalpha1 + buf1[i + 2] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[2]);

        Y = (buf0[i + 3] * yalpha1 + buf1[i + 3] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[3]);

        Y = (buf0[i + 4] * yalpha1 + buf1[i + 4] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[4]);

        Y = (buf0[i + 5] * yalpha1 + buf1[i + 5] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[5]);

        Y = (buf0[i + 6] * yalpha1 + buf1[i + 6] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[6]);

        Y = (buf0[i + 7] * yalpha1 + buf1[i + 7] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[7]);



        output_pixel(*dest++, acc);

    }

}

yuv2mono_2_c_template(SwsContext *c, const int16_t *buf[2],

                      const int16_t *ubuf[2], const int16_t *vbuf[2],

                      const int16_t *abuf[2], uint8_t *dest, int dstW,

                      int yalpha, int uvalpha, int y,

                      enum PixelFormat target)

{

    const int16_t *buf0  = buf[0],  *buf1  = buf[1];

    const uint8_t * const d128 = dither_8x8_220[y & 7];

    int  yalpha1 = 4095 - yalpha;

    int i;



    for (i = 0; i < dstW; i += 8) {

        int Y, acc = 0;



        Y = (buf0[i + 0] * yalpha1 + buf1[i + 0] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[0]);

        Y = (buf0[i + 1] * yalpha1 + buf1[i + 1] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[1]);

        Y = (buf0[i + 2] * yalpha1 + buf1[i + 2] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[2]);

        Y = (buf0[i + 3] * yalpha1 + buf1[i + 3] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[3]);

        Y = (buf0[i + 4] * yalpha1 + buf1[i + 4] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[4]);

        Y = (buf0[i + 5] * yalpha1 + buf1[i + 5] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[5]);

        Y = (buf0[i + 6] * yalpha1 + buf1[i + 6] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[6]);

        Y = (buf0[i + 7] * yalpha1 + buf1[i + 7] * yalpha) >> 19;

        accumulate_bit(acc, Y + d128[7]);



        output_pixel(*dest++, acc);

    }

}

    int  yalpha1 = 4095 - yalpha;     int  yalpha1 = 4095 - yalpha;     int  yalpha1 = 4095 - yalpha;     int  yalpha1 = 4095 - yalpha;
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],

                      const int16_t *VAR_2[2], const int16_t *VAR_3[2],

                      const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,

                      int VAR_7, int VAR_8, int VAR_9,

                      enum PixelFormat VAR_10)

{

    const int16_t *VAR_11  = VAR_1[0],  *buf1  = VAR_1[1];

    const uint8_t * const VAR_12 = dither_8x8_220[VAR_9 & 7];

    int  VAR_13 = 4095 - VAR_7;

    int VAR_14;



    for (VAR_14 = 0; VAR_14 < VAR_6; VAR_14 += 8) {

        int VAR_15, VAR_16 = 0;



        VAR_15 = (VAR_11[VAR_14 + 0] * VAR_13 + buf1[VAR_14 + 0] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[0]);

        VAR_15 = (VAR_11[VAR_14 + 1] * VAR_13 + buf1[VAR_14 + 1] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[1]);

        VAR_15 = (VAR_11[VAR_14 + 2] * VAR_13 + buf1[VAR_14 + 2] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[2]);

        VAR_15 = (VAR_11[VAR_14 + 3] * VAR_13 + buf1[VAR_14 + 3] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[3]);

        VAR_15 = (VAR_11[VAR_14 + 4] * VAR_13 + buf1[VAR_14 + 4] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[4]);

        VAR_15 = (VAR_11[VAR_14 + 5] * VAR_13 + buf1[VAR_14 + 5] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[5]);

        VAR_15 = (VAR_11[VAR_14 + 6] * VAR_13 + buf1[VAR_14 + 6] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[6]);

        VAR_15 = (VAR_11[VAR_14 + 7] * VAR_13 + buf1[VAR_14 + 7] * VAR_7) >> 19;

        accumulate_bit(VAR_16, VAR_15 + VAR_12[7]);



        output_pixel(*VAR_5++, VAR_16);

    }

}

FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],
const int16_t *VAR_2[2], const int16_t *VAR_3[2],
const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, int VAR_9,
enum PixelFormat VAR_10)
{ const int16_t *VAR_11  = VAR_1[0],  *buf1  = VAR_1[1]; const uint8_t * const VAR_12 = dither_8x8_220[VAR_9 & 7]; int  VAR_13 = 4095 - VAR_7; int VAR_14; for (VAR_14 = 0; VAR_14 < VAR_6; VAR_14 += 8) { int VAR_15, VAR_16 = 0; VAR_15 = (VAR_11[VAR_14 + 0] * VAR_13 + buf1[VAR_14 + 0] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[0]); VAR_15 = (VAR_11[VAR_14 + 1] * VAR_13 + buf1[VAR_14 + 1] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[1]); VAR_15 = (VAR_11[VAR_14 + 2] * VAR_13 + buf1[VAR_14 + 2] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[2]); VAR_15 = (VAR_11[VAR_14 + 3] * VAR_13 + buf1[VAR_14 + 3] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[3]); VAR_15 = (VAR_11[VAR_14 + 4] * VAR_13 + buf1[VAR_14 + 4] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[4]); VAR_15 = (VAR_11[VAR_14 + 5] * VAR_13 + buf1[VAR_14 + 5] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[5]); VAR_15 = (VAR_11[VAR_14 + 6] * VAR_13 + buf1[VAR_14 + 6] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[6]); VAR_15 = (VAR_11[VAR_14 + 7] * VAR_13 + buf1[VAR_14 + 7] * VAR_7) >> 19; accumulate_bit(VAR_16, VAR_15 + VAR_12[7]); output_pixel(*VAR_5++, VAR_16); } }