spandsp 3.0.0
t4_tx_state_s Struct Reference

#include <t4_tx.h>

Public Attributes

t4_row_read_handler_t row_handler
 Callback function to read a row of pixels from the image source.
 
void * row_handler_user_data
 Opaque pointer passed to row_read_handler.
 
int row_squashing_ratio
 When superfine and fine resolution images need to be squahed vertically to a lower resolution, this value sets the number of source rows which must be squashed to form each row on the wire.
 
int line_image_size
 The size of the compressed image on the line side, in bits.
 
int start_page
 The first page to transfer. -1 to start at the beginning of the file.
 
int stop_page
 The last page to transfer. -1 to continue to the end of the file.
 
bool header_overlays_image
 True for FAX page headers to overlay (i.e. replace) the beginning of the page image. False for FAX page headers to add to the overall length of the page.
 
const char * header_info
 The text which will be used in FAX page header. No text results in no header line.
 
const char * local_ident
 The local ident string. This is used with header_info to form a page header line.
 
int current_page
 The page number of current page. The first page is zero. If FAX page headers are used, the page number in the header will be one more than this value (i.e. they start from 1).
 
char * header_text
 The composed text of the FAX page header, if there is one.
 
tz_ttz
 Optional per instance time zone for the FAX page header timestamp.
 
int header_row
 Row counter for playing out the rows of the header line.
 
union {
   no_encoder_state_t   no_encoder
 
   t4_t6_encode_state_t   t4_t6
 
   t85_encode_state_t   t85
 
   t42_encode_state_t   t42
 
   t43_encode_state_t   t43
 
encoder
 
t4_image_get_handler_t image_get_handler
 
int apply_lab
 
lab_params_t lab_params
 
uint8_t * colour_map
 
int colour_map_entries
 
image_translate_state_t translator
 
uint8_t * pack_buf
 
int pack_ptr
 
int pack_row
 
int pack_bit_mask
 
t4_tx_metadata_t metadata
 Supporting information, like resolutions, which the backend may want.
 
t4_tx_tiff_state_t tiff
 All TIFF file specific state information for the T.4 context.
 
logging_state_t logging
 Error and flow logging control.
 

Detailed Description

T.4 FAX compression descriptor. This defines the working state for a single instance of a T.4 FAX compression channel.


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