|
Krita Source Code Documentation
|
#include <KoMixColorsOp.h>
Inheritance diagram for KoMixColorsOp::Mixer:Public Member Functions | |
| virtual void | accumulate (const quint8 *data, const qint16 *weights, int weightSum, int nPixels)=0 |
| virtual void | accumulateAverage (const quint8 *data, int nPixels)=0 |
| virtual void | computeMixedColor (quint8 *data)=0 |
| virtual qint64 | currentWeightsSum () const =0 |
| virtual | ~Mixer () |
An accumulator-like object for mixing color without copying and allocations
Definition at line 24 of file KoMixColorsOp.h.
|
inlinevirtual |
Definition at line 27 of file KoMixColorsOp.h.
|
pure virtual |
Add nPixels pixels pointed by data to the mixing sum. The passed pixels are weighted by coefficients in weights.
Implemented in KoMixColorsOpImpl< _CSTrait >::MixerImpl.
|
pure virtual |
Add nPixels pixels pointed by data to the mixing sum. The passed pixels are weighted uniformly, that is, each pixel has implicit weight of 1.
Implemented in KoMixColorsOpImpl< _CSTrait >::MixerImpl.
|
pure virtual |
Calculate the final mixed color. This function may be called as many times as needed on any stage of the mixing.
Implemented in KoMixColorsOpImpl< _CSTrait >::MixerImpl.
|
pure virtual |
Return the current sum of the weights of the averaging algorithm. That might be needed to make a decision whether we had a meaningful amount of data passed.
Implemented in KoMixColorsOpImpl< _CSTrait >::MixerImpl.