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

                             int width, int height)

{

    int src_wrap, x, y;

    int r, g, b;

    uint8_t *lum, *cb, *cr;

    const uint8_t *p;



    lum = dst->data[0];

    cb = dst->data[1];

    cr = dst->data[2];



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

    p = src->data[0];

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

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

            RGB_IN(r, g, b, p);

            lum[0] = RGB_TO_Y_CCIR(r, g, b);

            cb[0] = RGB_TO_U_CCIR(r, g, b, 0);

            cr[0] = RGB_TO_V_CCIR(r, g, b, 0);

            cb++;

            cr++;

            lum++;

        }

        p += src_wrap;

        lum += dst->linesize[0] - width;

        cb += dst->linesize[1] - width;

        cr += dst->linesize[2] - width;

    }

}

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

                             int width, int height)

{

    int src_wrap, x, y;

    int r, g, b;

    uint8_t *lum, *cb, *cr;

    const uint8_t *p;



    lum = dst->data[0];

    cb = dst->data[1];

    cr = dst->data[2];



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

    p = src->data[0];

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

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

            RGB_IN(r, g, b, p);

            lum[0] = RGB_TO_Y_CCIR(r, g, b);

            cb[0] = RGB_TO_U_CCIR(r, g, b, 0);

            cr[0] = RGB_TO_V_CCIR(r, g, b, 0);

            cb++;

            cr++;

            lum++;

        }

        p += src_wrap;

        lum += dst->linesize[0] - width;

        cb += dst->linesize[1] - width;

        cr += dst->linesize[2] - width;

    }

}

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

                             int VAR_2, int VAR_3)

{

    int VAR_4, VAR_5, VAR_6;

    int VAR_7, VAR_8, VAR_9;

    uint8_t *lum, *cb, *cr;

    const uint8_t *VAR_10;



    lum = VAR_0->data[0];

    cb = VAR_0->data[1];

    cr = VAR_0->data[2];



    VAR_4 = VAR_1->linesize[0] - VAR_2 * BPP;

    VAR_10 = VAR_1->data[0];

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

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

            RGB_IN(VAR_7, VAR_8, VAR_9, VAR_10);

            lum[0] = RGB_TO_Y_CCIR(VAR_7, VAR_8, VAR_9);

            cb[0] = RGB_TO_U_CCIR(VAR_7, VAR_8, VAR_9, 0);

            cr[0] = RGB_TO_V_CCIR(VAR_7, VAR_8, VAR_9, 0);

            cb++;

            cr++;

            lum++;

        }

        VAR_10 += VAR_4;

        lum += VAR_0->linesize[0] - VAR_2;

        cb += VAR_0->linesize[1] - VAR_2;

        cr += VAR_0->linesize[2] - VAR_2;

    }

}

static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,
int VAR_2, int VAR_3)
{ int VAR_4, VAR_5, VAR_6; int VAR_7, VAR_8, VAR_9; uint8_t *lum, *cb, *cr; const uint8_t *VAR_10; lum = VAR_0->data[0]; cb = VAR_0->data[1]; cr = VAR_0->data[2]; VAR_4 = VAR_1->linesize[0] - VAR_2 * BPP; VAR_10 = VAR_1->data[0]; for(VAR_6=0;VAR_6<VAR_3;VAR_6++) { for(VAR_5=0;VAR_5<VAR_2;VAR_5++) { RGB_IN(VAR_7, VAR_8, VAR_9, VAR_10); lum[0] = RGB_TO_Y_CCIR(VAR_7, VAR_8, VAR_9); cb[0] = RGB_TO_U_CCIR(VAR_7, VAR_8, VAR_9, 0); cr[0] = RGB_TO_V_CCIR(VAR_7, VAR_8, VAR_9, 0); cb++; cr++; lum++; } VAR_10 += VAR_4; lum += VAR_0->linesize[0] - VAR_2; cb += VAR_0->linesize[1] - VAR_2; cr += VAR_0->linesize[2] - VAR_2; } }