Rizin
unix-like reverse engineering framework and cli tools
lzma_lzma1_encoder_s Struct Reference

#include <lzma_encoder_private.h>

Public Attributes

lzma_range_encoder rc
 Range encoder. More...
 
lzma_lzma_state state
 State. More...
 
uint32_t reps [REPS]
 The four most recent match distances. More...
 
lzma_match matches [MATCH_LEN_MAX+1]
 Array of match candidates. More...
 
uint32_t matches_count
 Number of match candidates in matches[]. More...
 
uint32_t longest_match_length
 
bool fast_mode
 True if using getoptimumfast. More...
 
bool is_initialized
 
bool is_flushed
 
uint32_t pos_mask
 (1 << pos_bits) - 1 More...
 
uint32_t literal_context_bits
 
uint32_t literal_pos_mask
 
probability literal [LITERAL_CODERS_MAX][LITERAL_CODER_SIZE]
 
probability is_match [STATES][POS_STATES_MAX]
 
probability is_rep [STATES]
 
probability is_rep0 [STATES]
 
probability is_rep1 [STATES]
 
probability is_rep2 [STATES]
 
probability is_rep0_long [STATES][POS_STATES_MAX]
 
probability dist_slot [DIST_STATES][DIST_SLOTS]
 
probability dist_special [FULL_DISTANCES - DIST_MODEL_END]
 
probability dist_align [ALIGN_SIZE]
 
lzma_length_encoder match_len_encoder
 
lzma_length_encoder rep_len_encoder
 
uint32_t dist_slot_prices [DIST_STATES][DIST_SLOTS]
 
uint32_t dist_prices [DIST_STATES][FULL_DISTANCES]
 
uint32_t dist_table_size
 
uint32_t match_price_count
 
uint32_t align_prices [ALIGN_SIZE]
 
uint32_t align_price_count
 
uint32_t opts_end_index
 
uint32_t opts_current_index
 
lzma_optimal opts [OPTS]
 

Detailed Description

Definition at line 71 of file lzma_encoder_private.h.

Member Data Documentation

◆ align_price_count

uint32_t lzma_lzma1_encoder_s::align_price_count

Definition at line 130 of file lzma_encoder_private.h.

Referenced by fill_align_prices(), lzma_lzma_encoder_reset(), and match().

◆ align_prices

uint32_t lzma_lzma1_encoder_s::align_prices[ALIGN_SIZE]

Definition at line 129 of file lzma_encoder_private.h.

Referenced by fill_align_prices(), and get_dist_len_price().

◆ dist_align

probability lzma_lzma1_encoder_s::dist_align[ALIGN_SIZE]

Definition at line 116 of file lzma_encoder_private.h.

Referenced by fill_align_prices(), lzma_lzma_encoder_reset(), and match().

◆ dist_prices

uint32_t lzma_lzma1_encoder_s::dist_prices[DIST_STATES][FULL_DISTANCES]

Definition at line 125 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), and get_dist_len_price().

◆ dist_slot

probability lzma_lzma1_encoder_s::dist_slot[DIST_STATES][DIST_SLOTS]

Definition at line 114 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), lzma_lzma_encoder_reset(), and match().

◆ dist_slot_prices

uint32_t lzma_lzma1_encoder_s::dist_slot_prices[DIST_STATES][DIST_SLOTS]

Definition at line 124 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), and get_dist_len_price().

◆ dist_special

probability lzma_lzma1_encoder_s::dist_special[FULL_DISTANCES - DIST_MODEL_END]

Definition at line 115 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), lzma_lzma_encoder_reset(), and match().

◆ dist_table_size

uint32_t lzma_lzma1_encoder_s::dist_table_size

Definition at line 126 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), and lzma_lzma_encoder_create().

◆ fast_mode

bool lzma_lzma1_encoder_s::fast_mode

True if using getoptimumfast.

Definition at line 92 of file lzma_encoder_private.h.

Referenced by lzma_lzma_encoder_create(), lzma_lzma_encoder_reset(), match(), and rep_match().

◆ is_flushed

bool lzma_lzma1_encoder_s::is_flushed

True if the range encoder has been flushed, but not all bytes have been written to the output buffer yet.

Definition at line 100 of file lzma_encoder_private.h.

Referenced by lzma_lzma_encoder_create().

◆ is_initialized

bool lzma_lzma1_encoder_s::is_initialized

True if the encoder has been initialized by encoding the first byte as a literal.

Definition at line 96 of file lzma_encoder_private.h.

Referenced by encode_init(), and lzma_lzma_encoder_create().

◆ is_match

probability lzma_lzma1_encoder_s::is_match[STATES][POS_STATES_MAX]

◆ is_rep

probability lzma_lzma1_encoder_s::is_rep[STATES]

◆ is_rep0

probability lzma_lzma1_encoder_s::is_rep0[STATES]

◆ is_rep0_long

probability lzma_lzma1_encoder_s::is_rep0_long[STATES][POS_STATES_MAX]

◆ is_rep1

probability lzma_lzma1_encoder_s::is_rep1[STATES]

Definition at line 111 of file lzma_encoder_private.h.

Referenced by get_pure_rep_price(), lzma_lzma_encoder_reset(), and rep_match().

◆ is_rep2

probability lzma_lzma1_encoder_s::is_rep2[STATES]

Definition at line 112 of file lzma_encoder_private.h.

Referenced by get_pure_rep_price(), lzma_lzma_encoder_reset(), and rep_match().

◆ literal

probability lzma_lzma1_encoder_s::literal[LITERAL_CODERS_MAX][LITERAL_CODER_SIZE]

◆ literal_context_bits

uint32_t lzma_lzma1_encoder_s::literal_context_bits

Definition at line 103 of file lzma_encoder_private.h.

Referenced by get_literal_price(), literal(), and lzma_lzma_encoder_reset().

◆ literal_pos_mask

uint32_t lzma_lzma1_encoder_s::literal_pos_mask

Definition at line 104 of file lzma_encoder_private.h.

Referenced by get_literal_price(), literal(), and lzma_lzma_encoder_reset().

◆ longest_match_length

uint32_t lzma_lzma1_encoder_s::longest_match_length

Variable to hold the length of the longest match between calls to lzma_lzma_optimum_*().

Definition at line 89 of file lzma_encoder_private.h.

Referenced by helper2().

◆ match_len_encoder

lzma_length_encoder lzma_lzma1_encoder_s::match_len_encoder

◆ match_price_count

uint32_t lzma_lzma1_encoder_s::match_price_count

Definition at line 127 of file lzma_encoder_private.h.

Referenced by fill_dist_prices(), lzma_lzma_encoder_reset(), and match().

◆ matches

lzma_match lzma_lzma1_encoder_s::matches[MATCH_LEN_MAX+1]

Array of match candidates.

Definition at line 82 of file lzma_encoder_private.h.

Referenced by helper2().

◆ matches_count

uint32_t lzma_lzma1_encoder_s::matches_count

Number of match candidates in matches[].

Definition at line 85 of file lzma_encoder_private.h.

Referenced by helper2().

◆ opts

lzma_optimal lzma_lzma1_encoder_s::opts[OPTS]

Definition at line 135 of file lzma_encoder_private.h.

Referenced by helper2().

◆ opts_current_index

uint32_t lzma_lzma1_encoder_s::opts_current_index

Definition at line 134 of file lzma_encoder_private.h.

Referenced by lzma_lzma_encoder_reset().

◆ opts_end_index

uint32_t lzma_lzma1_encoder_s::opts_end_index

Definition at line 133 of file lzma_encoder_private.h.

Referenced by lzma_lzma_encoder_reset().

◆ pos_mask

uint32_t lzma_lzma1_encoder_s::pos_mask

(1 << pos_bits) - 1

Definition at line 102 of file lzma_encoder_private.h.

Referenced by encode_eopm(), encode_symbol(), helper2(), and lzma_lzma_encoder_reset().

◆ rc

lzma_range_encoder lzma_lzma1_encoder_s::rc

Range encoder.

Definition at line 73 of file lzma_encoder_private.h.

Referenced by encode_eopm(), encode_init(), encode_symbol(), literal(), lzma_lzma_encoder_reset(), match(), and rep_match().

◆ rep_len_encoder

lzma_length_encoder lzma_lzma1_encoder_s::rep_len_encoder

◆ reps

uint32_t lzma_lzma1_encoder_s::reps[REPS]

The four most recent match distances.

Definition at line 79 of file lzma_encoder_private.h.

Referenced by literal(), lzma_lzma_encoder_reset(), match(), and rep_match().

◆ state

lzma_lzma_state lzma_lzma1_encoder_s::state

The documentation for this struct was generated from the following file: