28#if !defined(_SPANDSP_T4_T6_ENCODE_H_)
29#define _SPANDSP_T4_T6_ENCODE_H_
33#if defined(__cplusplus)
57SPAN_DECLARE(
int)
t4_t6_encode_get(t4_t6_encode_state_t *s, uint8_t buf[],
int max_len);
143SPAN_DECLARE(
int) t4_t6_encode_release(t4_t6_encode_state_t *s);
145SPAN_DECLARE(
int) t4_t6_encode_free(t4_t6_encode_state_t *s);
147#if defined(__cplusplus)
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/t4_t6_encode.h:33
int image_length
Length of the current page, in pixels.
Definition private/t4_t6_encode.h:50
int encoding
The type of compression used.
Definition private/t4_t6_encode.h:40
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:1110
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:1122
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: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:1073
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:1104
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:1209
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:980
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:1175
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:1028
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:1128
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:1057
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:1116
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:1181
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:1036
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:967
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:34