50 for (i = j = 0; i < 256; i++) {
52 while (l->
prob[j + 1] <= r)
void lag_rac_init(lag_rac *l, GetBitContext *gb, int length)
static void align_get_bits(GetBitContext *s)
uint8_t range_hash[256]
Hash table mapping upper byte to approximate symbol.
const uint8_t * bytestream_end
End position of input bytestream.
const uint8_t * bytestream_start
Start of input bytestream.
unsigned scale
Number of bits of precision in range.
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
static int get_bits_left(GetBitContext *gb)
uint32_t prob[258]
Table of cumulative probability for each symbol.
unsigned hash_shift
Number of bits to shift to calculate hash for radix search.
const uint8_t * bytestream
Current position in input bytestream.