static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,

                              int (*mv)[2][4][2],

                              int mb_x, int mb_y, int mb_intra, int mb_skipped)

{

    MpegEncContext *s = opaque;



    s->mv_dir     = mv_dir;

    s->mv_type    = mv_type;

    s->mb_intra   = mb_intra;

    s->mb_skipped = mb_skipped;

    s->mb_x       = mb_x;

    s->mb_y       = mb_y;

    memcpy(s->mv, mv, sizeof(*mv));



    ff_init_block_index(s);

    ff_update_block_index(s);



    s->dsp.clear_blocks(s->block[0]);



    s->dest[0] = s->current_picture.f.data[0] + (s->mb_y *  16                       * s->linesize)   + s->mb_x *  16;

    s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);

    s->dest[2] = s->current_picture.f.data[2] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);



    assert(ref == 0);

    ff_MPV_decode_mb(s, s->block);

}

static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,

                              int (*mv)[2][4][2],

                              int mb_x, int mb_y, int mb_intra, int mb_skipped)

{

    MpegEncContext *s = opaque;



    s->mv_dir     = mv_dir;

    s->mv_type    = mv_type;

    s->mb_intra   = mb_intra;

    s->mb_skipped = mb_skipped;

    s->mb_x       = mb_x;

    s->mb_y       = mb_y;

    memcpy(s->mv, mv, sizeof(*mv));



    ff_init_block_index(s);

    ff_update_block_index(s);



    s->dsp.clear_blocks(s->block[0]);



    s->dest[0] = s->current_picture.f.data[0] + (s->mb_y *  16                       * s->linesize)   + s->mb_x *  16;

    s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);

    s->dest[2] = s->current_picture.f.data[2] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);



    assert(ref == 0);

    ff_MPV_decode_mb(s, s->block);

}

    s->dest[0] = s->current_picture.f.data[0] + (s->mb_y *  16                       * s->linesize)   + s->mb_x *  16;     s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);     s->dest[2] = s->current_picture.f.data[2] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2, int VAR_3,

                              int (*VAR_4)[2][4][2],

                              int VAR_5, int VAR_6, int VAR_7, int VAR_8)

{

    MpegEncContext *s = VAR_0;



    s->VAR_2     = VAR_2;

    s->VAR_3    = VAR_3;

    s->VAR_7   = VAR_7;

    s->VAR_8 = VAR_8;

    s->VAR_5       = VAR_5;

    s->VAR_6       = VAR_6;

    memcpy(s->VAR_4, VAR_4, sizeof(*VAR_4));



    ff_init_block_index(s);

    ff_update_block_index(s);



    s->dsp.clear_blocks(s->block[0]);



    s->dest[0] = s->current_picture.f.data[0] + (s->VAR_6 *  16                       * s->linesize)   + s->VAR_5 *  16;

    s->dest[1] = s->current_picture.f.data[1] + (s->VAR_6 * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->VAR_5 * (16 >> s->chroma_x_shift);

    s->dest[2] = s->current_picture.f.data[2] + (s->VAR_6 * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->VAR_5 * (16 >> s->chroma_x_shift);



    assert(VAR_1 == 0);

    ff_MPV_decode_mb(s, s->block);

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2, int VAR_3,
int (*VAR_4)[2][4][2],
int VAR_5, int VAR_6, int VAR_7, int VAR_8)
{ MpegEncContext *s = VAR_0; s->VAR_2     = VAR_2; s->VAR_3    = VAR_3; s->VAR_7   = VAR_7; s->VAR_8 = VAR_8; s->VAR_5       = VAR_5; s->VAR_6       = VAR_6; memcpy(s->VAR_4, VAR_4, sizeof(*VAR_4)); ff_init_block_index(s); ff_update_block_index(s); s->dsp.clear_blocks(s->block[0]); s->dest[0] = s->current_picture.f.data[0] + (s->VAR_6 *  16                       * s->linesize)   + s->VAR_5 *  16; s->dest[1] = s->current_picture.f.data[1] + (s->VAR_6 * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->VAR_5 * (16 >> s->chroma_x_shift); s->dest[2] = s->current_picture.f.data[2] + (s->VAR_6 * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->VAR_5 * (16 >> s->chroma_x_shift); assert(VAR_1 == 0); ff_MPV_decode_mb(s, s->block); }