static void rgba32_to_rgb24(AVPicture *dst, AVPicture *src,

                            int width, int height)

{

    const uint8_t *s;

    uint8_t *d;

    int src_wrap, dst_wrap, j, y;

    unsigned int v;



    s = src->data[0];

    src_wrap = src->linesize[0] - width * 4;



    d = dst->data[0];

    dst_wrap = dst->linesize[0] - width * 3;



    for(y=0;y<height;y++) {

        for(j = 0;j < width; j++) {

            v = *(uint32_t *)s;

            s += 4;

            d[0] = v >> 16;

            d[1] = v >> 8;

            d[2] = v;

            d += 3;

        }

        s += src_wrap;

        d += dst_wrap;

    }

}

static void rgba32_to_rgb24(AVPicture *dst, AVPicture *src,

                            int width, int height)

{

    const uint8_t *s;

    uint8_t *d;

    int src_wrap, dst_wrap, j, y;

    unsigned int v;



    s = src->data[0];

    src_wrap = src->linesize[0] - width * 4;



    d = dst->data[0];

    dst_wrap = dst->linesize[0] - width * 3;



    for(y=0;y<height;y++) {

        for(j = 0;j < width; j++) {

            v = *(uint32_t *)s;

            s += 4;

            d[0] = v >> 16;

            d[1] = v >> 8;

            d[2] = v;

            d += 3;

        }

        s += src_wrap;

        d += dst_wrap;

    }

}

static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,

                            int VAR_2, int VAR_3)

{

    const uint8_t *VAR_4;

    uint8_t *d;

    int VAR_5, VAR_6, VAR_7, VAR_8;

    unsigned int VAR_9;



    VAR_4 = VAR_1->data[0];

    VAR_5 = VAR_1->linesize[0] - VAR_2 * 4;



    d = VAR_0->data[0];

    VAR_6 = VAR_0->linesize[0] - VAR_2 * 3;



    for(VAR_8=0;VAR_8<VAR_3;VAR_8++) {

        for(VAR_7 = 0;VAR_7 < VAR_2; VAR_7++) {

            VAR_9 = *(uint32_t *)VAR_4;

            VAR_4 += 4;

            d[0] = VAR_9 >> 16;

            d[1] = VAR_9 >> 8;

            d[2] = VAR_9;

            d += 3;

        }

        VAR_4 += VAR_5;

        d += VAR_6;

    }

}

static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,
int VAR_2, int VAR_3)
{ const uint8_t *VAR_4; uint8_t *d; int VAR_5, VAR_6, VAR_7, VAR_8; unsigned int VAR_9; VAR_4 = VAR_1->data[0]; VAR_5 = VAR_1->linesize[0] - VAR_2 * 4; d = VAR_0->data[0]; VAR_6 = VAR_0->linesize[0] - VAR_2 * 3; for(VAR_8=0;VAR_8<VAR_3;VAR_8++) { for(VAR_7 = 0;VAR_7 < VAR_2; VAR_7++) { VAR_9 = *(uint32_t *)VAR_4; VAR_4 += 4; d[0] = VAR_9 >> 16; d[1] = VAR_9 >> 8; d[2] = VAR_9; d += 3; } VAR_4 += VAR_5; d += VAR_6; } }