MDifferentialVLICodec Class Reference
[Module implementations]

Variable-length-integer codec optimized for encoding little-changing sequences. More...

#include <vliCodec.h>

Inheritance diagram for MDifferentialVLICodec:

Inheritance graph
[legend]
Collaboration diagram for MDifferentialVLICodec:

Collaboration graph
[legend]

List of all members.

Public Member Functions

IIntCodec interface
void setPossibilities (int possibilities)
 Sets the number of possible symbols to work with from now on data: [0,possib-1].
void encode (std::vector< int > &data, std::ostream &file)
 Codes data and sends them into a stream.
void decode (std::istream &file, int count, std::vector< int > &data)
 Reads count symbols from file, decodes them and fills in data.
void writeSettings (std::ostream &file)
 Write all settings needed (doesn't include possibilities set).
void readSettings (std::istream &file)
 Read all settings needed (doesn't include possibilities set).

Private Types

enum  Settings
 Indices for settings.

Private Attributes

int possib
 the number of possibilities set by setPossibilities
int lastSymbol
 the last encoded symbol (possib/2 at the beginning)


Detailed Description

Variable-length-integer codec optimized for encoding little-changing sequences.

It lets user choose the number of first-level symbols.

Definition at line 12 of file vliCodec.h.


The documentation for this class was generated from the following files:

Generated on Thu Aug 6 22:33:14 2009 for Fractal Image Compressor by  doxygen 1.5.8