Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoColorConversionTransformation.h
Context not available. | |||||
116 | ConversionFlags conversionFlags() const; | 116 | ConversionFlags conversionFlags() const; | ||
---|---|---|---|---|---|
117 | 117 | | |||
118 | /** | 118 | /** | ||
119 | * perform the color conversion between two buffers. | 119 | * perform the color conversion between two buffers. Make sure that | ||
120 | * \p src is not the same as \p dst! | ||||
120 | * @param nPixels the number of pixels in the buffers. | 121 | * @param nPixels the number of pixels in the buffers. | ||
121 | */ | 122 | */ | ||
122 | void transform(const quint8 *src, quint8 *dst, qint32 nPixels) const override = 0; | 123 | void transform(const quint8 *src, quint8 *dst, qint32 nPixels) const override = 0; | ||
123 | 124 | | |||
125 | /** | ||||
126 | * perform the color conversion between two or one buffer. This is a convenience | ||||
127 | * function that allows doing the conversion in-place | ||||
128 | * @param nPixels the number of pixels in the buffers. | ||||
129 | */ | ||||
130 | void transformInPlace(const quint8 *src, quint8 *dst, qint32 nPixels) const; | ||||
131 | | ||||
124 | /** | 132 | /** | ||
125 | * @return false if the transformation is not valid | 133 | * @return false if the transformation is not valid | ||
126 | */ | 134 | */ | ||
Context not available. |