spandsp
0.0.6
|
Go to the source code of this file.
Typedefs | |
typedef int(* | t4_row_read_handler_t )(void *user_data, uint8_t buf[], size_t len) |
Functions | |
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. More... | |
int | t4_tx_start_page (t4_state_t *s) |
Prepare to send the next page of the current document. More... | |
int | t4_tx_restart_page (t4_state_t *s) |
Prepare the current page for a resend. More... | |
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. This information can be needed before it is determined that the current page is finished with. More... | |
int | t4_tx_end_page (t4_state_t *s) |
Complete the sending of a page. More... | |
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. The document will be padded for the current minimum scan line time. More... | |
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 scan line time. More... | |
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 scan line time. More... | |
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 scan line time. More... | |
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.4 transmission started with t4_tx_init. More... | |
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 to end T.4 transmission started with t4_tx_init. More... | |
void | t4_tx_set_tx_encoding (t4_state_t *s, int encoding) |
Set the encoding for the encoded data. More... | |
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 to comply with the minimum row time specified by a remote receiving machine. More... | |
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. More... | |
void | t4_tx_set_header_info (t4_state_t *s, const char *info) |
Set the header info. More... | |
void | t4_tx_set_header_tz (t4_state_t *s, const char *tzstring) |
Set the header timezone. More... | |
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. More... | |
int | t4_tx_get_y_resolution (t4_state_t *s) |
Get the row-to-row (y) resolution of the current page. More... | |
int | t4_tx_get_x_resolution (t4_state_t *s) |
Get the column-to-column (x) resolution of the current page. More... | |
int | t4_tx_get_image_width (t4_state_t *s) |
Get the width of the current page, in pixel columns. More... | |
int | t4_tx_get_pages_in_file (t4_state_t *s) |
Get the number of pages in the file. More... | |
int | t4_tx_get_current_page_in_file (t4_state_t *s) |
Get the currnet page number in the file. More... | |
void | t4_tx_get_transfer_statistics (t4_state_t *s, t4_stats_t *t) |
Get the current transfer statistics. More... | |
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. The document will be padded for the current minimum scan line time.
s | The T.4 context. |
References SIG_STATUS_END_OF_DATA.
int t4_tx_end_page | ( | t4_state_t * | s | ) |
Complete the sending of a page.
s | The T.4 context. |
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 to end T.4 transmission started with t4_tx_init.
s | The T.4 context. |
References t4_tx_release().
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 scan line time.
s | The T.4 context. |
References SIG_STATUS_END_OF_DATA.
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 scan line time.
s | The T.4 context. |
Referenced by t30_non_ecm_get_byte().
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 scan line time.
s | The T.4 context. |
buf | The buffer into which the chunk is to written. |
max_len | The maximum length of the chunk. |
Referenced by t30_non_ecm_get_chunk().
int t4_tx_get_current_page_in_file | ( | t4_state_t * | s | ) |
Get the currnet page number in the file.
s | The T.4 context. |
int t4_tx_get_image_width | ( | t4_state_t * | s | ) |
Get the width of the current page, in pixel columns.
s | The T.4 context. |
int t4_tx_get_pages_in_file | ( | t4_state_t * | s | ) |
Get the number of pages in the file.
s | The T.4 context. |
void t4_tx_get_transfer_statistics | ( | t4_state_t * | s, |
t4_stats_t * | t | ||
) |
Get the current transfer statistics.
Get the current image transfer statistics.
s | The T.4 context. |
t | A pointer to a statistics structure. |
Referenced by t30_get_transfer_statistics().
int t4_tx_get_x_resolution | ( | t4_state_t * | s | ) |
Get the column-to-column (x) resolution of the current page.
s | The T.4 context. |
int t4_tx_get_y_resolution | ( | t4_state_t * | s | ) |
Get the row-to-row (y) resolution of the current page.
s | The T.4 context. |
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.
s | The T.4 context. |
file | The name of the file to be sent. |
start_page | The first page to send. -1 for no restriction. |
stop_page | The last page to send. -1 for no restriction. |
References span_log().
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. This information can be needed before it is determined that the current page is finished with.
s | The T.4 context. |
References span_log().
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.4 transmission started with t4_tx_init.
s | The T.4 context. |
Referenced by t4_tx_free().
int t4_tx_restart_page | ( | t4_state_t * | s | ) |
Prepare the current page for a resend.
s | The T.4 context. |
void t4_tx_set_header_info | ( | t4_state_t * | s, |
const char * | info | ||
) |
Set the header info.
Set the info field, included in the header line included in each page of an encoded FAX. This is a string of up to 50 characters. Other information (date, local ident, etc.) are automatically included in the header. If the header info is set to NULL or a zero length string, no header lines will be added to the encoded FAX.
s | The T.4 context. |
info | A string, of up to 50 bytes, which will form the info field. |
Referenced by t30_set_tx_page_header_info().
void t4_tx_set_header_tz | ( | t4_state_t * | s, |
const char * | tzstring | ||
) |
Set the header timezone.
Set the time zone for the time stamp in page header lines. If this function is not used the current time zone of the program's environment is used.
s | The T.4 context. |
info | A POSIX timezone description string. |
Referenced by t30_set_tx_page_header_tz().
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.
s | The T.4 context. |
ident | The identity string. |
Referenced by t30_set_tx_ident().
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 to comply with the minimum row time specified by a remote receiving machine.
s | The T.4 context. |
bits | The minimum number of bits per row. |
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.
s | The T.4 transmit context. |
handler | A pointer to the handler routine. |
user_data | An opaque pointer passed to the handler routine. |
void t4_tx_set_tx_encoding | ( | t4_state_t * | s, |
int | encoding | ||
) |
Set the encoding for the encoded data.
s | The T.4 context. |
encoding | The encoding. |
int t4_tx_start_page | ( | t4_state_t * | s | ) |
Prepare to send the next page of the current document.
s | The T.4 context. |
References EOLS_TO_END_T4_TX_PAGE, EOLS_TO_END_T6_TX_PAGE, span_log(), and T4_COMPRESSION_ITU_T6.