Functor used to convert between various pixel formats and color spaces. More...
#include <ConvertFunctors.hpp>
Public Member Functions | |
ConvertColorSpaceFunctor (const PixelData &in, const PixelData &out, cmsUInt32Number intent) | |
A contructor. More... | |
ConvertColorSpaceFunctor (const ConvertColorSpaceFunctor &other) | |
void | operator() (const void *in, void *out) |
Functor used to convert between various pixel formats and color spaces.
The functor uses LittleCMS 2 to do the transformation between two buffers.
It converts one pixel at a time. Therefore it is slower than the ConvertColorSpace function // TODO
It's targeted mainly for cases when it's necessary to transform the pixel value in memory (eg. because there is no input ImageBuffer). Currently it's used within IO to fit the loaded data into a destination buffer.
FotoSHOCKcore::ConvertColorSpaceFunctor::ConvertColorSpaceFunctor | ( | const PixelData & | in, |
const PixelData & | out, | ||
cmsUInt32Number | intent | ||
) |
A contructor.
Initializes transform to transform pixel from one format to another using the LittleCMS 2.
in | format of the input |
out | format of the output |
intent | rendering intent as used within LittleCMS 2 |