MSquarePixels Class Reference
[Module implementations]

A simple shape transformer using square pixels. More...

#include <squarePixels.h>

Inheritance diagram for MSquarePixels:

Inheritance graph
[legend]
Collaboration diagram for MSquarePixels:

Collaboration graph
[legend]

List of all members.

Public Member Functions

IShapeTransformer interface
int createJobs (const PlaneList &planes)
 Creates jobs from the list of color planes, returns job count.
int jobCount ()
 Returns the number of jobs.
void jobEncode (int jobIndex)
 Starts encoding a job - thread-safe (for different jobs).
void jobDecodeAct (int jobIndex, DecodeAct action, int count=1)
 Performs a decoding action for a job - thread-safe (for different jobs).
void writeSettings (std::ostream &file)
 Writes all settings (shared by all jobs) needed for later reconstruction.
void readSettings (std::istream &file)
 Reads settings (shared by all jobs) needed for reconstruction from a stream - needs to be done before the job creation.
int phaseCount ()
 Returns the number of phases (progressive encoding), only depends on settings.
void writeJobs (std::ostream &file, int phaseBegin, int phaseEnd)
 Writes any data needed for reconstruction of every job, phase parameters determine the range of saved phases.
void readJobs (std::istream &file, int phaseBegin, int phaseEnd)
 Reads all data needed for reconstruction of every job and prepares for encoding, parameters like writeJobs.

Protected Types

enum  Settings
 Indices for settings.

Protected Member Functions

 ~MSquarePixels ()
 Only frees jobs.

Protected Attributes

std::vector< PlaneBlockjobs
 Encoding jobs - one part of one color plane makes one job.


Detailed Description

A simple shape transformer using square pixels.

It allows to choose modules of types ISquareRanges, ISquareDomains and ISquareEncoder for subsequent coding. It can split the planes into rectangles - max. size is a parameter.

Definition at line 11 of file squarePixels.h.


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

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