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



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

        const int i2 = 2 * i;

        int Y1 = buf0[i2  ] << 1;

        int Y2 = buf0[i2+1] << 1;



        output_pixel(&dest[2 * i2 + 0], Y1);

        output_pixel(&dest[2 * i2 + 2], Y2);

    }

}

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



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

        const int i2 = 2 * i;

        int Y1 = buf0[i2  ] << 1;

        int Y2 = buf0[i2+1] << 1;



        output_pixel(&dest[2 * i2 + 0], Y1);

        output_pixel(&dest[2 * i2 + 2], Y2);

    }

}

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;



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

        const int VAR_15 = 2 * VAR_14;

        int VAR_16 = VAR_1[VAR_15  ] << 1;

        int VAR_17 = VAR_1[VAR_15+1] << 1;



        output_pixel(&VAR_7[2 * VAR_15 + 0], VAR_16);

        output_pixel(&VAR_7[2 * VAR_15 + 2], VAR_17);

    }

}

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; for (VAR_14 = 0; VAR_14 < (VAR_8 >> 1); VAR_14++) { const int VAR_15 = 2 * VAR_14; int VAR_16 = VAR_1[VAR_15  ] << 1; int VAR_17 = VAR_1[VAR_15+1] << 1; output_pixel(&VAR_7[2 * VAR_15 + 0], VAR_16); output_pixel(&VAR_7[2 * VAR_15 + 2], VAR_17); } }