Definition at line 40 of file indexcolors.h.
| void KisIndexColorTransformation::transform |
( |
const quint8 * | src, |
|
|
quint8 * | dst, |
|
|
qint32 | nPixels ) const |
|
overridevirtual |
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 107 of file indexcolors.cpp.
108{
111 return;
112 }
113
114 union
115 {
116 quint16 laba[4];
118 } clr;
119 while (nPixels--)
120 {
124 {
127 }
131 }
132}
virtual void toLabA16(const quint8 *src, quint8 *dst, quint32 nPixels) const
virtual void fromLabA16(const quint8 *src, quint8 *dst, quint32 nPixels) const
LabColor getNearestIndex(LabColor clr) const
References KoColorSpace::fromLabA16(), IndexColorPalette::getNearestIndex(), m_alphaHalfStep, m_alphaStep, m_colorSpace, m_palette, m_psize, IndexColorPalette::numColors(), KoColorSpace::pixelSize(), and KoColorSpace::toLabA16().