Go to the source code of this file.
|
int | t4_t6_decode_put_bit (t4_t6_decode_state_t *s, int bit) |
| Put a bit of the current document page. More...
|
|
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. More...
|
|
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. More...
|
|
int | t4_t6_decode_set_encoding (t4_t6_decode_state_t *s, int encoding) |
| Set the encoding for the encoded data. More...
|
|
uint32_t | t4_t6_decode_get_image_width (t4_t6_decode_state_t *s) |
| Get the width of the image. More...
|
|
uint32_t | t4_t6_decode_get_image_length (t4_t6_decode_state_t *s) |
| Get the length of the image. More...
|
|
int | t4_t6_decode_get_compressed_image_size (t4_t6_decode_state_t *s) |
| Get the size of the compressed image, in bits. More...
|
|
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. More...
|
|
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. More...
|
|
int | t4_t6_decode_release (t4_t6_decode_state_t *s) |
|
int | t4_t6_decode_free (t4_t6_decode_state_t *s) |
|
◆ t4_t6_decode_get_compressed_image_size()
◆ t4_t6_decode_get_image_length()
◆ t4_t6_decode_get_image_width()
◆ t4_t6_decode_get_logging_state()
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.
- Parameters
-
- Returns
- A pointer to the logging context
References t4_t6_decode_state_s::logging.
◆ t4_t6_decode_init()
Prepare to decode an image in T.4 or T.6 format.
- Parameters
-
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. |
- Returns
- A pointer to the context, or NULL if there was a problem.
◆ t4_t6_decode_put()
Put a byte of the current document page.
- Parameters
-
s | The T.4/T.6 context. |
buf | The buffer containing the chunk. |
len | The length of the chunk. |
- Returns
- T4_DECODE_MORE_DATA when the image is still in progress. T4_DECODE_OK when the image is complete.
◆ t4_t6_decode_put_bit()
Put a bit of the current document page.
- Parameters
-
s | The T.4/T.6 context. |
bit | The data bit. |
- Returns
- Decode status.
Referenced by t4_rx_put_bit().
◆ t4_t6_decode_set_encoding()
◆ t4_t6_decode_set_row_write_handler()