LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Fields

Own LZW dictionaries hash storage and transfer restart state. More...

Collaboration diagram for LZWCodecState:
[legend]

Data Fields

LZWBaseState base
 Shared LZW/Predictor prefix, first in the codec allocation.
 
long dec_nbitsmask
 Right-adjusted mask for current decode width.
 
tmsize_t dec_restart
 Bytes already returned from an interrupted decoded string.
 
uint64_t dec_bitsleft
 Number of cached raw-input bits remaining.
 
tmsize_t old_tif_rawcc
 Raw byte count saved after the preceding decoder call.
 
decodeFunc dec_decode
 Decoder last recorded by predecode; NULL until the first predecode. Used only as a first-strile detection flag, never called, and may differ from the installed tif_decode* methods.
 
code_t * dec_codep
 Borrowed current/restart entry within dec_codetab.
 
code_t * dec_oldcodep
 Borrowed preceding recognised entry.
 
code_t * dec_free_entp
 Next available decoder table entry cursor.
 
code_t * dec_maxcodep
 Current width-dependent dictionary limit cursor.
 
code_t * dec_codetab
 Owned decoder entry allocation, released by cleanup.
 
int read_error
 Latched same-strile failure cleared by predecode.
 
int enc_oldcode
 Pending previous encoder string code.
 
tmsize_t enc_checkpoint
 Input-byte threshold for the next ratio test.
 
tmsize_t enc_ratio
 Cached compression ratio in fixed-point form.
 
tmsize_t enc_incount
 Input bytes counted for ratio estimation.
 
tmsize_t enc_outcount
 Output code bits counted for ratio estimation.
 
uint8_t * enc_rawlimit
 Borrowed raw-buffer limit leaving room for final codes.
 
hash_t * enc_hashtab
 Owned HSIZE-entry encoding table, released by cleanup.
 

Detailed Description

Own LZW dictionaries hash storage and transfer restart state.

Allocated as tif_data by TIFFInitLZW() (or LZWSetupDecode() if missing). dec_codetab and enc_hashtab are allocated by decode/encode setup, and LZWCleanup() frees them together with the state.

Definition at line 211 of file tif_lzw.c.

Field Documentation

◆ base

LZWBaseState LZWCodecState::base

Shared LZW/Predictor prefix, first in the codec allocation.

Definition at line 214 of file tif_lzw.c.

◆ dec_bitsleft

uint64_t LZWCodecState::dec_bitsleft

Number of cached raw-input bits remaining.

Definition at line 221 of file tif_lzw.c.

◆ dec_codep

code_t* LZWCodecState::dec_codep

Borrowed current/restart entry within dec_codetab.

Definition at line 231 of file tif_lzw.c.

◆ dec_codetab

code_t* LZWCodecState::dec_codetab

Owned decoder entry allocation, released by cleanup.

Definition at line 239 of file tif_lzw.c.

◆ dec_decode

decodeFunc LZWCodecState::dec_decode

Decoder last recorded by predecode; NULL until the first predecode. Used only as a first-strile detection flag, never called, and may differ from the installed tif_decode* methods.

Definition at line 229 of file tif_lzw.c.

◆ dec_free_entp

code_t* LZWCodecState::dec_free_entp

Next available decoder table entry cursor.

Definition at line 235 of file tif_lzw.c.

◆ dec_maxcodep

code_t* LZWCodecState::dec_maxcodep

Current width-dependent dictionary limit cursor.

Definition at line 237 of file tif_lzw.c.

◆ dec_nbitsmask

long LZWCodecState::dec_nbitsmask

Right-adjusted mask for current decode width.

Definition at line 217 of file tif_lzw.c.

◆ dec_oldcodep

code_t* LZWCodecState::dec_oldcodep

Borrowed preceding recognised entry.

Definition at line 233 of file tif_lzw.c.

◆ dec_restart

tmsize_t LZWCodecState::dec_restart

Bytes already returned from an interrupted decoded string.

Definition at line 219 of file tif_lzw.c.

◆ enc_checkpoint

tmsize_t LZWCodecState::enc_checkpoint

Input-byte threshold for the next ratio test.

Definition at line 246 of file tif_lzw.c.

Referenced by LZWEncode().

◆ enc_hashtab

hash_t* LZWCodecState::enc_hashtab

Owned HSIZE-entry encoding table, released by cleanup.

Definition at line 257 of file tif_lzw.c.

Referenced by cl_hash(), and LZWEncode().

◆ enc_incount

tmsize_t LZWCodecState::enc_incount

Input bytes counted for ratio estimation.

Definition at line 251 of file tif_lzw.c.

Referenced by LZWEncode().

◆ enc_oldcode

int LZWCodecState::enc_oldcode

Pending previous encoder string code.

Definition at line 244 of file tif_lzw.c.

Referenced by LZWEncode(), and LZWPostEncode().

◆ enc_outcount

tmsize_t LZWCodecState::enc_outcount

Output code bits counted for ratio estimation.

Definition at line 253 of file tif_lzw.c.

Referenced by LZWEncode(), and LZWPostEncode().

◆ enc_ratio

tmsize_t LZWCodecState::enc_ratio

Cached compression ratio in fixed-point form.

Definition at line 249 of file tif_lzw.c.

Referenced by LZWEncode().

◆ enc_rawlimit

uint8_t* LZWCodecState::enc_rawlimit

Borrowed raw-buffer limit leaving room for final codes.

Definition at line 255 of file tif_lzw.c.

Referenced by LZWEncode(), and LZWPostEncode().

◆ old_tif_rawcc

tmsize_t LZWCodecState::old_tif_rawcc

Raw byte count saved after the preceding decoder call.

Definition at line 223 of file tif_lzw.c.

◆ read_error

int LZWCodecState::read_error

Latched same-strile failure cleared by predecode.

Definition at line 241 of file tif_lzw.c.


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