26 #if !defined(_SPANDSP_PRIVATE_T4_TX_H_) 27 #define _SPANDSP_PRIVATE_T4_TX_H_ 29 typedef int (*t4_image_get_handler_t)(
void *user_data, uint8_t buf[],
size_t len);
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;
178 int colour_map_entries;
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
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
uint16_t fill_order
The TIFF fill order setting for the current page.
Definition: private/t4_tx.h:48
int row
Row counter for playing out the rows of the image.
Definition: private/t4_tx.h:71
int image_type
Image type - bi-level, gray, colour, etc.
Definition: private/t4_tx.h:44
Definition: private/image_translate.h:31
const char * file
The current file name.
Definition: private/t4_tx.h:37
uint16_t compression
The compression type used in the TIFF file.
Definition: private/t4_tx.h:42
t4_tx_tiff_state_t tiff
All TIFF file specific state information for the T.4 context.
Definition: private/t4_tx.h:192
tz_t * tz
Optional per instance time zone for the FAX page header timestamp.
Definition: private/t4_tx.h:153
int resolution_code
Code for the combined X and Y resolution of the image in the file.
Definition: private/t4_tx.h:59
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).
Definition: private/t4_tx.h:148
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.
Definition: private/t4_tx.h:138
int image_buffer_size
The current size of the image buffer.
Definition: private/t4_tx.h:69
char * header_text
The composed text of the FAX page header, if there is one.
Definition: private/t4_tx.h:151
Definition: private/t4_tx.h:103
int start_page
The first page to transfer. -1 to start at the beginning of the file.
Definition: private/t4_tx.h:131
Definition: private/t42.h:32
void * row_handler_user_data
Opaque pointer passed to row_read_handler.
Definition: private/t4_tx.h:120
uint16_t photo_metric
The TIFF photometric setting for the current page.
Definition: private/t4_tx.h:46
int pages_in_file
The number of pages in the current image file.
Definition: private/t4_tx.h:62
Definition: private/t42.h:53
Definition: private/t4_tx.h:115
t4_tx_metadata_t metadata
Supporting information, like resolutions, which the backend may want.
Definition: private/t4_tx.h:189
Definition: private/t4_tx.h:34
int x_resolution
Column-to-column (X) resolution in pixels per metre of the image in the file.
Definition: private/t4_tx.h:55
int stop_page
The last page to transfer. -1 to continue to the end of the file.
Definition: private/t4_tx.h:133
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
uint32_t image_length
Length of the image in the file.
Definition: private/t4_tx.h:53
Definition: private/t43.h:30
Definition: private/timezone.h:81
TIFF * tiff_file
The libtiff context for the current TIFF file.
Definition: private/t4_tx.h:39
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
Definition: private/logging.h:33
int image_size
The size of the image in the image buffer, in bytes.
Definition: private/t4_tx.h:67
int line_image_size
The size of the compressed image on the line side, in bits.
Definition: private/t4_tx.h:128
Definition: private/t85.h:51
int raw_row
Row counter used when the image is resized or dithered flat.
Definition: private/t4_tx.h:73
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 header_row
Row counter for playing out the rows of the header line.
Definition: private/t4_tx.h:156
uint8_t * image_buffer
A pointer to the image buffer.
Definition: private/t4_tx.h:65
Definition: private/t4_t6_encode.h:32
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition: t4_tx.h:34
logging_state_t logging
Error and flow logging control.
Definition: private/t4_tx.h:195
uint32_t image_width
Width of the image in the file.
Definition: private/t4_tx.h:51