spandsp  3.0.0
t4_t6_encode_state_s Struct Reference

#include <t4_t6_encode.h>

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.
 
int encoding
 The type of compression used.
 
int image_width
 Width of the current page, in pixels.
 
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 image_length
 Length of the current page, in pixels.
 
int bytes_per_row
 The current number of bytes per row of uncompressed image data.
 
int rows_to_next_1d_row
 Number of rows left that can be 2D encoded, before a 1D encoded row must be used.
 
int row_bits
 The current number of bits in the current encoded row.
 
bool row_is_2d
 This variable is set if we are treating the current row as a 2D encoded one.
 
uint32_t tx_bitstream
 Encoded data bits buffer.
 
int tx_bits
 The number of bits currently in tx_bitstream.
 
uint8_t * bitstream
 The working chunk of the output bit stream.
 
int bitstream_iptr
 Input pointer to the output bit stream buffer.
 
int bitstream_optr
 Output pointer to the output bit stream buffer.
 
int bit_pos
 Pointer to the bit within the byte containing the next image bit to transmit.
 
uint32_t * cur_runs
 Black and white run-lengths for the current row.
 
uint32_t * ref_runs
 Black and white run-lengths for the reference row.
 
int ref_steps
 The number of runs currently in the reference row.
 
int min_row_bits
 The minimum bits in any row of the current page. For monitoring only.
 
int max_row_bits
 The maximum bits in any row of the current page. For monitoring only.
 
int compressed_image_size
 The size of the compressed image, in bits.
 
logging_state_t logging
 Error and flow logging control.
 

Detailed Description

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


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