Logo Search packages:      
Sourcecode: blender version File versions  Download package

static int decode_i_picture_secondary_header ( VC9Context v  )  [static]

I frame header decoding, secondary part

Parameters:
v VC9 context
Returns:
Status
Warning:
Not called in A/S/C profiles, it seems
Todo:
Support Advanced Profile headers

Definition at line 1357 of file vc9.c.

References MpegEncContext::ac_pred, MpegEncContext::avctx, bitplane_decoding(), MpegEncContext::gb, VC9Context::overlap, VC9Context::pq, VC9Context::profile, and VC9Context::s.

{
#if HAS_ADVANCED_PROFILE
    int status;
    if (v->profile == PROFILE_ADVANCED)
    {
        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;
}


Generated by  Doxygen 1.6.0   Back to index