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

Public Types

enum  {
  SEQ_NORMALIZE , SEQ_IS_MATCH , seq_8 =(SEQ_LITERAL) , seq_8 =(SEQ_LITERAL) ,
  SEQ_LITERAL_WRITE , SEQ_IS_REP , seq_len =(SEQ_MATCH_LEN) , seq_6 =(SEQ_DIST_SLOT) ,
  SEQ_DIST_MODEL , SEQ_DIRECT , seq_4 =(SEQ_ALIGN) , SEQ_EOPM ,
  SEQ_IS_REP0 , SEQ_SHORTREP , SEQ_IS_REP0_LONG , SEQ_IS_REP1 ,
  SEQ_IS_REP2 , seq_len =(SEQ_MATCH_LEN) , SEQ_COPY
}
 Position where to continue the decoder loop. More...
 

Public Attributes

probability literal [LITERAL_CODERS_MAX][LITERAL_CODER_SIZE]
 Literals; see comments in lzma_common.h. More...
 
probability is_match [STATES][POS_STATES_MAX]
 If 1, it's a match. Otherwise it's a single 8-bit literal. More...
 
probability is_rep [STATES]
 If 1, it's a repeated match. The distance is one of rep0 .. rep3. More...
 
probability is_rep0 [STATES]
 
probability is_rep1 [STATES]
 
probability is_rep2 [STATES]
 If 0, distance of a repeated match is rep2. Otherwise it is rep3. More...
 
probability is_rep0_long [STATES][POS_STATES_MAX]
 
probability dist_slot [DIST_STATES][DIST_SLOTS]
 
probability pos_special [FULL_DISTANCES - DIST_MODEL_END]
 
probability pos_align [ALIGN_SIZE]
 
lzma_length_decoder match_len_decoder
 Length of a normal match. More...
 
lzma_length_decoder rep_len_decoder
 Length of a repeated match. More...
 
lzma_range_decoder rc
 
lzma_lzma_state state
 
uint32_t rep0
 Distance of the latest match. More...
 
uint32_t rep1
 Distance of second latest match. More...
 
uint32_t rep2
 Distance of third latest match. More...
 
uint32_t rep3
 Distance of fourth latest match. More...
 
uint32_t pos_mask
 
uint32_t literal_context_bits
 
uint32_t literal_pos_mask
 
lzma_vli uncompressed_size
 
enum lzma_lzma1_decoder:: { ... }  sequence
 Position where to continue the decoder loop. More...
 
probabilityprobs
 Base of the current probability tree. More...
 
uint32_t symbol
 
uint32_t limit
 
uint32_t offset
 
uint32_t len
 

Detailed Description

Definition at line 170 of file lzma_decoder.c.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Position where to continue the decoder loop.

Enumerator
SEQ_NORMALIZE 
SEQ_IS_MATCH 
seq_8 
seq_8 
SEQ_LITERAL_WRITE 
SEQ_IS_REP 
seq_len 
seq_6 
SEQ_DIST_MODEL 
SEQ_DIRECT 
seq_4 
SEQ_EOPM 
SEQ_IS_REP0 
SEQ_SHORTREP 
SEQ_IS_REP0_LONG 
SEQ_IS_REP1 
SEQ_IS_REP2 
seq_len 
SEQ_COPY 

Definition at line 246 of file lzma_decoder.c.

246  {
248  SEQ_IS_MATCH,
249  seq_8(SEQ_LITERAL),
250  seq_8(SEQ_LITERAL_MATCHED),
252  SEQ_IS_REP,
253  seq_len(SEQ_MATCH_LEN),
254  seq_6(SEQ_DIST_SLOT),
256  SEQ_DIRECT,
257  seq_4(SEQ_ALIGN),
258  SEQ_EOPM,
259  SEQ_IS_REP0,
260  SEQ_SHORTREP,
262  SEQ_IS_REP1,
263  SEQ_IS_REP2,
264  seq_len(SEQ_REP_LEN),
265  SEQ_COPY,
266  } sequence;
enum lzma_lzma1_decoder::@657 sequence
Position where to continue the decoder loop.

Member Data Documentation

◆ dist_slot

probability lzma_lzma1_decoder::dist_slot[DIST_STATES][DIST_SLOTS]

Probability tree for the highest two bits of the match distance. There is a separate probability tree for match lengths of 2 (i.e. MATCH_LEN_MIN), 3, 4, and [5, 273].

Definition at line 202 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_match

probability lzma_lzma1_decoder::is_match[STATES][POS_STATES_MAX]

If 1, it's a match. Otherwise it's a single 8-bit literal.

Definition at line 179 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_rep

probability lzma_lzma1_decoder::is_rep[STATES]

If 1, it's a repeated match. The distance is one of rep0 .. rep3.

Definition at line 182 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_rep0

probability lzma_lzma1_decoder::is_rep0[STATES]

If 0, distance of a repeated match is rep0. Otherwise check is_rep1.

Definition at line 186 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_rep0_long

probability lzma_lzma1_decoder::is_rep0_long[STATES][POS_STATES_MAX]

If 1, the repeated match has length of one byte. Otherwise the length is decoded from rep_len_decoder.

Definition at line 197 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_rep1

probability lzma_lzma1_decoder::is_rep1[STATES]

If 0, distance of a repeated match is rep1. Otherwise check is_rep2.

Definition at line 190 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ is_rep2

probability lzma_lzma1_decoder::is_rep2[STATES]

If 0, distance of a repeated match is rep2. Otherwise it is rep3.

Definition at line 193 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ len

uint32_t lzma_lzma1_decoder::len

If decoding a literal: match byte. If decoding a match: length of the match.

Definition at line 285 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ limit

uint32_t lzma_lzma1_decoder::limit

Used as a loop termination condition on bittree decoders and direct bits decoder.

Definition at line 277 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ literal

probability lzma_lzma1_decoder::literal[LITERAL_CODERS_MAX][LITERAL_CODER_SIZE]

Literals; see comments in lzma_common.h.

Definition at line 176 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ literal_context_bits

uint32_t lzma_lzma1_decoder::literal_context_bits

Definition at line 234 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ literal_pos_mask

uint32_t lzma_lzma1_decoder::literal_pos_mask

Definition at line 235 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ match_len_decoder

lzma_length_decoder lzma_lzma1_decoder::match_len_decoder

Length of a normal match.

Definition at line 213 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ offset

uint32_t lzma_lzma1_decoder::offset

Matched literal decoder: 0x100 or 0 to help avoiding branches. Bittree reverse decoders: Offset of the next bit: 1 << offset

Definition at line 281 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ pos_align

probability lzma_lzma1_decoder::pos_align[ALIGN_SIZE]

Probability tree for the lowest four bits of a match distance that is equal to or greater than 128.

Definition at line 210 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ pos_mask

uint32_t lzma_lzma1_decoder::pos_mask

Definition at line 233 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ pos_special

probability lzma_lzma1_decoder::pos_special[FULL_DISTANCES - DIST_MODEL_END]

Probability trees for additional bits for match distance when the distance is in the range [4, 127].

Definition at line 206 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ probs

probability* lzma_lzma1_decoder::probs

Base of the current probability tree.

Definition at line 269 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rc

lzma_range_decoder lzma_lzma1_decoder::rc

Definition at line 223 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rep0

uint32_t lzma_lzma1_decoder::rep0

Distance of the latest match.

Definition at line 228 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rep1

uint32_t lzma_lzma1_decoder::rep1

Distance of second latest match.

Definition at line 229 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rep2

uint32_t lzma_lzma1_decoder::rep2

Distance of third latest match.

Definition at line 230 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rep3

uint32_t lzma_lzma1_decoder::rep3

Distance of fourth latest match.

Definition at line 231 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ rep_len_decoder

lzma_length_decoder lzma_lzma1_decoder::rep_len_decoder

Length of a repeated match.

Definition at line 216 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ 

enum { ... } lzma_lzma1_decoder::sequence

Position where to continue the decoder loop.

Referenced by lzma_decoder_reset().

◆ state

lzma_lzma_state lzma_lzma1_decoder::state

Definition at line 226 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ symbol

uint32_t lzma_lzma1_decoder::symbol

Symbol being decoded. This is also used as an index variable in bittree decoders: probs[symbol]

Definition at line 273 of file lzma_decoder.c.

Referenced by lzma_decoder_reset().

◆ uncompressed_size

lzma_vli lzma_lzma1_decoder::uncompressed_size

Uncompressed size as bytes, or LZMA_VLI_UNKNOWN if end of payload marker is expected.

Definition at line 239 of file lzma_decoder.c.

Referenced by lzma_decoder_uncompressed().


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