Logo Search packages:      
Sourcecode: blender version File versions

static void set_ur_golomb ( PutBitContext *  pb,
int  i,
int  k,
int  limit,
int  esc_len 
) [inline, static]

write unsigned golomb rice code (ffv1).

Definition at line 415 of file golomb.h.

Referenced by set_sr_golomb().

                                                                                         {
    int e;

    assert(i>=0);

    e= i>>k;
    if(e<limit){
        put_bits(pb, e + k + 1, (1<<k) + (i&((1<<k)-1)));
    }else{
        put_bits(pb, limit + esc_len, i - limit + 1);
    }
}


Generated by  Doxygen 1.6.0   Back to index