#include "defs.h"
Go to the source code of this file.
Defines | |
#define | MAX_BITS_OUTSTANDING ((unsigned long)1<<31) |
Typedefs | |
typedef unsigned long | CodeValue |
typedef unsigned long | FreqValue |
typedef unsigned long | DivValue |
This file contains definitions for arithmetic coding.
Definition in file arithdefs.h.
|
A bound on outBitsOutstanding (see ArithCodec). If outBitsOutstanding ever gets above this number (extremely unlikely) the program will abort with an error message.
Definition at line 95 of file arithdefs.h. Referenced by ArithCodec::arithmeticEncode. |
|
B_BITS of precision. Change these types for different precision calculations. They may affect the speed of the arithmetic operations (multiplcation, division, shift, etc). Definition at line 70 of file arithdefs.h. Referenced by ArithCodec::arithmeticEncode. |
|
B_BITS-F_BITS of precision. Change these types for different precision calculations. They may affect the speed of the arithmetic operations (multiplcation, division, shift, etc). Definition at line 86 of file arithdefs.h. Referenced by ArithCodec::arithmeticEncode. |
|
Data type for handling symbol frequencies. The way the Context class is implemented, the type of FreqValue must be able to accomodate F_BITS+1 bits, instead of F_BITS, to avoid overflows. Ie: For an F_BITS of up to 31, type FreqValue must be 32 bits. Change this types for different precision calculations. It may affect the speed of the arithmetic operations (multiplcation, division, shift, etc). Definition at line 78 of file arithdefs.h. Referenced by ArithCodec::arithmeticEncode, Context::decode, Context::encode, Context::getInterval, Context::halveContext, Context::installSymbol, Context::purgeContext, and Context::setType. |