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

ArithCodecBase Class Reference

Abstract predecessor to all arithmetic coding classes. More...

#include <arithcodecbase.h>

Inheritance diagram for ArithCodecBase:

ArithCodec List of all members.

Public Methods

virtual void setOutputDevice (IODevice *device)
 Set the output device for arithmetic coder/decoder.

virtual void setInputDevice (IODevice *device)
 Set the input device for arithmetic coder/decoder.

virtual void arithmeticEncode (FreqValue, FreqValue, FreqValue)=0
 Main encoding routine.

virtual FreqValue arithmeticDecodeTarget (FreqValue)=0
 Decode the target value using the current total frequency and the coder's state variables.

virtual void arithmeticDecode (FreqValue, FreqValue, FreqValue)=0
 Decode the next input symbol.

virtual void startEncode (void)=0
 Start the encoder.

virtual void finishEncode (void)=0
 Finish encoding.

virtual void startDecode (void)=0
 Start the decoder.

virtual void finishDecode (void)=0
 Finish decoding.

virtual void startOutputtingBits (void)=0
 Initialize the bit output function.

virtual void startInputtingBits (void)=0
 Start the bit input function.

virtual void doneOutputtingBits (void)=0
 Complete outputting bits.

virtual void doneInputtingBits (void)=0
 Complete inputting bits.

virtual size_t numberOfOutputBytes (void)=0
 Return the number of output bytes.


Protected Attributes

IODeviceoutputDevice
 Output device.

IODeviceinputDevice
 Input device.


Detailed Description

Abstract predecessor to all arithmetic coding classes.

Inherit this class whenever you want to create a new arithmetic coding class.

Definition at line 41 of file arithcodecbase.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 5 10:43:04 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002