|
spandsp 3.0.0
|
Go to the source code of this file.
Typedefs | |
| typedef struct t4_t6_decode_state_s | t4_t6_decode_state_t |
Functions | |
| int | t4_t6_decode_put_bit (t4_t6_decode_state_t *s, int bit) |
| Put a bit of the current document page. | |
| int | t4_t6_decode_put (t4_t6_decode_state_t *s, const uint8_t buf[], size_t len) |
| Put a byte of the current document page. | |
| int | t4_t6_decode_set_row_write_handler (t4_t6_decode_state_t *s, t4_row_write_handler_t handler, void *user_data) |
| Set the row write handler for a T.4/T.6 decode context. | |
| int | t4_t6_decode_set_encoding (t4_t6_decode_state_t *s, int encoding) |
| Set the encoding for the encoded data. | |
| uint32_t | t4_t6_decode_get_image_width (t4_t6_decode_state_t *s) |
| Get the width of the image. | |
| uint32_t | t4_t6_decode_get_image_length (t4_t6_decode_state_t *s) |
| Get the length of the image. | |
| int | t4_t6_decode_get_compressed_image_size (t4_t6_decode_state_t *s) |
| Get the size of the compressed image, in bits. | |
| logging_state_t * | t4_t6_decode_get_logging_state (t4_t6_decode_state_t *s) |
| Get the logging context associated with a T.4 or T.6 decode context. | |
| int | t4_t6_decode_restart (t4_t6_decode_state_t *s, int image_width) |
| t4_t6_decode_state_t * | t4_t6_decode_init (t4_t6_decode_state_t *s, int encoding, int image_width, t4_row_write_handler_t handler, void *user_data) |
| Prepare to decode an image in T.4 or T.6 format. | |
| int | t4_t6_decode_release (t4_t6_decode_state_t *s) |
| int | t4_t6_decode_free (t4_t6_decode_state_t *s) |
| int t4_t6_decode_get_compressed_image_size | ( | t4_t6_decode_state_t * | s | ) |
Get the size of the compressed image, in bits.
| s | The T.4/T.6 context. |
References t4_t6_decode_state_s::compressed_image_size.
Referenced by t4_rx_get_transfer_statistics().
| uint32_t t4_t6_decode_get_image_length | ( | t4_t6_decode_state_t * | s | ) |
Get the length of the image.
| s | The T.4/T.6 context. |
References t4_t6_decode_state_s::image_length.
Referenced by t4_rx_end_page(), and t4_rx_get_transfer_statistics().
| uint32_t t4_t6_decode_get_image_width | ( | t4_t6_decode_state_t * | s | ) |
Get the width of the image.
| s | The T.4/T.6 context. |
References t4_t6_decode_state_s::image_width.
Referenced by t4_rx_get_transfer_statistics().
| logging_state_t * t4_t6_decode_get_logging_state | ( | t4_t6_decode_state_t * | s | ) |
Get the logging context associated with a T.4 or T.6 decode context.
Get the logging context associated with a T.4 or T.6 decode context.
| s | The T.4/T.6 context. |
References t4_t6_decode_state_s::logging.
| t4_t6_decode_state_t * t4_t6_decode_init | ( | t4_t6_decode_state_t * | s, |
| int | encoding, | ||
| int | image_width, | ||
| t4_row_write_handler_t | handler, | ||
| void * | user_data ) |
Prepare to decode an image in T.4 or T.6 format.
| s | The T.4/T.6 context. |
| encoding | The encoding mode. |
| image | width The image width, in pixels. |
| handler | A callback routine to handle decoded image rows. |
| user_data | An opaque pointer passed to handler. |
References t4_t6_decode_state_s::encoding, t4_t6_decode_state_s::logging, t4_t6_decode_state_s::row_write_handler, and t4_t6_decode_state_s::row_write_user_data.
Referenced by t4_rx_set_rx_encoding().
| int t4_t6_decode_put | ( | t4_t6_decode_state_t * | s, |
| const uint8_t | buf[], | ||
| size_t | len ) |
Put a byte of the current document page.
| s | The T.4/T.6 context. |
| buf | The buffer containing the chunk. |
| len | The length of the chunk. |
References t4_t6_decode_state_s::compressed_image_size, t4_t6_decode_state_s::consecutive_eols, t4_t6_decode_state_s::curr_bad_row_run, EOLS_TO_END_ANY_RX_PAGE, t4_t6_decode_state_s::longest_bad_row_run, t4_t6_decode_state_s::row_write_handler, t4_t6_decode_state_s::row_write_user_data, t4_t6_decode_state_s::rx_bits, t4_t6_decode_state_s::rx_bitstream, t4_t6_decode_state_s::rx_skip_bits, T4_DECODE_MORE_DATA, and T4_DECODE_OK.
Referenced by t4_rx_start_page().
| int t4_t6_decode_put_bit | ( | t4_t6_decode_state_t * | s, |
| int | bit ) |
Put a bit of the current document page.
| s | The T.4/T.6 context. |
| bit | The data bit. |
References t4_t6_decode_state_s::compressed_image_size, T4_DECODE_MORE_DATA, and T4_DECODE_OK.
Referenced by t4_rx_put_bit().
| int t4_t6_decode_set_encoding | ( | t4_t6_decode_state_t * | s, |
| int | encoding ) |
Set the encoding for the encoded data.
| s | The T.4/T.6 context. |
| encoding | The encoding. |
References t4_t6_decode_state_s::encoding, T4_COMPRESSION_T4_1D, T4_COMPRESSION_T4_2D, and T4_COMPRESSION_T6.
Referenced by t4_rx_set_rx_encoding().
| int t4_t6_decode_set_row_write_handler | ( | t4_t6_decode_state_t * | s, |
| t4_row_write_handler_t | handler, | ||
| void * | user_data ) |
Set the row write handler for a T.4/T.6 decode context.
| s | The T.4/T.6 context. |
| handler | A pointer to the handler routine. |
| user_data | An opaque pointer passed to the handler routine. |
References t4_t6_decode_state_s::row_write_handler, and t4_t6_decode_state_s::row_write_user_data.
Referenced by t4_rx_set_row_write_handler().