spandsp
1.99.0
|
Go to the source code of this file.
Typedefs | |
typedef struct t43_encode_state_s | t43_encode_state_t |
typedef struct t43_decode_state_s | t43_decode_state_t |
Functions | |
const char * | t43_image_type_to_str (int type) |
void | t43_encode_set_options (t43_encode_state_t *s, uint32_t l0, int mx, int options) |
int | t43_encode_set_image_width (t43_encode_state_t *s, uint32_t image_width) |
int | t43_encode_set_image_length (t43_encode_state_t *s, uint32_t length) |
int | t43_encode_set_image_type (t43_encode_state_t *s, int image_type) |
void | t43_encode_abort (t43_encode_state_t *s) |
void | t43_encode_comment (t43_encode_state_t *s, const uint8_t comment[], size_t len) |
int | t43_encode_image_complete (t43_encode_state_t *s) |
Check if we are at the end of the current document page. More... | |
int | t43_encode_get (t43_encode_state_t *s, uint8_t buf[], size_t max_len) |
uint32_t | t43_encode_get_image_width (t43_encode_state_t *s) |
uint32_t | t43_encode_get_image_length (t43_encode_state_t *s) |
int | t43_encode_get_compressed_image_size (t43_encode_state_t *s) |
int | t43_encode_set_row_read_handler (t43_encode_state_t *s, t4_row_read_handler_t handler, void *user_data) |
logging_state_t * | t43_encode_get_logging_state (t43_encode_state_t *s) |
Get the logging context associated with a T.43 encode context. More... | |
int | t43_encode_restart (t43_encode_state_t *s, uint32_t image_width, uint32_t image_length) |
Restart a T.43 encode context. More... | |
t43_encode_state_t * | t43_encode_init (t43_encode_state_t *s, uint32_t image_width, uint32_t image_length, t4_row_read_handler_t handler, void *user_data) |
Prepare to encode an image in T.43 format. More... | |
int | t43_encode_release (t43_encode_state_t *s) |
Release a T.43 encode context. More... | |
int | t43_encode_free (t43_encode_state_t *s) |
Free a T.43 encode context. More... | |
void | t43_decode_rx_status (t43_decode_state_t *s, int status) |
int | t43_decode_put (t43_decode_state_t *s, const uint8_t data[], size_t len) |
Decode a chunk of T.43 data. More... | |
int | t43_decode_set_row_write_handler (t43_decode_state_t *s, t4_row_write_handler_t handler, void *user_data) |
Set the row handler routine. More... | |
int | t43_decode_set_comment_handler (t43_decode_state_t *s, uint32_t max_comment_len, t4_row_write_handler_t handler, void *user_data) |
Set the comment handler routine. More... | |
int | t43_decode_set_image_size_constraints (t43_decode_state_t *s, uint32_t max_xd, uint32_t max_yd) |
uint32_t | t43_decode_get_image_width (t43_decode_state_t *s) |
Get the width of the image. More... | |
uint32_t | t43_decode_get_image_length (t43_decode_state_t *s) |
Get the length of the image. More... | |
int | t43_decode_get_compressed_image_size (t43_decode_state_t *s) |
logging_state_t * | t43_decode_get_logging_state (t43_decode_state_t *s) |
Get the logging context associated with a T.43 decode context. More... | |
int | t43_decode_restart (t43_decode_state_t *s) |
t43_decode_state_t * | t43_decode_init (t43_decode_state_t *s, t4_row_write_handler_t handler, void *user_data) |
Prepare to decode an image in T.43 format. More... | |
int | t43_decode_release (t43_decode_state_t *s) |
Release a T.43 decode context. More... | |
int | t43_decode_free (t43_decode_state_t *s) |
Free a T.43 decode context. More... | |
typedef struct t43_decode_state_s t43_decode_state_t |
State of a working instance of the T.43 decoder
typedef struct t43_encode_state_s t43_encode_state_t |
State of a working instance of the T.43 encoder
int t43_decode_free | ( | t43_decode_state_t * | s | ) |
Free a T.43 decode context.
s | The T.43 decode context. |
References t43_decode_release(), and t85_decode_free().
uint32_t t43_decode_get_image_length | ( | t43_decode_state_t * | s | ) |
Get the length of the image.
s | The T.43 context. |
References t85_decode_get_image_length().
uint32_t t43_decode_get_image_width | ( | t43_decode_state_t * | s | ) |
Get the width of the image.
s | The T.43 context. |
References t85_decode_get_image_width().
logging_state_t* t43_decode_get_logging_state | ( | t43_decode_state_t * | s | ) |
Get the logging context associated with a T.43 decode context.
Get the logging context associated with a T.43 decode context.
s | The T.43 decode context. |
References t43_decode_state_s::logging.
t43_decode_state_t* t43_decode_init | ( | t43_decode_state_t * | s, |
t4_row_write_handler_t | handler, | ||
void * | user_data | ||
) |
Prepare to decode an image in T.43 format.
s | The T.43 context. |
handler | A callback routine to handle decoded image rows. |
user_data | An opaque pointer passed to handler. |
int t43_decode_put | ( | t43_decode_state_t * | s, |
const uint8_t | data[], | ||
size_t | len | ||
) |
Decode a chunk of T.43 data.
s | The T.43 context. |
data | The data to be decoded. |
len | The length of the data to be decoded. |
int t43_decode_release | ( | t43_decode_state_t * | s | ) |
Release a T.43 decode context.
s | The T.43 decode context. |
References t85_decode_release().
Referenced by t43_decode_free().
int t43_decode_set_comment_handler | ( | t43_decode_state_t * | s, |
uint32_t | max_comment_len, | ||
t4_row_write_handler_t | handler, | ||
void * | user_data | ||
) |
Set the comment handler routine.
s | The T.43 context. |
max_comment_len | The maximum length of comment to be passed to the handler. |
handler | A callback routine to handle decoded comment. |
user_data | An opaque pointer passed to handler. |
References t85_decode_set_comment_handler().
int t43_decode_set_row_write_handler | ( | t43_decode_state_t * | s, |
t4_row_write_handler_t | handler, | ||
void * | user_data | ||
) |
Set the row handler routine.
s | The T.43 context. |
handler | A callback routine to handle decoded image rows. |
user_data | An opaque pointer passed to handler. |
References t43_decode_state_s::row_write_handler, t85_decode_state_s::row_write_handler, t43_decode_state_s::row_write_user_data, and t85_decode_state_s::row_write_user_data.
Referenced by t4_rx_set_row_write_handler().
int t43_encode_free | ( | t43_encode_state_t * | s | ) |
Free a T.43 encode context.
s | The T.43 encode context. |
References t43_encode_release(), and t85_encode_release().
logging_state_t* t43_encode_get_logging_state | ( | t43_encode_state_t * | s | ) |
Get the logging context associated with a T.43 encode context.
Get the logging context associated with a T.43 encode context.
s | The T.43 encode context. |
References t43_encode_state_s::logging.
int t43_encode_image_complete | ( | t43_encode_state_t * | s | ) |
Check if we are at the end of the current document page.
s | The T.43 context. |
Referenced by t4_tx_image_complete().
t43_encode_state_t* t43_encode_init | ( | t43_encode_state_t * | s, |
uint32_t | image_width, | ||
uint32_t | image_length, | ||
t4_row_read_handler_t | handler, | ||
void * | user_data | ||
) |
Prepare to encode an image in T.43 format.
s | The T.43 context. |
image_width | Image width, in pixels. |
image_length | Image length, in pixels. |
handler | A callback routine to handle encoded image rows. |
user_data | An opaque pointer passed to handler. |
int t43_encode_release | ( | t43_encode_state_t * | s | ) |
Release a T.43 encode context.
s | The T.43 encode context. |
References t85_encode_release().
Referenced by t43_encode_free().
int t43_encode_restart | ( | t43_encode_state_t * | s, |
uint32_t | image_width, | ||
uint32_t | image_length | ||
) |
Restart a T.43 encode context.
s | The T.43 context. |
image | image_width The image width, in pixels. |
image | image_width The image length, in pixels. |