Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

arithdefs.h File Reference

Definitions for arithmetic coding. More...

#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


Detailed Description

Definitions for arithmetic coding.

This file contains definitions for arithmetic coding.

Definition in file arithdefs.h.


Define Documentation

#define MAX_BITS_OUTSTANDING   ((unsigned long)1<<31)
 

A bound on outBitsOutstanding (see ArithCodec). If outBitsOutstanding ever gets above this number (extremely unlikely) the program will abort with an error message.

See also:
ArithCodec::outBitsOutstanding

Definition at line 95 of file arithdefs.h.

Referenced by ArithCodec::arithmeticEncode.


Typedef Documentation

typedef unsigned long CodeValue
 

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.

typedef unsigned long DivValue
 

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.

typedef unsigned long FreqValue
 

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.


Generated on Wed Feb 5 10:43:03 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002