spandsp 3.0.0
t85_encode_state_s Struct Reference

Public Attributes

t4_row_read_handler_t row_read_handler
 Callback function to read a row of pixels from the image source.
void * row_read_user_data
 Opaque pointer passed to row_read_handler.
uint8_t bit_planes
uint8_t current_bit_plane
uint32_t xd
uint32_t yd
uint32_t l0
int mx
int options
const uint8_t * comment
size_t comment_len
uint32_t y
uint32_t i
int newlen
int32_t tx
uint32_t c_all
uint32_t c [128]
int32_t new_tx
bool prev_ltp
uint8_t * prev_row [3]
uint8_t * row_buf
uint8_t * bitstream
int bitstream_len
int bitstream_iptr
int bitstream_optr
int fill_with_white
int compressed_image_size
 The size of the compressed image, in bytes.
t81_t82_arith_encode_state_t s
logging_state_t logging
 Error and flow logging control.

Member Data Documentation

◆ bit_planes

uint8_t t85_encode_state_s::bit_planes

The number of bit planes. Always 1 for true T.85

Referenced by t85_encode_init().

◆ c

uint32_t t85_encode_state_s::c[128]

Adaptive template algorithm variables

◆ c_all

uint32_t t85_encode_state_s::c_all

Adaptive template algorithm variables

◆ comment

const uint8_t* t85_encode_state_s::comment

The contents for a COMMENT marker segment, to be added to the image at the next opportunity. This is set to NULL when nothing is pending.

Referenced by t85_encode_comment(), and t85_encode_restart().

◆ comment_len

size_t t85_encode_state_s::comment_len

Length of data pointed to by comment

Referenced by t85_encode_comment(), and t85_encode_restart().

◆ i

uint32_t t85_encode_state_s::i

Next row within current stripe

Referenced by t85_encode_restart(), and t85_encode_set_image_length().

◆ l0

uint32_t t85_encode_state_s::l0

The number of rows per stripe

Referenced by t85_encode_init(), and t85_encode_set_options().

◆ mx

int t85_encode_state_s::mx

Maximum ATMOVE window size (0 - 127)

Referenced by t85_encode_init(), and t85_encode_set_options().

◆ new_tx

int32_t t85_encode_state_s::new_tx

New TX value, or <0 for analysis in progress

Referenced by t85_encode_restart().

◆ newlen

int t85_encode_state_s::newlen

Flag for handling NEWLEN processing.

Referenced by t85_encode_restart(), and t85_encode_set_image_length().

◆ options

int t85_encode_state_s::options

◆ prev_ltp

bool t85_encode_state_s::prev_ltp

True if previous row was typical

Referenced by t85_encode_restart().

◆ prev_row

uint8_t* t85_encode_state_s::prev_row[3]

Pointers to the 3 row buffers

Referenced by t85_encode_set_image_width().

◆ row_buf

uint8_t* t85_encode_state_s::row_buf

Pointer to a block of allocated memory 3 rows long, which we divide up for the 3 row buffers.

Referenced by t85_encode_release(), t85_encode_restart(), and t85_encode_set_image_width().

◆ s

t81_t82_arith_encode_state_t t85_encode_state_s::s

Arithmetic encoder state

Referenced by t85_encode_restart(), and t85_encode_set_image_length().

◆ tx

int32_t t85_encode_state_s::tx

X-offset of adaptive template pixel

Referenced by t85_encode_restart().

◆ xd

uint32_t t85_encode_state_s::xd

The width of the full image, in pixels

Referenced by t85_encode_get_image_width(), t85_encode_restart(), and t85_encode_set_image_width().

◆ y

◆ yd

uint32_t t85_encode_state_s::yd

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