Logo Search packages:      
Sourcecode: blender version File versions

static int get_sr_golomb ( GetBitContext *  gb,
int  k,
int  limit,
int  esc_len 
) [inline, static]

read signed golomb rice code (ffv1).

Definition at line 269 of file golomb.h.

References get_ur_golomb().

                                                                                 {
    int v= get_ur_golomb(gb, k, limit, esc_len);

    v++;
    if (v&1) return v>>1;
    else return -(v>>1);

//    return (v>>1) ^ -(v&1);
}


Generated by  Doxygen 1.6.0   Back to index