Newer
Older
}
else
{
length = ricePar;
symbol = symbol - ( threshold << ricePar );
while( symbol >= ( 1 << length ) )
{
symbol -= ( 1 << ( length++ ) );
}
rate += ( threshold + length + 1 - ricePar + length ) << SCALE_BITS;
}
}
}
else if( absLevel == 1 )
{
rate += fracBitsGt1.intBits[0];
#if JVET_P0072_SIMPLIFIED_TSRC
numCtxBins++;
#endif
}
else
{
rate = 0;
}
return rate;
}