28#if !defined(_SPANDSP_T43_H_)
29#define _SPANDSP_T43_H_
46 T43_IMAGE_TYPE_RGB_BILEVEL = 0,
47 T43_IMAGE_TYPE_CMY_BILEVEL = 1,
48 T43_IMAGE_TYPE_CMYK_BILEVEL = 2,
49 T43_IMAGE_TYPE_8BIT_COLOUR_PALETTE = 16,
50 T43_IMAGE_TYPE_12BIT_COLOUR_PALETTE = 17,
51 T43_IMAGE_TYPE_GRAY = 32,
52 T43_IMAGE_TYPE_COLOUR = 48
55#if defined(__cplusplus)
60SPAN_DECLARE(
const char *) t43_image_type_to_str(
int type);
67SPAN_DECLARE(
int) t43_encode_set_image_width(
t43_encode_state_t *s, uint32_t image_width);
75SPAN_DECLARE(
void) t43_encode_comment(
t43_encode_state_t *s,
const uint8_t comment[],
size_t len);
115 uint32_t image_width,
116 uint32_t image_length,
155 uint32_t max_comment_len,
202#if defined(__cplusplus)
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/t43.h:62
Definition private/t43.h:31
int t43_encode_image_complete(t43_encode_state_t *s)
Check if we are at the end of the current document page.
Definition t43.c:261
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.
Definition t43.c:820
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.
Definition t43.c:832
int t43_decode_put(t43_decode_state_t *s, const uint8_t data[], size_t len)
Decode a chunk of T.43 data.
Definition t43.c:740
logging_state_t * t43_encode_get_logging_state(t43_encode_state_t *s)
Get the logging context associated with a T.43 encode context.
Definition t43.c:301
int t43_encode_release(t43_encode_state_t *s)
Release a T.43 encode context.
Definition t43.c:345
int t43_decode_free(t43_decode_state_t *s)
Free a T.43 decode context.
Definition t43.c:934
int t43_decode_release(t43_decode_state_t *s)
Release a T.43 decode context.
Definition t43.c:927
uint32_t t43_decode_get_image_width(t43_decode_state_t *s)
Get the width of the image.
Definition t43.c:849
int t43_encode_restart(t43_encode_state_t *s, uint32_t image_width, uint32_t image_length)
Restart a T.43 encode context.
Definition t43.c:307
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.
Definition t43.c:313
logging_state_t * t43_decode_get_logging_state(t43_decode_state_t *s)
Get the logging context associated with a T.43 decode context.
Definition t43.c:867
struct t43_encode_state_s t43_encode_state_t
Definition t43.h:39
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.
Definition t43.c:891
struct t43_decode_state_s t43_decode_state_t
Definition t43.h:42
int t43_encode_free(t43_encode_state_t *s)
Free a T.43 encode context.
Definition t43.c:352
uint32_t t43_decode_get_image_length(t43_decode_state_t *s)
Get the length of the image.
Definition t43.c:855
int(* t4_row_write_handler_t)(void *user_data, const uint8_t buf[], size_t len)
Definition t4_rx.h:46
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:34