spandsp 0.0.6
t4_t6_encode_state_s Struct Reference

#include <t4_t6_encode.h>

Public Attributes

int min_bits_per_row
 The minimum number of encoded bits per row. This is a timing thing for hardware FAX machines.
int max_rows_to_next_1d_row
 The current maximum contiguous rows that may be 2D encoded.
int rows_to_next_1d_row
 Number of rows left that can be 2D encoded, before a 1D encoded row must be used.
int ref_steps
 The number of runs currently in the reference row.
int bit_pos
 Pointer to the byte containing the next image bit to transmit.
int bit_ptr
 Pointer to the bit within the byte containing the next image bit to transmit.
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.

Detailed Description

T.4 1D, T4 2D and T6 compressor state.

Member Data Documentation

◆ bit_pos

int t4_t6_encode_state_s::bit_pos

Pointer to the byte containing the next image bit to transmit.

Referenced by t4_tx_check_bit(), t4_tx_get_bit(), t4_tx_restart_page(), and t4_tx_start_page().

◆ bit_ptr

int t4_t6_encode_state_s::bit_ptr

Pointer to the bit within the byte containing the next image bit to transmit.

Referenced by t4_tx_check_bit(), t4_tx_get_bit(), t4_tx_get_byte(), t4_tx_get_chunk(), t4_tx_restart_page(), and t4_tx_start_page().

◆ max_rows_to_next_1d_row

int t4_t6_encode_state_s::max_rows_to_next_1d_row

The current maximum contiguous rows that may be 2D encoded.

Referenced by t4_tx_init(), t4_tx_set_tx_encoding(), and t4_tx_start_page().

◆ min_bits_per_row

int t4_t6_encode_state_s::min_bits_per_row

The minimum number of encoded bits per row. This is a timing thing for hardware FAX machines.

Referenced by t4_tx_set_min_bits_per_row().

◆ ref_steps

int t4_t6_encode_state_s::ref_steps

The number of runs currently in the reference row.

Referenced by t4_tx_init(), and t4_tx_start_page().

◆ row_read_handler

t4_row_read_handler_t t4_t6_encode_state_s::row_read_handler

Callback function to read a row of pixels from the image source.

Referenced by t4_tx_get_pages_in_file(), t4_tx_next_page_has_different_format(), t4_tx_set_row_read_handler(), and t4_tx_start_page().

◆ row_read_user_data

void* t4_t6_encode_state_s::row_read_user_data

Opaque pointer passed to row_read_handler.

Referenced by t4_tx_set_row_read_handler(), and t4_tx_start_page().

◆ rows_to_next_1d_row

int t4_t6_encode_state_s::rows_to_next_1d_row

Number of rows left that can be 2D encoded, before a 1D encoded row must be used.

Referenced by t4_tx_init(), t4_tx_set_tx_encoding(), and t4_tx_start_page().


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