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);
114SPAN_DECLARE(v42bis_state_t *) v42bis_init(v42bis_state_t *s,
119 void *encode_user_data,
122 void *decode_user_data,
128SPAN_DECLARE(
int) v42bis_release(v42bis_state_t *s);
133SPAN_DECLARE(
int) v42bis_free(v42bis_state_t *s);
135#if defined(__cplusplus)
void(* put_msg_func_t)(void *user_data, const uint8_t *msg, int len)
Definition async.h:93
Definition private/v42bis.h:116