Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
coder.h File Reference

Go to the source code of this file.

Data Structures

struct  SYMBOL
 

Macros

#define MAXIMUM_SCALE   16383 /* Maximum allowed frequency count */
 
#define ESCAPE   256 /* The escape symbol */
 
#define DONE   -1 /* The output stream empty symbol */
 
#define FLUSH   -2 /* The symbol to flush the model */
 

Functions

void initialize_arithmetic_decoder (FILE *stream)
 
void remove_symbol_from_stream (FILE *stream, SYMBOL *s)
 
void initialize_arithmetic_encoder (void)
 
void encode_symbol (FILE *stream, SYMBOL *s)
 
void flush_arithmetic_encoder (FILE *stream)
 
short int get_current_count (SYMBOL *s)
 

Variables

long underflow_bits
 

Macro Definition Documentation

#define DONE   -1 /* The output stream empty symbol */

Definition at line 13 of file coder.h.

#define ESCAPE   256 /* The escape symbol */

Definition at line 12 of file coder.h.

#define FLUSH   -2 /* The symbol to flush the model */

Definition at line 14 of file coder.h.

#define MAXIMUM_SCALE   16383 /* Maximum allowed frequency count */

Definition at line 11 of file coder.h.

Function Documentation

void encode_symbol ( FILE *  stream,
SYMBOL s 
)

Definition at line 54 of file coder.c.

void flush_arithmetic_encoder ( FILE *  stream)

Definition at line 108 of file coder.c.

short int get_current_count ( SYMBOL s)

Definition at line 124 of file coder.c.

void initialize_arithmetic_decoder ( FILE *  stream)

Definition at line 141 of file coder.c.

void initialize_arithmetic_encoder ( void  )

Definition at line 37 of file coder.c.

void remove_symbol_from_stream ( FILE *  stream,
SYMBOL s 
)

Definition at line 161 of file coder.c.

Variable Documentation

long underflow_bits

Definition at line 29 of file coder.c.