|
Arithmetic coding tutorial code
1
AC
|
#include "arith_code_config.hh"

Go to the source code of this file.
Data Structures | |
| class | AC::Base |
| class | AC::Encoder |
| class | AC::Decoder |
Namespaces | |
| AC | |
Macros | |
| #define | AC_PRI_I_t PRId32 |
| macro for printf for I_t More... | |
| #define | AC_PRI_long_I_t PRId64 |
| macro for printf for long_I_t More... | |
| #define | AC_SIZE 32 |
| #define | AC_PRI_F_t AC_PRI_I_t |
| macro for printf for F_t More... | |
Typedefs | |
| typedef uint32_t | AC::I_t |
| types for variables defining intervals More... | |
| typedef uint64_t | AC::long_I_t |
| typedef I_t | AC::F_t |
| types for variables defining frequencies More... | |
| typedef std::pair< I_t, I_t > | AC::interval_t |
| struct to represent an interval More... | |
| typedef std::function< void(int, void *)> | AC::output_callback_t |
| type for callbacks More... | |
| typedef std::function< int(void *)> | AC::input_callback_t |
| type for bit reader call More... | |
Functions | |
| void | AC::freq2cum_freq (F_t cum_freq[], F_t freq[], int max_symb, int assert_non_zero=1) |
| computes the cumulative cum_freq given the frequencies of symbols More... | |
Variables | |
| const int | AC::NO_SYMBOL = -1 |
| value that represents a non symbol More... | |
| const int | AC::FLUSH_SYMBOL = -2 |
| const int | AC::MIN_SYMBOL = 0 |
| const I_t | AC::MAX_FREQ = ((I_t)1) << (AC_representation_bitsize-2) |
| the sum of all frequencies of symbols cannot exceed this value More... | |
| #define AC_PRI_F_t AC_PRI_I_t |
macro for printf for F_t
| #define AC_PRI_I_t PRId32 |
macro for printf for I_t
| #define AC_PRI_long_I_t PRId64 |
macro for printf for long_I_t
| #define AC_SIZE 32 |
1.8.13