#include <arithcodecbase.h>
Inheritance diagram for ArithCodecBase:
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 | |
IODevice * | outputDevice |
Output device. | |
IODevice * | inputDevice |
Input device. |
Inherit this class whenever you want to create a new arithmetic coding class.
Definition at line 41 of file arithcodecbase.h.