28 #if !defined(_SPANDSP_T4_T6_ENCODE_H_) 29 #define _SPANDSP_T4_T6_ENCODE_H_ 33 #if defined(__cplusplus) 147 #if defined(__cplusplus) uint32_t t4_t6_encode_get_image_width(t4_t6_encode_state_t *s)
Get the width of the image.
Definition: t4_t6_encode.c:1050
int t4_t6_encode_get(t4_t6_encode_state_t *s, uint8_t buf[], int max_len)
Get the next chunk of the current document page. The document will be padded for the current minimum ...
Definition: t4_t6_encode.c:952
int t4_t6_encode_restart(t4_t6_encode_state_t *s, int image_width, int image_length)
Restart a T.4 or T.6 encode context.
Definition: t4_t6_encode.c:1118
uint32_t t4_t6_encode_get_image_length(t4_t6_encode_state_t *s)
Get the length of the image.
Definition: t4_t6_encode.c:1056
int t4_t6_encode_get_bit(t4_t6_encode_state_t *s)
Get the next bit of the current image. The image will be padded for the current minimum scan line tim...
Definition: t4_t6_encode.c:933
void t4_t6_encode_set_min_bits_per_row(t4_t6_encode_state_t *s, int bits)
Set the minimum number of encoded bits per row. This allows the makes the encoding process to be set ...
Definition: t4_t6_encode.c:1002
int t4_t6_encode_set_image_width(t4_t6_encode_state_t *s, int image_width)
Set the width of the image.
Definition: t4_t6_encode.c:1017
int t4_t6_encode_get_compressed_image_size(t4_t6_encode_state_t *s)
Get the size of the compressed image, in bits.
Definition: t4_t6_encode.c:1062
int t4_t6_encode_set_row_read_handler(t4_t6_encode_state_t *s, t4_row_read_handler_t handler, void *user_data)
Set the row read handler for a T.4/T.6 encode context.
Definition: t4_t6_encode.c:974
int encoding
The type of compression used.
Definition: private/t4_t6_encode.h:40
int t4_t6_encode_image_complete(t4_t6_encode_state_t *s)
Return the next bit of the current document page, without actually moving forward in the buffer...
Definition: t4_t6_encode.c:922
void t4_t6_encode_set_max_2d_rows_per_1d_row(t4_t6_encode_state_t *s, int max)
Set the maximum number of 2D encoded rows between 1D encoded rows. This is only valid for T...
Definition: t4_t6_encode.c:1068
int t4_t6_encode_set_encoding(t4_t6_encode_state_t *s, int encoding)
Set the encoding for the encoded data.
Definition: t4_t6_encode.c:982
Definition: private/logging.h:33
int image_width
Width of the current page, in pixels.
Definition: private/t4_t6_encode.h:42
t4_t6_encode_state_t * t4_t6_encode_init(t4_t6_encode_state_t *s, int encoding, int image_width, int image_length, t4_row_read_handler_t handler, void *user_data)
Prepare to encode an image in T.4 or T.6 format.
Definition: t4_t6_encode.c:1146
logging_state_t * t4_t6_encode_get_logging_state(t4_t6_encode_state_t *s)
Get the logging context associated with a T.4 or T.6 encode context.
Definition: t4_t6_encode.c:1112
int t4_t6_encode_set_image_length(t4_t6_encode_state_t *s, int image_length)
Set the length of the image.
Definition: t4_t6_encode.c:1044
Definition: private/t4_t6_encode.h:32
int image_length
Length of the current page, in pixels.
Definition: private/t4_t6_encode.h:50
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition: t4_tx.h:34