MColorModel Class Reference
[Module implementations]

Simple color transformer for affine models. More...

#include <colorModel.h>

Inheritance diagram for MColorModel:

Inheritance graph
[legend]
Collaboration diagram for MColorModel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

IColorTransformer interface
PlaneList image2planes (const QImage &toEncode, const PlaneSettings &prototype)
 Splits an image into color-planes and adjusts their settings (from prototype).
QImage planes2image ()
 Merges planes back into a color image (only useful when decoding).
void writeData (std::ostream &file)
 Writes any data needed for plane reconstruction to a stream.
PlaneList readData (std::istream &file, const PlaneSettings &prototype)
 Reads any data needed for plane reconstruction from a stream and creates the plane list.

Protected Types

enum  Settings
 Indices for settings.

Protected Member Functions

 ~MColorModel ()
 Just frees ownedPlanes.
PlaneList createPlanes (IRoot::Mode mode, const PlaneSettings &prototype)
 Creates a list of planes according to prototype, makes new matrices and adjusts encoding parameters.

Protected Attributes

PlaneList ownedPlanes
 the list of color planes, owned by the module


Detailed Description

Simple color transformer for affine models.

It currently supports RGB and YCbCr color models and allows to se quality multipliers for individual color channels.

Definition at line 10 of file colorModel.h.


Member Function Documentation

MColorModel::PlaneList MColorModel::image2planes ( const QImage &  toEncode,
const PlaneSettings &  prototype 
) [virtual]

Splits an image into color-planes and adjusts their settings (from prototype).

It should call UpdateInfo::incMaxProgress with the total pixel count.

Implements IColorTransformer.

Definition at line 10 of file colorModel.cpp.

References IRoot::Encode.


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