Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
statistics.h File Reference
#include "types.h"

Go to the source code of this file.

Data Structures

struct  statistics
 Structure that saves statistics for each tree node in the encoder. More...
 

Typedefs

typedef struct statisticsstatistics_t
 Structure that saves statistics for each tree node in the encoder. More...
 

Functions

statistics_t allocStatistics ()
 Creates and initializes a new statistics structure instance. More...
 
void freeStatistics (statistics_t)
 Deletes a statistics structure instance. More...
 
statistics_t getStatistics ()
 Returns a new statistics structure, can be created or obtained from the buffer. More...
 
void returnStatistics (statistics_t)
 Puts a statistics structure that is no longer used into the buffer. More...
 
void freeBuffer ()
 Deletes all statistics stored in the buffer. More...
 

Typedef Documentation

typedef struct statistics * statistics_t

Structure that saves statistics for each tree node in the encoder.

Function Documentation

statistics_t allocStatistics ( )

Creates and initializes a new statistics structure instance.

Returns
a new statistics instance.

Definition at line 29 of file statistics.c.

void freeBuffer ( )

Deletes all statistics stored in the buffer.

Definition at line 74 of file statistics.c.

void freeStatistics ( statistics_t  st)

Deletes a statistics structure instance.

Parameters
[in]ststatistics to delete.

Definition at line 42 of file statistics.c.

statistics_t getStatistics ( )

Returns a new statistics structure, can be created or obtained from the buffer.

Returns
a statistics instace

Definition at line 51 of file statistics.c.

void returnStatistics ( statistics_t  st)

Puts a statistics structure that is no longer used into the buffer.

Parameters
[in]stthe statistics to return to the buffer

Definition at line 66 of file statistics.c.