Uint * count
List with the number of occurrences of each character in this state.
void freeBuffer()
Deletes all statistics stored in the buffer.
Uint alphasize
Alphabet size.
unsigned char Uchar
Unsigned char type.
double cost
Cost assigned to this subtree.
#define POPNODE(N)
Pops an element out of the stack.
#define FREE(P)
Frees a block of memory and makes the pointer NULL.
#define CALLOC(S, T, N)
Allocs a new block of memory and sets all its bits to zero.
unsigned long Uint
Unsigned int type.
Uint symbolCount
Number of occuring symbols.
statistics_t getStatistics()
Returns a new statistics structure, can be created or obtained from the buffer.
statistics_t allocStatistics()
Creates and initializes a new statistics structure instance.
Structure that saves statistics for each tree node in the encoder.
void returnStatistics(statistics_t st)
Puts a statistics structure that is no longer used into the buffer.
void freeStatistics(statistics_t st)
Deletes a statistics structure instance.
Uchar * symbols
List of occuring symbols.
#define NOTSTACKEMPTY
Indicates if the stack is empty.
#define PUSHNODE(N)
Pushes a new item to the stack.