Logo Search packages:      
Sourcecode: blender version File versions

static void put_cabac_bypass ( CABACContext *  c,
int  bit 
) [inline, static]

Parameters:
bit 0 -> write zero bit, !=0 write one bit

Definition at line 125 of file cabac.h.

Referenced by put_cabac_ueg().

                                                             {
    c->low += c->low;

    if(bit){
        c->low += c->range;
    }
//FIXME optimize
    if(c->low<0x200){
        put_cabac_bit(c, 0);
    }else if(c->low<0x400){
        c->outstanding_count++;
        c->low -= 0x200;
    }else{
        put_cabac_bit(c, 1);
        c->low -= 0x400;
    }

#ifdef STRICT_LIMITS
    c->symCount++;
#endif
}


Generated by  Doxygen 1.6.0   Back to index