|
Krita Source Code Documentation
|
#include <KoMixColorsOpImpl.h>
Inheritance diagram for KoMixColorsOpImpl< _CSTrait >:Classes | |
| struct | ArrayOfPointers |
| class | MixDataResult |
| class | MixerImpl |
| struct | NoWeightsSurrogate |
| struct | PointerToArray |
| struct | WeightsWrapper |
Public Member Functions | |
| Mixer * | createMixer () const override |
| KoMixColorsOpImpl () | |
| void | mixArrayWithColor (const quint8 *colorArray, const quint8 *color, int nColors, qreal weight, quint8 *dst) const override |
| void | mixColors (const quint8 *colors, const qint16 *weights, int nColors, quint8 *dst, int weightSum=255) const override |
| void | mixColors (const quint8 *colors, int nColors, quint8 *dst) const override |
| void | mixColors (const quint8 *const *colors, const qint16 *weights, int nColors, quint8 *dst, int weightSum=255) const override |
| void | mixColors (const quint8 *const *colors, int nColors, quint8 *dst) const override |
| void | mixTwoColorArrays (const quint8 *colorsA, const quint8 *colorsB, int nColors, qreal weight, quint8 *dst) const override |
| ~KoMixColorsOpImpl () override | |
Public Member Functions inherited from KoMixColorsOp | |
| virtual | ~KoMixColorsOp () |
Private Member Functions | |
| template<class AbstractSource , class WeightsWrapper > | |
| void | mixColorsImpl (AbstractSource source, WeightsWrapper weightsWrapper, int nColors, quint8 *dst) const |
Definition at line 37 of file KoMixColorsOpImpl.h.
|
inline |
Definition at line 40 of file KoMixColorsOpImpl.h.
|
inlineoverride |
Definition at line 42 of file KoMixColorsOpImpl.h.
|
overridevirtual |
Implements KoMixColorsOp.
Definition at line 341 of file KoMixColorsOpImpl.h.
|
inlineoverridevirtual |
Convenience function to mix one color array with one color with a specific weight. Mixes colorArray[x] with color with weight as the percentage of B vs A (0.0 -> 100% A, 1.0 -> 100% B), for all x = [0 .. nColors-1].
Implements KoMixColorsOp.
Definition at line 81 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().
|
inlineoverridevirtual |
Implements KoMixColorsOp.
Definition at line 50 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().
|
inlineoverridevirtual |
Implements KoMixColorsOp.
Definition at line 58 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().
|
inlineoverridevirtual |
Mix the colors.
| colors | a pointer toward the source pixels |
| weights | the coefficient of the source pixels |
| nColors | the number of pixels in the colors array |
| dst | the destination pixel |
| weightSum | an integer representing the sum of the coefficients. by default 255. If for some reason you do not want a perfect average, make this anything but the sum. Try to keep this below 255 for division-related performance. |
Implements KoMixColorsOp.
Definition at line 46 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().
|
inlineoverridevirtual |
Mix the colors uniformly, without weighting
| colors | a pointer toward the source pixels |
| nColors | the number of pixels in the colors array |
| dst | the destination pixel |
Implements KoMixColorsOp.
Definition at line 54 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().
|
inlineprivate |
Definition at line 300 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::MixDataResult::accumulateColors(), KoMixColorsOpImpl< _CSTrait >::MixDataResult::computeMixedColor(), and source().
|
inlineoverridevirtual |
Convenience function to mix two color arrays with one weight. Mixes colorsA[x] with colorsB[x] with weight as the percentage of B vs A (0.0 -> 100% A, 1.0 -> 100% B), for all x = [0 .. nColors-1].
Implements KoMixColorsOp.
Definition at line 62 of file KoMixColorsOpImpl.h.
References KoMixColorsOpImpl< _CSTrait >::mixColorsImpl().