|
Krita Source Code Documentation
|
#include <KoMixColorsOpImpl.h>
Inheritance diagram for KoMixColorsOpImpl< _CSTrait >::MixerImpl:Public Member Functions | |
| void | accumulate (const quint8 *data, const qint16 *weights, int weightSum, int nPixels) override |
| void | accumulateAverage (const quint8 *data, int nPixels) override |
| void | computeMixedColor (quint8 *data) override |
| qint64 | currentWeightsSum () const override |
| MixerImpl () | |
Public Member Functions inherited from KoMixColorsOp::Mixer | |
| virtual | ~Mixer () |
Private Attributes | |
| MixDataResult | result |
Definition at line 309 of file KoMixColorsOpImpl.h.
|
inline |
Definition at line 312 of file KoMixColorsOpImpl.h.
|
inlineoverridevirtual |
Add nPixels pixels pointed by data to the mixing sum. The passed pixels are weighted by coefficients in weights.
Implements KoMixColorsOp::Mixer.
Definition at line 316 of file KoMixColorsOpImpl.h.
|
inlineoverridevirtual |
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.
Implements KoMixColorsOp::Mixer.
Definition at line 321 of file KoMixColorsOpImpl.h.
|
inlineoverridevirtual |
Calculate the final mixed color. This function may be called as many times as needed on any stage of the mixing.
Implements KoMixColorsOp::Mixer.
Definition at line 326 of file KoMixColorsOpImpl.h.
|
inlineoverridevirtual |
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.
Implements KoMixColorsOp::Mixer.
Definition at line 331 of file KoMixColorsOpImpl.h.
|
private |
Definition at line 337 of file KoMixColorsOpImpl.h.