28 #if !defined(_SPANDSP_T4_T6_DECODE_H_) 29 #define _SPANDSP_T4_T6_DECODE_H_ 44 #if defined(__cplusplus) 114 #if defined(__cplusplus) 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.
Definition: t4_t6_decode.c:735
Definition: private/t4_t6_decode.h:32
int t4_t6_decode_set_encoding(t4_t6_decode_state_t *s, int encoding)
Set the encoding for the encoded data.
Definition: t4_t6_decode.c:745
int image_width
Width of the current page, in pixels.
Definition: private/t4_t6_decode.h:42
int t4_t6_decode_get_compressed_image_size(t4_t6_decode_state_t *s)
Get the size of the compressed image, in bits.
Definition: t4_t6_decode.c:771
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.
Definition: t4_t6_decode.c:694
int t4_t6_decode_put_bit(t4_t6_decode_state_t *s, int bit)
Put a bit of the current document page.
Definition: t4_t6_decode.c:680
uint32_t t4_t6_decode_get_image_width(t4_t6_decode_state_t *s)
Get the width of the image.
Definition: t4_t6_decode.c:759
int encoding
The type of compression used between the FAX machines.
Definition: private/t4_t6_decode.h:40
Definition: private/logging.h:33
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.
Definition: t4_t6_decode.c:777
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.
Definition: t4_t6_decode.c:855
uint32_t t4_t6_decode_get_image_length(t4_t6_decode_state_t *s)
Get the length of the image.
Definition: t4_t6_decode.c:765
int(* t4_row_write_handler_t)(void *user_data, const uint8_t buf[], size_t len)
Definition: t4_rx.h:46