#include <colorModel.h>


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 | |
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.
| 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.
1.5.8