static int decode_i_picture_secondary_header(VC9Context *v)

{

    int status;

#if HAS_ADVANCED_PROFILE

    if (v->profile > PROFILE_MAIN)

    {

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

        if (v->postprocflag) v->postproc = get_bits(&v->s.gb, 1);

        /* 7.1.1.34 + 8.5.2 */

        if (v->overlap && v->pq<9)

        {

            v->condover = get_bits(&v->s.gb, 1);

            if (v->condover)

            {

                v->condover = 2+get_bits(&v->s.gb, 1);

                if (v->condover == 3)

                {

                    status = bitplane_decoding(&v->over_flags_plane, v);

                    if (status < 0) return -1;

#  if TRACE

                    av_log(v->s.avctx, AV_LOG_DEBUG, "Overflags plane encoding: "

                           "Imode: %i, Invert: %i\n", status>>1, status&1);

#  endif

                }

            }

        }

    }

#endif



    /* Epilog (AC/DC syntax) should be done in caller */

    return 0;

}

static int decode_i_picture_secondary_header(VC9Context *v)

{

    int status;

#if HAS_ADVANCED_PROFILE

    if (v->profile > PROFILE_MAIN)

    {

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

        if (v->postprocflag) v->postproc = get_bits(&v->s.gb, 1);

        

        if (v->overlap && v->pq<9)

        {

            v->condover = get_bits(&v->s.gb, 1);

            if (v->condover)

            {

                v->condover = 2+get_bits(&v->s.gb, 1);

                if (v->condover == 3)

                {

                    status = bitplane_decoding(&v->over_flags_plane, v);

                    if (status < 0) return -1;

#  if TRACE

                    av_log(v->s.avctx, AV_LOG_DEBUG, "Overflags plane encoding: "

                           "Imode: %i, Invert: %i\n", status>>1, status&1);

#  endif

                }

            }

        }

    }

#endif



    

    return 0;

}

#endif #endif #  endif #endif #endif     if (v->profile > PROFILE_MAIN) #endif #  if TRACE #  endif     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN)     if (v->profile > PROFILE_MAIN) #endif #endif
static int FUNC_0(VC9Context *VAR_0)

{

    int VAR_1;

#if HAS_ADVANCED_PROFILE

    if (VAR_0->profile > PROFILE_MAIN)

    {

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

        if (VAR_0->postprocflag) VAR_0->postproc = get_bits(&VAR_0->s.gb, 1);

        

        if (VAR_0->overlap && VAR_0->pq<9)

        {

            VAR_0->condover = get_bits(&VAR_0->s.gb, 1);

            if (VAR_0->condover)

            {

                VAR_0->condover = 2+get_bits(&VAR_0->s.gb, 1);

                if (VAR_0->condover == 3)

                {

                    VAR_1 = bitplane_decoding(&VAR_0->over_flags_plane, VAR_0);

                    if (VAR_1 < 0) return -1;

#  if TRACE

                    av_log(VAR_0->s.avctx, AV_LOG_DEBUG, "Overflags plane encoding: "

                           "Imode: %i, Invert: %i\n", VAR_1>>1, VAR_1&1);

#  endif

                }

            }

        }

    }

#endif



    

    return 0;

}

static int FUNC_0(VC9Context *VAR_0)
{ int VAR_1; #if HAS_ADVANCED_PROFILE
if (VAR_0->profile > PROFILE_MAIN)
{ VAR_0->s.ac_pred = get_bits(&VAR_0->s.gb, 1); if (VAR_0->postprocflag) VAR_0->postproc = get_bits(&VAR_0->s.gb, 1); if (VAR_0->overlap && VAR_0->pq<9)
{ VAR_0->condover = get_bits(&VAR_0->s.gb, 1); if (VAR_0->condover)
{ VAR_0->condover = 2+get_bits(&VAR_0->s.gb, 1); if (VAR_0->condover == 3)
{ VAR_1 = bitplane_decoding(&VAR_0->over_flags_plane, VAR_0); if (VAR_1 < 0) return -1; #  if TRACE
av_log(VAR_0->s.avctx, AV_LOG_DEBUG, "Overflags plane encoding: "
"Imode: %i, Invert: %i\n", VAR_1>>1, VAR_1&1); #  endif
} } } } #endif
return 0; }