|
Krita Source Code Documentation
|
#include <KoCompositeOpGeneric.h>
Inheritance diagram for KoCompositeOpGenericSCSAI< Traits, compositeFunc, BlendingPolicy >:Public Member Functions | |
| KoCompositeOpGenericSCSAI (const KoColorSpace *cs, const QString &id, const QString &category) | |
Public Member Functions inherited from KoCompositeOpBase< Traits, KoCompositeOpGenericSCSAI< Traits, compositeFunc, BlendingPolicy > > | |
| void | composite (const KoCompositeOp::ParameterInfo ¶ms) const override |
| virtual void | composite (const ParameterInfo ¶ms) const |
| void | composite (quint8 *dstRowStart, qint32 dstRowStride, const quint8 *srcRowStart, qint32 srcRowStride, const quint8 *maskRowStart, qint32 maskRowStride, qint32 rows, qint32 numColumns, float opacity, const QBitArray &channelFlags=QBitArray()) const |
| KoCompositeOpBase (const KoColorSpace *cs, const QString &id, const QString &category) | |
Public Member Functions inherited from KoCompositeOp | |
| QString | category () const |
| const KoColorSpace * | colorSpace () const |
| void | composite (quint8 *dstRowStart, qint32 dstRowStride, const quint8 *srcRowStart, qint32 srcRowStride, const quint8 *maskRowStart, qint32 maskRowStride, qint32 rows, qint32 numColumns, float opacity, const QBitArray &channelFlags=QBitArray()) const |
| QString | description () const |
| QString | id () const |
| KoCompositeOp (const KoColorSpace *cs, const QString &id, const QString &category=KoCompositeOp::categoryMisc()) | |
| virtual | ~KoCompositeOp () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Static Public Member Functions | |
| template<bool alphaLocked, bool allChannelFlags> | |
| static channels_type | composeColorChannels (const channels_type *src, channels_type srcAlpha, channels_type *dst, channels_type dstAlpha, channels_type maskAlpha, channels_type opacity, const QBitArray &channelFlags) |
Static Public Member Functions inherited from KoCompositeOp | |
| static QString | categoryArithmetic () |
| static QString | categoryBinary () |
| static QString | categoryDark () |
| static QString | categoryHSI () |
| static QString | categoryHSL () |
| static QString | categoryHSV () |
| static QString | categoryHSY () |
| static QString | categoryLight () |
| static QString | categoryMisc () |
| static QString | categoryMix () |
| static QString | categoryModulo () |
| static QString | categoryNegative () |
| static QString | categoryQuadratic () |
Private Types | |
| typedef KoCompositeOpBase< Traits, KoCompositeOpGenericSCSAI< Traits, compositeFunc, BlendingPolicy > > | base_class |
| typedef Traits::channels_type | channels_type |
Static Private Attributes | |
| static constexpr qint32 | alpha_pos = Traits::alpha_pos |
| static constexpr qint32 | channels_nb = Traits::channels_nb |
Additional Inherited Members | |
Public Attributes inherited from KoCompositeOp | |
| QString | category |
| const KoColorSpace * | colorSpace |
| QBitArray | defaultChannelFlags |
| QString | description |
| QString | id |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Generic CompositeOp for Paint Tool SAI blend modes.
This is similar to KoCompositeOpGenericSC, but hands the composite function the source color in a premultiplied state and also passes the source alpha along, which some of the composite functions make use of.
The compositing logic comes from psd-export by cromachina, licensed under MIT: https://github.com/cromachina/psd-export
Definition at line 301 of file KoCompositeOpGeneric.h.
|
private |
Definition at line 304 of file KoCompositeOpGeneric.h.
|
private |
Definition at line 305 of file KoCompositeOpGeneric.h.
|
inline |
Definition at line 311 of file KoCompositeOpGeneric.h.
|
inlinestatic |
Definition at line 318 of file KoCompositeOpGeneric.h.
References KoCompositeOpGenericSCSAI< Traits, compositeFunc, BlendingPolicy >::alpha_pos, KoCompositeOpGenericSCSAI< Traits, compositeFunc, BlendingPolicy >::channels_nb, and lerp().
|
staticconstexprprivate |
Definition at line 308 of file KoCompositeOpGeneric.h.
|
staticconstexprprivate |
Definition at line 307 of file KoCompositeOpGeneric.h.