yuv2422_1_c_template(SwsContext *c, const int16_t *buf0,

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

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

                     int uvalpha, int y, enum PixelFormat target)

{

    const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],

                  *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];

    int i;



    if (uvalpha < 2048) {

        for (i = 0; i < (dstW >> 1); i++) {

            int Y1 = buf0[i * 2]     >> 7;

            int Y2 = buf0[i * 2 + 1] >> 7;

            int U  = ubuf1[i]        >> 7;

            int V  = vbuf1[i]        >> 7;



            output_pixels(i * 4, Y1, U, Y2, V);

        }

    } else {

        for (i = 0; i < (dstW >> 1); i++) {

            int Y1 =  buf0[i * 2]          >> 7;

            int Y2 =  buf0[i * 2 + 1]      >> 7;

            int U  = (ubuf0[i] + ubuf1[i]) >> 8;

            int V  = (vbuf0[i] + vbuf1[i]) >> 8;



            output_pixels(i * 4, Y1, U, Y2, V);

        }

    }

}

yuv2422_1_c_template(SwsContext *c, const int16_t *buf0,

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

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

                     int uvalpha, int y, enum PixelFormat target)

{

    const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],

                  *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];

    int i;



    if (uvalpha < 2048) {

        for (i = 0; i < (dstW >> 1); i++) {

            int Y1 = buf0[i * 2]     >> 7;

            int Y2 = buf0[i * 2 + 1] >> 7;

            int U  = ubuf1[i]        >> 7;

            int V  = vbuf1[i]        >> 7;



            output_pixels(i * 4, Y1, U, Y2, V);

        }

    } else {

        for (i = 0; i < (dstW >> 1); i++) {

            int Y1 =  buf0[i * 2]          >> 7;

            int Y2 =  buf0[i * 2 + 1]      >> 7;

            int U  = (ubuf0[i] + ubuf1[i]) >> 8;

            int V  = (vbuf0[i] + vbuf1[i]) >> 8;



            output_pixels(i * 4, Y1, U, Y2, V);

        }

    }

}

    const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],                   *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];             int U  = ubuf1[i]        >> 7;             int V  = vbuf1[i]        >> 7;                   *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];     const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],                   *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];             int U  = ubuf1[i]        >> 7;             int V  = vbuf1[i]        >> 7;
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,

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

                     const int16_t *VAR_4, uint8_t *VAR_5, int VAR_6,

                     int VAR_7, int VAR_8, enum PixelFormat VAR_9)

{

    const int16_t *VAR_10 = VAR_2[0], *ubuf1 = VAR_2[1],

                  *vbuf0 = VAR_3[0], *vbuf1 = VAR_3[1];

    int VAR_11;



    if (VAR_7 < 2048) {

        for (VAR_11 = 0; VAR_11 < (VAR_6 >> 1); VAR_11++) {

            int VAR_16 = VAR_1[VAR_11 * 2]     >> 7;

            int VAR_16 = VAR_1[VAR_11 * 2 + 1] >> 7;

            int VAR_16  = ubuf1[VAR_11]        >> 7;

            int VAR_16  = vbuf1[VAR_11]        >> 7;



            output_pixels(VAR_11 * 4, VAR_16, VAR_16, VAR_16, VAR_16);

        }

    } else {

        for (VAR_11 = 0; VAR_11 < (VAR_6 >> 1); VAR_11++) {

            int VAR_16 =  VAR_1[VAR_11 * 2]          >> 7;

            int VAR_16 =  VAR_1[VAR_11 * 2 + 1]      >> 7;

            int VAR_16  = (VAR_10[VAR_11] + ubuf1[VAR_11]) >> 8;

            int VAR_16  = (vbuf0[VAR_11] + vbuf1[VAR_11]) >> 8;



            output_pixels(VAR_11 * 4, VAR_16, VAR_16, VAR_16, VAR_16);

        }

    }

}

FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,
const int16_t *VAR_2[2], const int16_t *VAR_3[2],
const int16_t *VAR_4, uint8_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, enum PixelFormat VAR_9)
{ const int16_t *VAR_10 = VAR_2[0], *ubuf1 = VAR_2[1],
*vbuf0 = VAR_3[0], *vbuf1 = VAR_3[1]; int VAR_11; if (VAR_7 < 2048) { for (VAR_11 = 0; VAR_11 < (VAR_6 >> 1); VAR_11++) { int VAR_16 = VAR_1[VAR_11 * 2]     >> 7; int VAR_16 = VAR_1[VAR_11 * 2 + 1] >> 7; int VAR_16  = ubuf1[VAR_11]        >> 7; int VAR_16  = vbuf1[VAR_11]        >> 7; output_pixels(VAR_11 * 4, VAR_16, VAR_16, VAR_16, VAR_16); } } else { for (VAR_11 = 0; VAR_11 < (VAR_6 >> 1); VAR_11++) { int VAR_16 =  VAR_1[VAR_11 * 2]          >> 7; int VAR_16 =  VAR_1[VAR_11 * 2 + 1]      >> 7; int VAR_16  = (VAR_10[VAR_11] + ubuf1[VAR_11]) >> 8; int VAR_16  = (vbuf0[VAR_11] + vbuf1[VAR_11]) >> 8; output_pixels(VAR_11 * 4, VAR_16, VAR_16, VAR_16, VAR_16); } } }