FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
FotoSHOCKcore::ConvertColorSpaceFunctor Class Reference

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
informat of the input
outformat of the output
intentrendering intent as used within LittleCMS 2

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