26#if !defined(_SPANDSP_PRIVATE_T4_TX_H_)
27#define _SPANDSP_PRIVATE_T4_TX_H_
29typedef int (*t4_image_get_handler_t)(
void *user_data, uint8_t buf[],
size_t len);
161 t4_t6_encode_state_t t4_t6;
163#if defined(SPANDSP_SUPPORT_T88)
164 t88_encode_state_t t88;
168#if defined(SPANDSP_SUPPORT_T45)
169 t45_encode_state_t t45;
173 t4_image_get_handler_t image_get_handler;
176 lab_params_t lab_params;
178 int colour_map_entries;
180 image_translate_state_t translator;
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/t4_tx.h:104
Definition private/t4_tx.h:116
void * row_handler_user_data
Opaque pointer passed to row_read_handler.
Definition private/t4_tx.h:120
logging_state_t logging
Error and flow logging control.
Definition private/t4_tx.h:195
const char * local_ident
The local ident string. This is used with header_info to form a page header line.
Definition private/t4_tx.h:144
tz_t * tz
Optional per instance time zone for the FAX page header timestamp.
Definition private/t4_tx.h:153
int header_row
Row counter for playing out the rows of the header line.
Definition private/t4_tx.h:156
t4_tx_metadata_t metadata
Supporting information, like resolutions, which the backend may want.
Definition private/t4_tx.h:189
t4_tx_tiff_state_t tiff
All TIFF file specific state information for the T.4 context.
Definition private/t4_tx.h:192
t4_row_read_handler_t row_handler
Callback function to read a row of pixels from the image source.
Definition private/t4_tx.h:118
int row_squashing_ratio
When superfine and fine resolution images need to be squahed vertically to a lower resolution,...
Definition private/t4_tx.h:125
int stop_page
The last page to transfer. -1 to continue to the end of the file.
Definition private/t4_tx.h:133
int line_image_size
The size of the compressed image on the line side, in bits.
Definition private/t4_tx.h:128
int current_page
The page number of current page. The first page is zero. If FAX page headers are used,...
Definition private/t4_tx.h:148
char * header_text
The composed text of the FAX page header, if there is one.
Definition private/t4_tx.h:151
bool header_overlays_image
True for FAX page headers to overlay (i.e. replace) the beginning of the page image....
Definition private/t4_tx.h:138
int start_page
The first page to transfer. -1 to start at the beginning of the file.
Definition private/t4_tx.h:131
const char * header_info
The text which will be used in FAX page header. No text results in no header line.
Definition private/t4_tx.h:141
Definition private/t4_tx.h:35
int y_resolution
Row-to-row (Y) resolution in pixels per metre of the image in the file.
Definition private/t4_tx.h:57
int x_resolution
Column-to-column (X) resolution in pixels per metre of the image in the file.
Definition private/t4_tx.h:55
TIFF * tiff_file
The libtiff context for the current TIFF file.
Definition private/t4_tx.h:39
uint8_t * image_buffer
A pointer to the image buffer.
Definition private/t4_tx.h:65
int image_type
Image type - bi-level, gray, colour, etc.
Definition private/t4_tx.h:44
uint32_t image_width
Width of the image in the file.
Definition private/t4_tx.h:51
int image_buffer_size
The current size of the image buffer.
Definition private/t4_tx.h:69
uint16_t compression
The compression type used in the TIFF file.
Definition private/t4_tx.h:42
const char * file
The current file name.
Definition private/t4_tx.h:37
int raw_row
Row counter used when the image is resized or dithered flat.
Definition private/t4_tx.h:73
uint16_t photo_metric
The TIFF photometric setting for the current page.
Definition private/t4_tx.h:46
int resolution_code
Code for the combined X and Y resolution of the image in the file.
Definition private/t4_tx.h:59
int image_size
The size of the image in the image buffer, in bytes.
Definition private/t4_tx.h:67
uint16_t fill_order
The TIFF fill order setting for the current page.
Definition private/t4_tx.h:48
int pages_in_file
The number of pages in the current image file.
Definition private/t4_tx.h:62
int row
Row counter for playing out the rows of the image.
Definition private/t4_tx.h:71
uint32_t image_length
Length of the image in the file.
Definition private/t4_tx.h:53
struct t42_encode_state_s t42_encode_state_t
Definition t42.h:39
struct t43_encode_state_s t43_encode_state_t
Definition t43.h:39
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:34
struct t85_encode_state_s t85_encode_state_t
Definition t85.h:57