Lines Matching defs:lc
78 length_update_prices(lzma_length_encoder *lc, const uint32_t pos_state)
80 const uint32_t table_size = lc->table_size;
81 lc->counters[pos_state] = table_size;
83 const uint32_t a0 = rc_bit_0_price(lc->choice);
84 const uint32_t a1 = rc_bit_1_price(lc->choice);
85 const uint32_t b0 = a1 + rc_bit_0_price(lc->choice2);
86 const uint32_t b1 = a1 + rc_bit_1_price(lc->choice2);
87 uint32_t *const prices = lc->prices[pos_state];
91 prices[i] = a0 + rc_bittree_price(lc->low[pos_state],
95 prices[i] = b0 + rc_bittree_price(lc->mid[pos_state],
99 prices[i] = b1 + rc_bittree_price(lc->high, LEN_HIGH_BITS,
107 length(lzma_range_encoder *rc, lzma_length_encoder *lc,
114 rc_bit(rc, &lc->choice, 0);
115 rc_bittree(rc, lc->low[pos_state], LEN_LOW_BITS, len);
117 rc_bit(rc, &lc->choice, 1);
121 rc_bit(rc, &lc->choice2, 0);
122 rc_bittree(rc, lc->mid[pos_state], LEN_MID_BITS, len);
124 rc_bit(rc, &lc->choice2, 1);
126 rc_bittree(rc, lc->high, LEN_HIGH_BITS, len);
133 if (--lc->counters[pos_state] == 0)
134 length_update_prices(lc, pos_state);
482 coder->literal_context_bits = options->lc;
493 literal_init(coder->literal, options->lc, options->lp);
648 *byte = (options->pb * 5 + options->lp) * 9 + options->lc;