#include <squarePixels.h>
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< PlaneBlock > | jobs |
Encoding jobs - one part of one color plane makes one job. |
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.