34#if !defined(_SPANDSP_V42BIS_H_)
35#define _SPANDSP_V42BIS_H_
37#define V42BIS_MIN_STRING_SIZE 6
38#define V42BIS_MAX_STRING_SIZE 250
39#define V42BIS_MIN_DICTIONARY_SIZE 512
40#define V42BIS_MAX_BITS 12
41#define V42BIS_MAX_CODEWORDS 4096
42#define V42BIS_MAX_OUTPUT_LENGTH 1024
46 V42BIS_P0_NEITHER_DIRECTION = 0,
47 V42BIS_P0_INITIATOR_RESPONDER,
48 V42BIS_P0_RESPONDER_INITIATOR,
49 V42BIS_P0_BOTH_DIRECTIONS
54 V42BIS_COMPRESSION_MODE_DYNAMIC = 0,
55 V42BIS_COMPRESSION_MODE_ALWAYS,
56 V42BIS_COMPRESSION_MODE_NEVER
65#if defined(__cplusplus)
75SPAN_DECLARE(
int) v42bis_compress(v42bis_state_t *s,
const uint8_t buf[],
int len);
80SPAN_DECLARE(
int) v42bis_compress_flush(v42bis_state_t *s);
87SPAN_DECLARE(
int) v42bis_decompress(v42bis_state_t *s,
const uint8_t buf[],
int len);
92SPAN_DECLARE(
int) v42bis_decompress_flush(v42bis_state_t *s);
100SPAN_DECLARE(
void) v42bis_compression_control(v42bis_state_t *s,
int mode);
106SPAN_DECLARE(
logging_state_t *) v42bis_get_logging_state(v42bis_state_t *s);
120SPAN_DECLARE(v42bis_state_t *) v42bis_init(v42bis_state_t *s,
125 void *encode_user_data,
128 void *decode_user_data,
134SPAN_DECLARE(
int) v42bis_release(v42bis_state_t *s);
139SPAN_DECLARE(
int) v42bis_free(v42bis_state_t *s);
141#if defined(__cplusplus)
void(* span_put_msg_func_t)(void *user_data, const uint8_t *msg, int len)
Definition async.h:107
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/v42bis.h:116