yuv2rgb48_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)

{

    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;

            const uint8_t *r = (const uint8_t *) c->table_rV[V],

                          *g = (const uint8_t *)(c->table_gU[U] + c->table_gV[V]),

                          *b = (const uint8_t *) c->table_bU[U];



            dest[ 0] = dest[ 1] = r_b[Y1];

            dest[ 2] = dest[ 3] =   g[Y1];

            dest[ 4] = dest[ 5] = b_r[Y1];

            dest[ 6] = dest[ 7] = r_b[Y2];

            dest[ 8] = dest[ 9] =   g[Y2];

            dest[10] = dest[11] = b_r[Y2];

            dest += 12;

        }

    } 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;

            const uint8_t *r = (const uint8_t *) c->table_rV[V],

                          *g = (const uint8_t *)(c->table_gU[U] + c->table_gV[V]),

                          *b = (const uint8_t *) c->table_bU[U];



            dest[ 0] = dest[ 1] = r_b[Y1];

            dest[ 2] = dest[ 3] =   g[Y1];

            dest[ 4] = dest[ 5] = b_r[Y1];

            dest[ 6] = dest[ 7] = r_b[Y2];

            dest[ 8] = dest[ 9] =   g[Y2];

            dest[10] = dest[11] = b_r[Y2];

            dest += 12;

        }

    }

}

yuv2rgb48_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)

{

    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;

            const uint8_t *r = (const uint8_t *) c->table_rV[V],

                          *g = (const uint8_t *)(c->table_gU[U] + c->table_gV[V]),

                          *b = (const uint8_t *) c->table_bU[U];



            dest[ 0] = dest[ 1] = r_b[Y1];

            dest[ 2] = dest[ 3] =   g[Y1];

            dest[ 4] = dest[ 5] = b_r[Y1];

            dest[ 6] = dest[ 7] = r_b[Y2];

            dest[ 8] = dest[ 9] =   g[Y2];

            dest[10] = dest[11] = b_r[Y2];

            dest += 12;

        }

    } 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;

            const uint8_t *r = (const uint8_t *) c->table_rV[V],

                          *g = (const uint8_t *)(c->table_gU[U] + c->table_gV[V]),

                          *b = (const uint8_t *) c->table_bU[U];



            dest[ 0] = dest[ 1] = r_b[Y1];

            dest[ 2] = dest[ 3] =   g[Y1];

            dest[ 4] = dest[ 5] = b_r[Y1];

            dest[ 6] = dest[ 7] = r_b[Y2];

            dest[ 8] = dest[ 9] =   g[Y2];

            dest[10] = dest[11] = b_r[Y2];

            dest += 12;

        }

    }

}

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)

{

    int VAR_14;



    if (VAR_9 < 2048) {

        for (VAR_14 = 0; VAR_14 < (VAR_8 >> 1); VAR_14++) {

            int VAR_20 = VAR_1[VAR_14 * 2]     >> 7;

            int VAR_20 = VAR_1[VAR_14 * 2 + 1] >> 7;

            int VAR_20  = VAR_3[VAR_14]        >> 7;

            int VAR_20  = VAR_5[VAR_14]        >> 7;

            const uint8_t *VAR_20 = (const uint8_t *) VAR_0->table_rV[VAR_20],

                          *g = (const uint8_t *)(VAR_0->table_gU[VAR_20] + VAR_0->table_gV[VAR_20]),

                          *b = (const uint8_t *) VAR_0->table_bU[VAR_20];



            VAR_7[ 0] = VAR_7[ 1] = r_b[VAR_20];

            VAR_7[ 2] = VAR_7[ 3] =   g[VAR_20];

            VAR_7[ 4] = VAR_7[ 5] = b_r[VAR_20];

            VAR_7[ 6] = VAR_7[ 7] = r_b[VAR_20];

            VAR_7[ 8] = VAR_7[ 9] =   g[VAR_20];

            VAR_7[10] = VAR_7[11] = b_r[VAR_20];

            VAR_7 += 12;

        }

    } else {

        for (VAR_14 = 0; VAR_14 < (VAR_8 >> 1); VAR_14++) {

            int VAR_20 =  VAR_1[VAR_14 * 2]          >> 7;

            int VAR_20 =  VAR_1[VAR_14 * 2 + 1]      >> 7;

            int VAR_20  = (VAR_2[VAR_14] + VAR_3[VAR_14]) >> 8;

            int VAR_20  = (VAR_4[VAR_14] + VAR_5[VAR_14]) >> 8;

            const uint8_t *VAR_20 = (const uint8_t *) VAR_0->table_rV[VAR_20],

                          *g = (const uint8_t *)(VAR_0->table_gU[VAR_20] + VAR_0->table_gV[VAR_20]),

                          *b = (const uint8_t *) VAR_0->table_bU[VAR_20];



            VAR_7[ 0] = VAR_7[ 1] = r_b[VAR_20];

            VAR_7[ 2] = VAR_7[ 3] =   g[VAR_20];

            VAR_7[ 4] = VAR_7[ 5] = b_r[VAR_20];

            VAR_7[ 6] = VAR_7[ 7] = r_b[VAR_20];

            VAR_7[ 8] = VAR_7[ 9] =   g[VAR_20];

            VAR_7[10] = VAR_7[11] = b_r[VAR_20];

            VAR_7 += 12;

        }

    }

}

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)
{ int VAR_14; if (VAR_9 < 2048) { for (VAR_14 = 0; VAR_14 < (VAR_8 >> 1); VAR_14++) { int VAR_20 = VAR_1[VAR_14 * 2]     >> 7; int VAR_20 = VAR_1[VAR_14 * 2 + 1] >> 7; int VAR_20  = VAR_3[VAR_14]        >> 7; int VAR_20  = VAR_5[VAR_14]        >> 7; const uint8_t *VAR_20 = (const uint8_t *) VAR_0->table_rV[VAR_20],
*g = (const uint8_t *)(VAR_0->table_gU[VAR_20] + VAR_0->table_gV[VAR_20]),
*b = (const uint8_t *) VAR_0->table_bU[VAR_20]; VAR_7[ 0] = VAR_7[ 1] = r_b[VAR_20]; VAR_7[ 2] = VAR_7[ 3] =   g[VAR_20]; VAR_7[ 4] = VAR_7[ 5] = b_r[VAR_20]; VAR_7[ 6] = VAR_7[ 7] = r_b[VAR_20]; VAR_7[ 8] = VAR_7[ 9] =   g[VAR_20]; VAR_7[10] = VAR_7[11] = b_r[VAR_20]; VAR_7 += 12; } } else { for (VAR_14 = 0; VAR_14 < (VAR_8 >> 1); VAR_14++) { int VAR_20 =  VAR_1[VAR_14 * 2]          >> 7; int VAR_20 =  VAR_1[VAR_14 * 2 + 1]      >> 7; int VAR_20  = (VAR_2[VAR_14] + VAR_3[VAR_14]) >> 8; int VAR_20  = (VAR_4[VAR_14] + VAR_5[VAR_14]) >> 8; const uint8_t *VAR_20 = (const uint8_t *) VAR_0->table_rV[VAR_20],
*g = (const uint8_t *)(VAR_0->table_gU[VAR_20] + VAR_0->table_gV[VAR_20]),
*b = (const uint8_t *) VAR_0->table_bU[VAR_20]; VAR_7[ 0] = VAR_7[ 1] = r_b[VAR_20]; VAR_7[ 2] = VAR_7[ 3] =   g[VAR_20]; VAR_7[ 4] = VAR_7[ 5] = b_r[VAR_20]; VAR_7[ 6] = VAR_7[ 7] = r_b[VAR_20]; VAR_7[ 8] = VAR_7[ 9] =   g[VAR_20]; VAR_7[10] = VAR_7[11] = b_r[VAR_20]; VAR_7 += 12; } } }