static int advanced_decode_i_mbs(VC9Context *v)

{

    MpegEncContext *s = &v->s;

    GetBitContext *gb = &v->s.gb;

    int mqdiff, mquant, current_mb = 0, over_flags_mb = 0;



    for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++)

    {

        for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++)

        {

            if (v->ac_pred_plane.is_raw)

                s->ac_pred = get_bits(gb, 1);

            else

                s->ac_pred = v->ac_pred_plane.data[current_mb];

            if (v->condover == 3 && v->over_flags_plane.is_raw)

                over_flags_mb = get_bits(gb, 1);

            GET_MQUANT();



            /* TODO: lots */

        }

        current_mb++;

    }

    return 0;

}

static int advanced_decode_i_mbs(VC9Context *v)

{

    MpegEncContext *s = &v->s;

    GetBitContext *gb = &v->s.gb;

    int mqdiff, mquant, current_mb = 0, over_flags_mb = 0;



    for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++)

    {

        for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++)

        {

            if (v->ac_pred_plane.is_raw)

                s->ac_pred = get_bits(gb, 1);

            else

                s->ac_pred = v->ac_pred_plane.data[current_mb];

            if (v->condover == 3 && v->over_flags_plane.is_raw)

                over_flags_mb = get_bits(gb, 1);

            GET_MQUANT();



            

        }

        current_mb++;

    }

    return 0;

}

    GetBitContext *gb = &v->s.gb;     GetBitContext *gb = &v->s.gb;     int mqdiff, mquant, current_mb = 0, over_flags_mb = 0;                 s->ac_pred = v->ac_pred_plane.data[current_mb];         current_mb++;
static int FUNC_0(VC9Context *VAR_0)

{

    MpegEncContext *s = &VAR_0->s;

    GetBitContext *gb = &VAR_0->s.gb;

    int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0;



    for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++)

    {

        for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++)

        {

            if (VAR_0->ac_pred_plane.is_raw)

                s->ac_pred = get_bits(gb, 1);

            else

                s->ac_pred = VAR_0->ac_pred_plane.data[VAR_3];

            if (VAR_0->condover == 3 && VAR_0->over_flags_plane.is_raw)

                VAR_4 = get_bits(gb, 1);

            GET_MQUANT();



            

        }

        VAR_3++;

    }

    return 0;

}

static int FUNC_0(VC9Context *VAR_0)
{ MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &VAR_0->s.gb; int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0; for (s->mb_y=0; s->mb_y<s->mb_height; s->mb_y++) { for (s->mb_x=0; s->mb_x<s->mb_width; s->mb_x++) { if (VAR_0->ac_pred_plane.is_raw)
s->ac_pred = get_bits(gb, 1); else
s->ac_pred = VAR_0->ac_pred_plane.data[VAR_3]; if (VAR_0->condover == 3 && VAR_0->over_flags_plane.is_raw)
VAR_4 = get_bits(gb, 1); GET_MQUANT(); } VAR_3++; } return 0; }