28#if !defined(_SPANDSP_T4_TX_H_) 
   29#define _SPANDSP_T4_TX_H_ 
   38#if defined(SPANDSP_SUPPORT_TIFF_FX) 
  174#define TIFFTAG_INDEXED                 346 
  175#define TIFFTAG_GLOBALPARAMETERSIFD     400 
  176#define TIFFTAG_PROFILETYPE             401 
  177#define     PROFILETYPE_UNSPECIFIED     0 
  178#define     PROFILETYPE_G3_FAX          1 
  179#define TIFFTAG_FAXPROFILE              402 
  180#define     FAXPROFILE_S                1 
  181#define     FAXPROFILE_F                2 
  182#define     FAXPROFILE_J                3 
  183#define     FAXPROFILE_C                4 
  184#define     FAXPROFILE_L                5 
  185#define     FAXPROFILE_M                6 
  186#define TIFFTAG_CODINGMETHODS           403 
  187#define     CODINGMETHODS_T4_1D         (1 << 1) 
  188#define     CODINGMETHODS_T4_2D         (1 << 2) 
  189#define     CODINGMETHODS_T6            (1 << 3) 
  190#define     CODINGMETHODS_T85           (1 << 4) 
  191#define     CODINGMETHODS_T42           (1 << 5) 
  192#define     CODINGMETHODS_T43           (1 << 6) 
  193#define TIFFTAG_VERSIONYEAR             404 
  194#define TIFFTAG_MODENUMBER              405 
  195#define TIFFTAG_DECODE                  433 
  196#define TIFFTAG_IMAGEBASECOLOR          434 
  197#define TIFFTAG_T82OPTIONS              435 
  198#define TIFFTAG_STRIPROWCOUNTS          559 
  199#define TIFFTAG_IMAGELAYER              34732 
  201#define     COMPRESSION_T85             9 
  202#define     COMPRESSION_T43             10 
  207#if defined(__cplusplus) 
  359#if defined(__cplusplus) 
Definition private/t4_tx.h:36
struct tz_s * tz
Optional per instance time zone for the FAX page header timestamp.
Definition private/t4_tx.h:51
Definition private/timezone.h:82
int t4_tx_next_page_has_different_format(t4_tx_state_t *s)
Check for the existance of the next page, and whether its format is like the current one....
Definition t4_tx.c:1328
t4_tx_state_t * t4_tx_init(t4_tx_state_t *s, const char *file, int start_page, int stop_page)
Prepare for transmission of a document.
Definition t4_tx.c:1493
void t4_tx_set_local_ident(t4_tx_state_t *s, const char *ident)
Set the identity of the local machine, for inclusion in page headers.
Definition t4_tx.c:1423
int t4_tx_set_row_read_handler(t4_tx_state_t *s, t4_row_read_handler_t handler, void *user_data)
Set the row read handler for a T.4 transmit context.
Definition t4_tx.c:1213
int t4_tx_free(t4_tx_state_t *s)
End the transmission of a document. Tidy up, close the file and free the context. This should be used...
Definition t4_tx.c:1585
void t4_tx_set_header_tz(t4_tx_state_t *s, tz_t *tz)
Set the header timezone.
Definition t4_tx.c:1435
int t4_tx_restart_page(t4_tx_state_t *s)
Prepare the current page for a resend.
Definition t4_tx.c:1347
int t4_tx_start_page(t4_tx_state_t *s)
Prepare to send the next page of the current document.
Definition t4_tx.c:1221
void t4_tx_get_transfer_statistics(t4_tx_state_t *s, t4_stats_t *t)
Get the current transfer statistics.
Definition t4_tx.c:1478
int t4_tx_check_bit(t4_tx_state_t *s)
Return the next bit of the current document page, without actually moving forward in the buffer....
Definition t4_tx.c:1398
int t4_tx_get_bit(t4_tx_state_t *s)
Get the next bit of the current document page. The document will be padded for the current minimum sc...
Definition t4_tx.c:1362
int t4_tx_get_y_resolution(t4_tx_state_t *s)
Get the row-to-row (y) resolution of the current page.
Definition t4_tx.c:1441
void t4_tx_set_min_bits_per_row(t4_tx_state_t *s, int bits)
Set the minimum number of encoded bits per row. This allows the makes the encoding process to be set ...
Definition t4_tx.c:1417
int t4_tx_get_byte(t4_tx_state_t *s)
Get the next byte of the current document page. The document will be padded for the current minimum s...
Definition t4_tx.c:1378
int t4_tx_get_image_width(t4_tx_state_t *s)
Get the width of the current page, in pixel columns.
Definition t4_tx.c:1453
int t4_tx_release(t4_tx_state_t *s)
End the transmission of a document. Tidy up and close the file. This should be used to end T....
Definition t4_tx.c:1574
int t4_tx_get_x_resolution(t4_tx_state_t *s)
Get the column-to-column (x) resolution of the current page.
Definition t4_tx.c:1447
void t4_tx_set_header_info(t4_tx_state_t *s, const char *info)
Set the header info.
Definition t4_tx.c:1429
int t4_tx_end_page(t4_tx_state_t *s)
Complete the sending of a page.
Definition t4_tx.c:1355
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:36
void t4_tx_set_tx_encoding(t4_tx_state_t *s, int encoding)
Set the encoding for the encoded data.
Definition t4_tx.c:1409
int t4_tx_get_current_page_in_file(t4_tx_state_t *s)
Get the currnet page number in the file.
Definition t4_tx.c:1472
int t4_tx_get_pages_in_file(t4_tx_state_t *s)
Get the number of pages in the file.
Definition t4_tx.c:1459
int t4_tx_get_chunk(t4_tx_state_t *s, uint8_t buf[], int max_len)
Get the next chunk of the current document page. The document will be padded for the current minimum ...
Definition t4_tx.c:1386