17 #define RC_MOVE_REDUCING_BITS 4
18 #define RC_BIT_PRICE_SHIFT_BITS 4
19 #define RC_PRICE_TABLE_SIZE (RC_BIT_MODEL_TOTAL >> RC_MOVE_REDUCING_BITS)
21 #define RC_INFINITY_PRICE (UINT32_C(1) << 30)
62 }
while (symbol != 1);
79 model_index = (model_index << 1) +
bit;
80 }
while (--bit_levels != 0);
int bits(struct state *s, int need)
static uint32_t rc_bit_price(const probability prob, const uint32_t bit)
#define RC_MOVE_REDUCING_BITS
static uint32_t rc_bittree_price(const probability *const probs, const uint32_t bit_levels, uint32_t symbol)
#define RC_PRICE_TABLE_SIZE
static uint32_t rc_bittree_reverse_price(const probability *const probs, uint32_t bit_levels, uint32_t symbol)
static uint32_t rc_bit_0_price(const probability prob)
static uint32_t rc_bit_1_price(const probability prob)
const uint8_t lzma_rc_prices[RC_PRICE_TABLE_SIZE]
Lookup table for the inline functions defined in this file.
static uint32_t rc_direct_price(const uint32_t bits)
#define RC_BIT_PRICE_SHIFT_BITS
uint16_t probability
Type of probabilities used with range coder.
#define RC_BIT_MODEL_TOTAL