28 #if !defined(_SPANDSP_T4_TX_H_)
29 #define _SPANDSP_T4_TX_H_
31 typedef int (*t4_row_read_handler_t)(
void *user_data, uint8_t buf[],
size_t len);
33 #if defined(__cplusplus)
185 #if defined(__cplusplus)
int t4_tx_release(t4_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:1469
t4_state_t * t4_tx_init(t4_state_t *s, const char *file, int start_page, int stop_page)
Prepare for transmission of a document.
Definition: t4_tx.c:1221
int t4_tx_get_x_resolution(t4_state_t *s)
Get the column-to-column (x) resolution of the current page.
Definition: t4_tx.c:1528
int t4_tx_set_row_read_handler(t4_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
void t4_tx_set_header_tz(t4_state_t *s, const char *tzstring)
Set the header timezone.
Definition: t4_tx.c:1516
void t4_tx_set_local_ident(t4_state_t *s, const char *ident)
Set the identity of the local machine, for inclusion in page headers.
Definition: t4_tx.c:1504
void t4_tx_set_tx_encoding(t4_state_t *s, int encoding)
Set the encoding for the encoded data.
Definition: t4_tx.c:1490
int t4_tx_free(t4_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:1480
void t4_tx_set_min_bits_per_row(t4_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:1498
int t4_tx_check_bit(t4_state_t *s)
Return the next bit of the current document page, without actually moving forward in the buffer...
Definition: t4_tx.c:1458
int t4_tx_get_byte(t4_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:1438
int t4_tx_get_y_resolution(t4_state_t *s)
Get the row-to-row (y) resolution of the current page.
Definition: t4_tx.c:1522
void t4_tx_set_header_info(t4_state_t *s, const char *info)
Set the header info.
Definition: t4_tx.c:1510
int t4_tx_get_bit(t4_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:1422
int t4_tx_next_page_has_different_format(t4_state_t *s)
Check for the existance of the next page, and whether its format is like the current one...
Definition: t4_tx.c:1388
int t4_tx_end_page(t4_state_t *s)
Complete the sending of a page.
Definition: t4_tx.c:1415
int t4_tx_get_current_page_in_file(t4_state_t *s)
Get the currnet page number in the file.
Definition: t4_tx.c:1553
int t4_tx_get_chunk(t4_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:1446
Definition: private/t4_tx.h:33
int t4_tx_restart_page(t4_state_t *s)
Prepare the current page for a resend.
Definition: t4_tx.c:1407
void t4_tx_get_transfer_statistics(t4_state_t *s, t4_stats_t *t)
Get the current transfer statistics.
Definition: t4_tx.c:1559
int t4_tx_get_image_width(t4_state_t *s)
Get the width of the current page, in pixel columns.
Definition: t4_tx.c:1534
int t4_tx_start_page(t4_state_t *s)
Prepare to send the next page of the current document.
Definition: t4_tx.c:1281
int t4_tx_get_pages_in_file(t4_state_t *s)
Get the number of pages in the file.
Definition: t4_tx.c:1540