Logo Search packages:      
Sourcecode: blender version File versions

static int get_cabac_u ( CABACContext *  c,
uint8_t *  state,
int  max,
int  max_index,
int  truncated 
) [inline, static]

get (truncated) unnary binarization.

Definition at line 378 of file cabac.h.

                                                                                                      {
    int i;

    for(i=0; i<max; i++){
        if(get_cabac(c, state)==0)
            return i;

        if(i< max_index) state++;
    }

    return truncated ? max : -1;
}


Generated by  Doxygen 1.6.0   Back to index