26#if !defined(_SPANDSP_PRIVATE_V42BIS_H_)
27#define _SPANDSP_PRIVATE_V42BIS_H_
85 uint8_t
string[V42BIS_MAX_STRING_SIZE];
void(* put_msg_func_t)(void *user_data, const uint8_t *msg, int len)
Definition async.h:93
struct logging_state_s logging_state_t
Definition logging.h:75
Definition private/v42bis.h:51
uint16_t last_matched
The last entry matched in the dictionary.
Definition private/v42bis.h:74
int max_output_len
The maximum amount to be passed to the data handler.
Definition private/v42bis.h:61
void * user_data
An opaque pointer passed in calls to the data handler.
Definition private/v42bis.h:59
int escaped
TRUE if we just hit an escape code, and are waiting for the following octet.
Definition private/v42bis.h:108
v42bis_dict_node_t dict[V42BIS_MAX_CODEWORDS]
The dictionary.
Definition private/v42bis.h:82
int output_octet_count
The length of the contents of the output composition buffer.
Definition private/v42bis.h:103
put_msg_func_t handler
Callback function to handle output data.
Definition private/v42bis.h:57
int v42bis_parm_n2
Total number of codewords in the dictionary.
Definition private/v42bis.h:78
uint16_t compression_performance
Compression performance metric.
Definition private/v42bis.h:93
uint16_t v42bis_parm_c3
Threshold for codeword size change.
Definition private/v42bis.h:70
uint32_t bit_buffer
Outgoing bit buffer (compression), or incoming bit buffer (decompression)
Definition private/v42bis.h:96
int v42bis_parm_p0
Compression enabled.
Definition private/v42bis.h:53
int string_length
The current length of the octet string in progress.
Definition private/v42bis.h:87
uint8_t output_buf[V42BIS_MAX_OUTPUT_LENGTH]
The output composition buffer.
Definition private/v42bis.h:101
int transparent
TRUE if we are in transparent (i.e. uncompressable) mode.
Definition private/v42bis.h:64
int flushed_length
The amount of the octet string in progress which has already been flushed out of the buffer.
Definition private/v42bis.h:90
uint16_t v42bis_parm_c1
Next empty dictionary entry.
Definition private/v42bis.h:66
int bit_count
Outgoing bit count (compression), or incoming bit count (decompression)
Definition private/v42bis.h:98
uint8_t escape_code
The current value of the escape code.
Definition private/v42bis.h:106
uint16_t v42bis_parm_c2
Current codeword size.
Definition private/v42bis.h:68
int compression_mode
Compression mode.
Definition private/v42bis.h:55
uint16_t update_at
The current update point in the dictionary.
Definition private/v42bis.h:72
int v42bis_parm_n7
Maximum permitted string length.
Definition private/v42bis.h:80
uint16_t last_added
The last entry added to the dictionary.
Definition private/v42bis.h:76
Definition private/v42bis.h:35
uint16_t parent
The parent of this node.
Definition private/v42bis.h:39
uint8_t node_octet
The value of the octet represented by the current dictionary node.
Definition private/v42bis.h:37
uint16_t next
The next node at the same depth.
Definition private/v42bis.h:43
uint16_t child
The first child of this node.
Definition private/v42bis.h:41
Definition private/v42bis.h:116
logging_state_t logging
Error and flow logging control.
Definition private/v42bis.h:123
v42bis_comp_state_t decompress
Decompression state.
Definition private/v42bis.h:120
v42bis_comp_state_t compress
Compression state.
Definition private/v42bis.h:118