yuv2mono_1_c_template(SwsContext *c, const uint16_t *buf0,

                      const uint16_t *ubuf0, const uint16_t *ubuf1,

                      const uint16_t *vbuf0, const uint16_t *vbuf1,

                      const uint16_t *abuf0, uint8_t *dest, int dstW,

                      int uvalpha, enum PixelFormat dstFormat,

                      int flags, int y, enum PixelFormat target)

{

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

    uint8_t *g = c->table_gU[128] + c->table_gV[128];

    int i;



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

        int acc =    g[(buf0[i    ] >> 7) + d128[0]];

        acc += acc + g[(buf0[i + 1] >> 7) + d128[1]];

        acc += acc + g[(buf0[i + 2] >> 7) + d128[2]];

        acc += acc + g[(buf0[i + 3] >> 7) + d128[3]];

        acc += acc + g[(buf0[i + 4] >> 7) + d128[4]];

        acc += acc + g[(buf0[i + 5] >> 7) + d128[5]];

        acc += acc + g[(buf0[i + 6] >> 7) + d128[6]];

        acc += acc + g[(buf0[i + 7] >> 7) + d128[7]];

        output_pixel(*dest++, acc);

    }

}

yuv2mono_1_c_template(SwsContext *c, const uint16_t *buf0,

                      const uint16_t *ubuf0, const uint16_t *ubuf1,

                      const uint16_t *vbuf0, const uint16_t *vbuf1,

                      const uint16_t *abuf0, uint8_t *dest, int dstW,

                      int uvalpha, enum PixelFormat dstFormat,

                      int flags, int y, enum PixelFormat target)

{

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

    uint8_t *g = c->table_gU[128] + c->table_gV[128];

    int i;



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

        int acc =    g[(buf0[i    ] >> 7) + d128[0]];

        acc += acc + g[(buf0[i + 1] >> 7) + d128[1]];

        acc += acc + g[(buf0[i + 2] >> 7) + d128[2]];

        acc += acc + g[(buf0[i + 3] >> 7) + d128[3]];

        acc += acc + g[(buf0[i + 4] >> 7) + d128[4]];

        acc += acc + g[(buf0[i + 5] >> 7) + d128[5]];

        acc += acc + g[(buf0[i + 6] >> 7) + d128[6]];

        acc += acc + g[(buf0[i + 7] >> 7) + d128[7]];

        output_pixel(*dest++, acc);

    }

}

FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,

                      const uint16_t *VAR_2, const uint16_t *VAR_3,

                      const uint16_t *VAR_4, const uint16_t *VAR_5,

                      const uint16_t *VAR_6, uint8_t *VAR_7, int VAR_8,

                      int VAR_9, enum PixelFormat VAR_10,

                      int VAR_11, int VAR_12, enum PixelFormat VAR_13)

{

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

    uint8_t *g = VAR_0->table_gU[128] + VAR_0->table_gV[128];

    int VAR_15;



    for (VAR_15 = 0; VAR_15 < VAR_8 - 7; VAR_15 += 8) {

        int VAR_16 =    g[(VAR_1[VAR_15    ] >> 7) + VAR_14[0]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 1] >> 7) + VAR_14[1]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 2] >> 7) + VAR_14[2]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 3] >> 7) + VAR_14[3]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 4] >> 7) + VAR_14[4]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 5] >> 7) + VAR_14[5]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 6] >> 7) + VAR_14[6]];

        VAR_16 += VAR_16 + g[(VAR_1[VAR_15 + 7] >> 7) + VAR_14[7]];

        output_pixel(*VAR_7++, VAR_16);

    }

}

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