ISquareEncoder Struct Reference
[Interfaces for coding modules]

Interface for square encoders - maintaining mappings from square domains to square ranges. More...

#include <interfaces.h>

Inheritance diagram for ISquareEncoder:

Inheritance graph
[legend]
Collaboration diagram for ISquareEncoder:

Collaboration graph
[legend]

List of all members.

Classes

struct  LevelPoolInfo
 Used by encoders, represents information about a domain pool on a level. More...

Public Types

typedef std::vector
< std::vector< LevelPoolInfo > > 
LevelPoolInfos
 [level][pool] -> LevelPoolInfo (the levels are zoomed).

Public Member Functions

virtual void initialize (IRoot::Mode mode, PlaneBlock &planeBlock)=0
 Initializes the module for encoding or decoding of a PlaneBlock.
virtual float findBestSE (const RangeNode &range, bool allowHigherSE=false)=0
 Finds mapping with the best square error for a range (returns the SE), data neccessary for decoding are stored in RangeNode.encoderData.
virtual void finishEncoding ()=0
 Finishes encoding - to be ready for saving or decoding (can do some cleanup).
virtual void decodeAct (DecodeAct action, int count=1)=0
 Performs a decoding action.
virtual void writeSettings (std::ostream &file)=0
 Write all settings needed for reconstruction (don't depend on encoded thing).
virtual void readSettings (std::istream &file)=0
 Read all settings, opposite to writeSettings.
virtual int phaseCount () const =0
 Returns the number of phases (progressive encoding), only depends on settings.
virtual void writeData (std::ostream &file, int phase)=0
 Write one phase of data needed for reconstruction (excluding settings).
virtual void readData (std::istream &file, int phase)=0
 Reads one phase of data needed for recostruction, assumes the settings have been read previously via readSettings.


Detailed Description

Interface for square encoders - maintaining mappings from square domains to square ranges.

Definition at line 324 of file interfaces.h.


Member Typedef Documentation

typedef std::vector< std::vector<LevelPoolInfo> > ISquareEncoder::LevelPoolInfos

[level][pool] -> LevelPoolInfo (the levels are zoomed).

For every used level contains for all domain pools precomputed densities and the domain-ID boundaries

Definition at line 335 of file interfaces.h.


The documentation for this struct was generated from the following file:

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