yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,

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

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

                       int uvalpha, int y, enum PixelFormat target)

{

    const int32_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]    ) >> 2;

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

            int U  = (ubuf0[i] + (-128 << 11)) >> 2;

            int V  = (vbuf0[i] + (-128 << 11)) >> 2;

            int R, G, B;



            Y1 -= c->yuv2rgb_y_offset;

            Y2 -= c->yuv2rgb_y_offset;

            Y1 *= c->yuv2rgb_y_coeff;

            Y2 *= c->yuv2rgb_y_coeff;

            Y1 += 1 << 13;

            Y2 += 1 << 13;



            R = V * c->yuv2rgb_v2r_coeff;

            G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff;

            B =                            U * c->yuv2rgb_u2b_coeff;



            output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);

            output_pixel(&dest[1], av_clip_uintp2(  G + Y1, 30) >> 14);

            output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);

            output_pixel(&dest[3], av_clip_uintp2(R_B + Y2, 30) >> 14);

            output_pixel(&dest[4], av_clip_uintp2(  G + Y2, 30) >> 14);

            output_pixel(&dest[5], av_clip_uintp2(B_R + Y2, 30) >> 14);

            dest += 6;

        }

    } else {

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

            int Y1 = (buf0[i * 2]    ) >> 2;

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

            int U  = (ubuf0[i] + ubuf1[i] + (-128 << 11)) >> 3;

            int V  = (vbuf0[i] + vbuf1[i] + (-128 << 11)) >> 3;

            int R, G, B;



            Y1 -= c->yuv2rgb_y_offset;

            Y2 -= c->yuv2rgb_y_offset;

            Y1 *= c->yuv2rgb_y_coeff;

            Y2 *= c->yuv2rgb_y_coeff;

            Y1 += 1 << 13;

            Y2 += 1 << 13;



            R = V * c->yuv2rgb_v2r_coeff;

            G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff;

            B =                            U * c->yuv2rgb_u2b_coeff;



            output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);

            output_pixel(&dest[1], av_clip_uintp2(  G + Y1, 30) >> 14);

            output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);

            output_pixel(&dest[3], av_clip_uintp2(R_B + Y2, 30) >> 14);

            output_pixel(&dest[4], av_clip_uintp2(  G + Y2, 30) >> 14);

            output_pixel(&dest[5], av_clip_uintp2(B_R + Y2, 30) >> 14);

            dest += 6;

        }

    }

}

yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,

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

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

                       int uvalpha, int y, enum PixelFormat target)

{

    const int32_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]    ) >> 2;

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

            int U  = (ubuf0[i] + (-128 << 11)) >> 2;

            int V  = (vbuf0[i] + (-128 << 11)) >> 2;

            int R, G, B;



            Y1 -= c->yuv2rgb_y_offset;

            Y2 -= c->yuv2rgb_y_offset;

            Y1 *= c->yuv2rgb_y_coeff;

            Y2 *= c->yuv2rgb_y_coeff;

            Y1 += 1 << 13;

            Y2 += 1 << 13;



            R = V * c->yuv2rgb_v2r_coeff;

            G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff;

            B =                            U * c->yuv2rgb_u2b_coeff;



            output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);

            output_pixel(&dest[1], av_clip_uintp2(  G + Y1, 30) >> 14);

            output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);

            output_pixel(&dest[3], av_clip_uintp2(R_B + Y2, 30) >> 14);

            output_pixel(&dest[4], av_clip_uintp2(  G + Y2, 30) >> 14);

            output_pixel(&dest[5], av_clip_uintp2(B_R + Y2, 30) >> 14);

            dest += 6;

        }

    } else {

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

            int Y1 = (buf0[i * 2]    ) >> 2;

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

            int U  = (ubuf0[i] + ubuf1[i] + (-128 << 11)) >> 3;

            int V  = (vbuf0[i] + vbuf1[i] + (-128 << 11)) >> 3;

            int R, G, B;



            Y1 -= c->yuv2rgb_y_offset;

            Y2 -= c->yuv2rgb_y_offset;

            Y1 *= c->yuv2rgb_y_coeff;

            Y2 *= c->yuv2rgb_y_coeff;

            Y1 += 1 << 13;

            Y2 += 1 << 13;



            R = V * c->yuv2rgb_v2r_coeff;

            G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff;

            B =                            U * c->yuv2rgb_u2b_coeff;



            output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);

            output_pixel(&dest[1], av_clip_uintp2(  G + Y1, 30) >> 14);

            output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);

            output_pixel(&dest[3], av_clip_uintp2(R_B + Y2, 30) >> 14);

            output_pixel(&dest[4], av_clip_uintp2(  G + Y2, 30) >> 14);

            output_pixel(&dest[5], av_clip_uintp2(B_R + Y2, 30) >> 14);

            dest += 6;

        }

    }

}

                  *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];     const int32_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],                   *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];                   *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];
FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1,

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

                       const int32_t *VAR_4, uint16_t *VAR_5, int VAR_6,

                       int VAR_7, int VAR_8, enum PixelFormat VAR_9)

{

    const int32_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_19 = (VAR_1[VAR_11 * 2]    ) >> 2;

            int VAR_19 = (VAR_1[VAR_11 * 2 + 1]) >> 2;

            int VAR_19  = (VAR_10[VAR_11] + (-128 << 11)) >> 2;

            int VAR_19  = (vbuf0[VAR_11] + (-128 << 11)) >> 2;

            int VAR_19, VAR_19, VAR_19;



            VAR_19 -= VAR_0->yuv2rgb_y_offset;

            VAR_19 -= VAR_0->yuv2rgb_y_offset;

            VAR_19 *= VAR_0->yuv2rgb_y_coeff;

            VAR_19 *= VAR_0->yuv2rgb_y_coeff;

            VAR_19 += 1 << 13;

            VAR_19 += 1 << 13;



            VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2r_coeff;

            VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2g_coeff + VAR_19 * VAR_0->yuv2rgb_u2g_coeff;

            VAR_19 =                            VAR_19 * VAR_0->yuv2rgb_u2b_coeff;



            output_pixel(&VAR_5[0], av_clip_uintp2(R_B + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[1], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[2], av_clip_uintp2(B_R + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[3], av_clip_uintp2(R_B + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[4], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[5], av_clip_uintp2(B_R + VAR_19, 30) >> 14);

            VAR_5 += 6;

        }

    } else {

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

            int VAR_19 = (VAR_1[VAR_11 * 2]    ) >> 2;

            int VAR_19 = (VAR_1[VAR_11 * 2 + 1]) >> 2;

            int VAR_19  = (VAR_10[VAR_11] + ubuf1[VAR_11] + (-128 << 11)) >> 3;

            int VAR_19  = (vbuf0[VAR_11] + vbuf1[VAR_11] + (-128 << 11)) >> 3;

            int VAR_19, VAR_19, VAR_19;



            VAR_19 -= VAR_0->yuv2rgb_y_offset;

            VAR_19 -= VAR_0->yuv2rgb_y_offset;

            VAR_19 *= VAR_0->yuv2rgb_y_coeff;

            VAR_19 *= VAR_0->yuv2rgb_y_coeff;

            VAR_19 += 1 << 13;

            VAR_19 += 1 << 13;



            VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2r_coeff;

            VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2g_coeff + VAR_19 * VAR_0->yuv2rgb_u2g_coeff;

            VAR_19 =                            VAR_19 * VAR_0->yuv2rgb_u2b_coeff;



            output_pixel(&VAR_5[0], av_clip_uintp2(R_B + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[1], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[2], av_clip_uintp2(B_R + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[3], av_clip_uintp2(R_B + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[4], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14);

            output_pixel(&VAR_5[5], av_clip_uintp2(B_R + VAR_19, 30) >> 14);

            VAR_5 += 6;

        }

    }

}

FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1,
const int32_t *VAR_2[2], const int32_t *VAR_3[2],
const int32_t *VAR_4, uint16_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, enum PixelFormat VAR_9)
{ const int32_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_19 = (VAR_1[VAR_11 * 2]    ) >> 2; int VAR_19 = (VAR_1[VAR_11 * 2 + 1]) >> 2; int VAR_19  = (VAR_10[VAR_11] + (-128 << 11)) >> 2; int VAR_19  = (vbuf0[VAR_11] + (-128 << 11)) >> 2; int VAR_19, VAR_19, VAR_19; VAR_19 -= VAR_0->yuv2rgb_y_offset; VAR_19 -= VAR_0->yuv2rgb_y_offset; VAR_19 *= VAR_0->yuv2rgb_y_coeff; VAR_19 *= VAR_0->yuv2rgb_y_coeff; VAR_19 += 1 << 13; VAR_19 += 1 << 13; VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2r_coeff; VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2g_coeff + VAR_19 * VAR_0->yuv2rgb_u2g_coeff; VAR_19 =                            VAR_19 * VAR_0->yuv2rgb_u2b_coeff; output_pixel(&VAR_5[0], av_clip_uintp2(R_B + VAR_19, 30) >> 14); output_pixel(&VAR_5[1], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14); output_pixel(&VAR_5[2], av_clip_uintp2(B_R + VAR_19, 30) >> 14); output_pixel(&VAR_5[3], av_clip_uintp2(R_B + VAR_19, 30) >> 14); output_pixel(&VAR_5[4], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14); output_pixel(&VAR_5[5], av_clip_uintp2(B_R + VAR_19, 30) >> 14); VAR_5 += 6; } } else { for (VAR_11 = 0; VAR_11 < (VAR_6 >> 1); VAR_11++) { int VAR_19 = (VAR_1[VAR_11 * 2]    ) >> 2; int VAR_19 = (VAR_1[VAR_11 * 2 + 1]) >> 2; int VAR_19  = (VAR_10[VAR_11] + ubuf1[VAR_11] + (-128 << 11)) >> 3; int VAR_19  = (vbuf0[VAR_11] + vbuf1[VAR_11] + (-128 << 11)) >> 3; int VAR_19, VAR_19, VAR_19; VAR_19 -= VAR_0->yuv2rgb_y_offset; VAR_19 -= VAR_0->yuv2rgb_y_offset; VAR_19 *= VAR_0->yuv2rgb_y_coeff; VAR_19 *= VAR_0->yuv2rgb_y_coeff; VAR_19 += 1 << 13; VAR_19 += 1 << 13; VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2r_coeff; VAR_19 = VAR_19 * VAR_0->yuv2rgb_v2g_coeff + VAR_19 * VAR_0->yuv2rgb_u2g_coeff; VAR_19 =                            VAR_19 * VAR_0->yuv2rgb_u2b_coeff; output_pixel(&VAR_5[0], av_clip_uintp2(R_B + VAR_19, 30) >> 14); output_pixel(&VAR_5[1], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14); output_pixel(&VAR_5[2], av_clip_uintp2(B_R + VAR_19, 30) >> 14); output_pixel(&VAR_5[3], av_clip_uintp2(R_B + VAR_19, 30) >> 14); output_pixel(&VAR_5[4], av_clip_uintp2(  VAR_19 + VAR_19, 30) >> 14); output_pixel(&VAR_5[5], av_clip_uintp2(B_R + VAR_19, 30) >> 14); VAR_5 += 6; } } }