template<typename _channel_type_, typename traits>
class KisColorToFloatConvertor< _channel_type_, traits >
Definition at line 32 of file kis_qmic_simple_convertor.cpp.
template<typename _channel_type_ , typename traits >
This function apply the transformation on a given number of pixels.
- Parameters
-
| src | a pointer to the source pixels |
| dst | a pointer to the destination pixels |
| nPixels | the number of pixels |
This function may or may not be thread safe. You need to create one KoColorTransformation per thread.
Implements KoColorTransformation.
Definition at line 46 of file kis_qmic_simple_convertor.cpp.
47 {
48 const float gmicUnitValue2KritaUnitValue =
50
51 const auto *srcPixel =
reinterpret_cast<const RGBPixel *
>(
src);
52 auto *dstPixel = reinterpret_cast<KoRgbF32Traits::Pixel *>(dst);
53
54 while (nPixels > 0) {
55 dstPixel->red =
57 dstPixel->green =
59 dstPixel->blue =
61 dstPixel->alpha =
63
64 --nPixels;
65 ++srcPixel;
66 ++dstPixel;
67 }
68 }
typename RGBTrait::Pixel RGBPixel
#define SCALE_TO_FLOAT(v)
References KisColorToFloatConvertor< _channel_type_, traits >::m_gmicUnitValue, and SCALE_TO_FLOAT.