XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
lzw_ctx Struct Reference
Collaboration diagram for lzw_ctx:
Collaboration graph
[legend]

Public Attributes

struct lzw_read_ctx input
 
uint16_t prev_code
 
uint16_t prev_code_first
 
uint16_t prev_code_count
 
uint8_t initial_code_size
 
uint8_t code_size
 
uint16_t code_max
 
uint16_t clear_code
 
uint16_t eoi_code
 
uint16_t table_size
 
uint16_t output_code
 
uint16_t output_left
 
bool has_transparency
 
uint8_t transparency_idx
 
const uint32_t *restrict colour_map
 
struct lzw_table_entry table [LZW_TABLE_ENTRY_MAX]
 
uint8_t stack_base [LZW_TABLE_ENTRY_MAX]
 

Detailed Description

LZW decompression context.

Member Data Documentation

◆ clear_code

uint16_t lzw_ctx::clear_code

Special Clear code value

◆ code_max

uint16_t lzw_ctx::code_max

Max code value for current code size.

◆ code_size

uint8_t lzw_ctx::code_size

Current LZW code size.

◆ colour_map

const uint32_t* restrict lzw_ctx::colour_map

Index to colour mapping.

◆ eoi_code

uint16_t lzw_ctx::eoi_code

Special End of Information code value

◆ has_transparency

bool lzw_ctx::has_transparency

Whether the image is opaque.

◆ initial_code_size

uint8_t lzw_ctx::initial_code_size

Starting LZW code size.

◆ input

struct lzw_read_ctx lzw_ctx::input

Input reading context

◆ output_code

uint16_t lzw_ctx::output_code

Code that has been partially output.

◆ output_left

uint16_t lzw_ctx::output_left

Number of values left for output_code.

◆ prev_code

uint16_t lzw_ctx::prev_code

Code read from input previously.

◆ prev_code_count

uint16_t lzw_ctx::prev_code_count

Total values for previous code.

◆ prev_code_first

uint16_t lzw_ctx::prev_code_first

First value of previous code.

◆ stack_base

uint8_t lzw_ctx::stack_base[LZW_TABLE_ENTRY_MAX]

Output value stack.

◆ table

struct lzw_table_entry lzw_ctx::table[LZW_TABLE_ENTRY_MAX]

LZW code table. Generated during decode.

◆ table_size

uint16_t lzw_ctx::table_size

Next position in table to fill.

◆ transparency_idx

uint8_t lzw_ctx::transparency_idx

Index representing transparency.


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