Context algorithm
Semi-predictive context algorithm implementation
|
#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 statistics * | statistics_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 struct statistics * statistics_t |
Structure that saves statistics for each tree node in the encoder.
statistics_t allocStatistics | ( | ) |
Creates and initializes a new statistics structure 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.
[in] | st | statistics 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.
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.
[in] | st | the statistics to return to the buffer |
Definition at line 66 of file statistics.c.