Logo Search packages:      
Sourcecode: blender version File versions

static void set_ue_golomb ( PutBitContext *  pb,
int  i 
) [inline, static]

write unsigned exp golomb code.

Definition at line 362 of file golomb.h.

Referenced by set_se_golomb(), and set_te_golomb().

                                                          {
    int e;

    assert(i>=0);

#if 0
    if(i=0){
        put_bits(pb, 1, 1);
        return;
    }
#endif
    if(i<256)
        put_bits(pb, ff_ue_golomb_len[i], i+1);
    else{
        e= av_log2(i+1);

        put_bits(pb, 2*e+1, i+1);
    }
}


Generated by  Doxygen 1.6.0   Back to index