Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoConvolutionOp.h
Show All 30 Lines | |||||
31 | class KoConvolutionOp | 31 | class KoConvolutionOp | ||
32 | { | 32 | { | ||
33 | public: | 33 | public: | ||
34 | virtual ~KoConvolutionOp() { } | 34 | virtual ~KoConvolutionOp() { } | ||
35 | /** | 35 | /** | ||
36 | * Convolve the colors. | 36 | * Convolve the colors. | ||
37 | * | 37 | * | ||
38 | * @param colors a pointer toward the source pixels | 38 | * @param colors a pointer toward the source pixels | ||
39 | * @param kernelValues the coeffient of the source pixels | 39 | * @param kernelValues the coefficient of the source pixels | ||
40 | * @param dst the destination pixel | 40 | * @param dst the destination pixel | ||
41 | * @param factor usually the factor is equal to the sum of kernelValues | 41 | * @param factor usually the factor is equal to the sum of kernelValues | ||
42 | * @param offset the offset which is added to the result, useful | 42 | * @param offset the offset which is added to the result, useful | ||
43 | * when the sum of kernelValues is equal to 0 | 43 | * when the sum of kernelValues is equal to 0 | ||
44 | * @param nColors the number of pixels in the colors array | 44 | * @param nColors the number of pixels in the colors array | ||
45 | * @param channelFlags determines which channels are affected in pixel order | 45 | * @param channelFlags determines which channels are affected in pixel order | ||
46 | * | 46 | * | ||
47 | * This function is thread-safe. | 47 | * This function is thread-safe. | ||
48 | * | 48 | * | ||
49 | */ | 49 | */ | ||
50 | virtual void convolveColors(const quint8* const* colors, const qreal* kernelValues, quint8 *dst, qreal factor, qreal offset, qint32 nColors, const QBitArray & channelFlags) const = 0; | 50 | virtual void convolveColors(const quint8* const* colors, const qreal* kernelValues, quint8 *dst, qreal factor, qreal offset, qint32 nColors, const QBitArray & channelFlags) const = 0; | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | #endif | 53 | #endif |