Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | is_short_rep(optimal) ((optimal).back_prev == 0) |
#define is_short_rep | ( | optimal | ) | ((optimal).back_prev == 0) |
Definition at line 219 of file lzma_encoder_optimum_normal.c.
|
static |
Definition at line 224 of file lzma_encoder_optimum_normal.c.
References make_literal().
Referenced by lzma_lzma_optimum_normal().
|
static |
Definition at line 188 of file lzma_encoder_optimum_normal.c.
References ALIGN_BITS, lzma_lzma1_encoder_s::align_price_count, lzma_lzma1_encoder_s::align_prices, ALIGN_SIZE, lzma_lzma1_encoder_s::dist_align, i, and rc_bittree_reverse_price().
Referenced by lzma_lzma_optimum_normal().
|
static |
Definition at line 133 of file lzma_encoder_optimum_normal.c.
References ALIGN_BITS, DIST_MODEL_END, DIST_MODEL_START, lzma_lzma1_encoder_s::dist_prices, lzma_lzma1_encoder_s::dist_slot, DIST_SLOT_BITS, lzma_lzma1_encoder_s::dist_slot_prices, lzma_lzma1_encoder_s::dist_special, DIST_STATES, lzma_lzma1_encoder_s::dist_table_size, FULL_DISTANCES, get_dist_slot(), i, lzma_lzma1_encoder_s::match_price_count, rc_bittree_price(), rc_bittree_reverse_price(), and rc_direct_price().
Referenced by lzma_lzma_optimum_normal().
|
inlinestatic |
Definition at line 112 of file lzma_encoder_optimum_normal.c.
References ALIGN_MASK, lzma_lzma1_encoder_s::align_prices, lzma_lzma1_encoder_s::dist_prices, lzma_lzma1_encoder_s::dist_slot_prices, FULL_DISTANCES, get_dist_state, get_len_price(), len, and lzma_lzma1_encoder_s::match_len_encoder.
Referenced by helper2().
|
inlinestatic |
Definition at line 58 of file lzma_encoder_optimum_normal.c.
References len, MATCH_LEN_MIN, and lzma_length_encoder::prices.
Referenced by get_dist_len_price(), get_rep_price(), and helper2().
|
static |
Definition at line 22 of file lzma_encoder_optimum_normal.c.
References bit, lzma_lzma1_encoder_s::literal, lzma_lzma1_encoder_s::literal_context_bits, lzma_lzma1_encoder_s::literal_pos_mask, literal_subcoder, pos, rc_bit_price(), rc_bittree_price(), and UINT32_C.
|
inlinestatic |
Definition at line 77 of file lzma_encoder_optimum_normal.c.
References lzma_lzma1_encoder_s::is_rep0, lzma_lzma1_encoder_s::is_rep0_long, lzma_lzma1_encoder_s::is_rep1, lzma_lzma1_encoder_s::is_rep2, rc_bit_0_price(), rc_bit_1_price(), and rc_bit_price().
Referenced by get_rep_price(), and helper2().
|
inlinestatic |
Definition at line 102 of file lzma_encoder_optimum_normal.c.
References get_len_price(), get_pure_rep_price(), len, and lzma_lzma1_encoder_s::rep_len_encoder.
Referenced by helper2().
|
inlinestatic |
Definition at line 68 of file lzma_encoder_optimum_normal.c.
References lzma_lzma1_encoder_s::is_rep0, lzma_lzma1_encoder_s::is_rep0_long, and rc_bit_0_price().
|
inlinestatic |
Definition at line 272 of file lzma_encoder_optimum_normal.c.
References assert(), get_literal_price(), get_short_rep_price(), i, is_literal_state, len, make_literal(), make_short_rep(), MATCH_LEN_MAX, mf_avail(), mf_find, mf_ptr(), mf_skip(), my_max, my_min, not_equal_16, rc_bit_0_price(), rc_bit_1_price(), RC_INFINITY_PRICE, REPS, and UINT32_MAX.
Referenced by lzma_lzma_optimum_normal().
|
inlinestatic |
Definition at line 444 of file lzma_encoder_optimum_normal.c.
References lzma_optimal::back_prev, lzma_optimal::back_prev_2, lzma_optimal::backs, lzma_match::dist, get_dist_len_price(), get_len_price(), get_literal_price(), get_pure_rep_price(), get_rep_price(), get_short_rep_price(), i, is_literal_state, lzma_lzma1_encoder_s::is_match, lzma_lzma1_encoder_s::is_rep, is_short_rep, lzma_match::len, limit, lzma_lzma1_encoder_s::longest_match_length, make_literal(), make_short_rep(), lzma_lzma1_encoder_s::matches, lzma_lzma1_encoder_s::matches_count, my_min, not_equal_16, lzma_lzma1_encoder_s::opts, pos, lzma_lzma1_encoder_s::pos_mask, lzma_optimal::pos_prev, lzma_optimal::pos_prev_2, lzma_optimal::prev_1_is_literal, lzma_optimal::prev_2, lzma_optimal::price, rc_bit_0_price(), rc_bit_1_price(), RC_INFINITY_PRICE, lzma_lzma1_encoder_s::rep_len_encoder, REPS, lzma_optimal::state, update_literal, update_long_rep, update_match, and update_short_rep.
Referenced by lzma_lzma_optimum_normal().
void lzma_lzma_optimum_normal | ( | lzma_lzma1_encoder *restrict | coder, |
lzma_mf *restrict | mf, | ||
uint32_t *restrict | back_res, | ||
uint32_t *restrict | len_res, | ||
uint32_t | position | ||
) |
Definition at line 804 of file lzma_encoder_optimum_normal.c.
References ALIGN_SIZE, assert(), backward(), fill_align_prices(), fill_dist_prices(), helper1(), helper2(), memcpy(), mf_avail(), mf_find, mf_ptr(), my_min, OPTS, REPS, and UINT32_MAX.
Referenced by lzma_lzma_encode().
|
inlinestatic |
Definition at line 204 of file lzma_encoder_optimum_normal.c.
References lzma_optimal::back_prev, lzma_optimal::prev_1_is_literal, and UINT32_MAX.
Referenced by backward(), helper1(), and helper2().
|
inlinestatic |
Definition at line 212 of file lzma_encoder_optimum_normal.c.
References lzma_optimal::back_prev, and lzma_optimal::prev_1_is_literal.