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

                              int width, int height)

{

    uint8_t *y1_ptr, *cb_ptr, *cr_ptr, *d, *d1;

    int w, y, cb, cr, r_add, g_add, b_add;

    uint8_t *cm = cropTbl + MAX_NEG_CROP;

    unsigned int r, g, b;



    d = dst->data[0];

    y1_ptr = src->data[0];

    cb_ptr = src->data[1];

    cr_ptr = src->data[2];

    for(;height > 0; height --) {

        d1 = d;

        for(w = width; w > 0; w--) {

            YUV_TO_RGB1(cb_ptr[0], cr_ptr[0]);



            YUV_TO_RGB2(r, g, b, y1_ptr[0]);

            RGB_OUT(d1, r, g, b);

            d1 += BPP;



            y1_ptr++;

            cb_ptr++;

            cr_ptr++;

        }

        d += dst->linesize[0];

        y1_ptr += src->linesize[0] - width;

        cb_ptr += src->linesize[1] - width;

        cr_ptr += src->linesize[2] - width;

    }

}

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

                              int width, int height)

{

    uint8_t *y1_ptr, *cb_ptr, *cr_ptr, *d, *d1;

    int w, y, cb, cr, r_add, g_add, b_add;

    uint8_t *cm = cropTbl + MAX_NEG_CROP;

    unsigned int r, g, b;



    d = dst->data[0];

    y1_ptr = src->data[0];

    cb_ptr = src->data[1];

    cr_ptr = src->data[2];

    for(;height > 0; height --) {

        d1 = d;

        for(w = width; w > 0; w--) {

            YUV_TO_RGB1(cb_ptr[0], cr_ptr[0]);



            YUV_TO_RGB2(r, g, b, y1_ptr[0]);

            RGB_OUT(d1, r, g, b);

            d1 += BPP;



            y1_ptr++;

            cb_ptr++;

            cr_ptr++;

        }

        d += dst->linesize[0];

        y1_ptr += src->linesize[0] - width;

        cb_ptr += src->linesize[1] - width;

        cr_ptr += src->linesize[2] - width;

    }

}

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

                              int VAR_2, int VAR_3)

{

    uint8_t *y1_ptr, *cb_ptr, *cr_ptr, *d, *d1;

    int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;

    uint8_t *cm = cropTbl + MAX_NEG_CROP;

    unsigned int VAR_11, VAR_12, VAR_13;



    d = VAR_0->data[0];

    y1_ptr = VAR_1->data[0];

    cb_ptr = VAR_1->data[1];

    cr_ptr = VAR_1->data[2];

    for(;VAR_3 > 0; VAR_3 --) {

        d1 = d;

        for(VAR_4 = VAR_2; VAR_4 > 0; VAR_4--) {

            YUV_TO_RGB1(cb_ptr[0], cr_ptr[0]);



            YUV_TO_RGB2(VAR_11, VAR_12, VAR_13, y1_ptr[0]);

            RGB_OUT(d1, VAR_11, VAR_12, VAR_13);

            d1 += BPP;



            y1_ptr++;

            cb_ptr++;

            cr_ptr++;

        }

        d += VAR_0->linesize[0];

        y1_ptr += VAR_1->linesize[0] - VAR_2;

        cb_ptr += VAR_1->linesize[1] - VAR_2;

        cr_ptr += VAR_1->linesize[2] - VAR_2;

    }

}

static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,
int VAR_2, int VAR_3)
{ uint8_t *y1_ptr, *cb_ptr, *cr_ptr, *d, *d1; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; uint8_t *cm = cropTbl + MAX_NEG_CROP; unsigned int VAR_11, VAR_12, VAR_13; d = VAR_0->data[0]; y1_ptr = VAR_1->data[0]; cb_ptr = VAR_1->data[1]; cr_ptr = VAR_1->data[2]; for(;VAR_3 > 0; VAR_3 --) { d1 = d; for(VAR_4 = VAR_2; VAR_4 > 0; VAR_4--) { YUV_TO_RGB1(cb_ptr[0], cr_ptr[0]); YUV_TO_RGB2(VAR_11, VAR_12, VAR_13, y1_ptr[0]); RGB_OUT(d1, VAR_11, VAR_12, VAR_13); d1 += BPP; y1_ptr++; cb_ptr++; cr_ptr++; } d += VAR_0->linesize[0]; y1_ptr += VAR_1->linesize[0] - VAR_2; cb_ptr += VAR_1->linesize[1] - VAR_2; cr_ptr += VAR_1->linesize[2] - VAR_2; } }