|
Krita Source Code Documentation
|
#include <KoClipMaskApplicatorBase.h>
Inheritance diagram for KoClipMaskApplicatorBase:Public Member Functions | |
| virtual void | applyLuminanceMask (quint8 *pixels, quint8 *maskPixels, const int nPixels) const =0 |
| applyLuminanceMask This applies an ARGB32 mask to an ARGB32 image as per w3c specs. Both the alpha channel as well as the rec709 luminance of the mask will be taken into account to calculate the final alpha. | |
| virtual void | fallbackLuminanceMask (quint8 *pixels, quint8 *maskPixels, const int nPixels) const |
| fallbackLuminanceMask This is the fallback algorithm for leftover pixels that for whatever reason cannot be processed via xsimd. | |
| virtual | ~KoClipMaskApplicatorBase ()=default |
ClipMaskApplicator allows us to use xsimd functionality to speed up clipmask painting
Definition at line 15 of file KoClipMaskApplicatorBase.h.
|
virtualdefault |
|
pure virtual |
applyLuminanceMask This applies an ARGB32 mask to an ARGB32 image as per w3c specs. Both the alpha channel as well as the rec709 luminance of the mask will be taken into account to calculate the final alpha.
| pixels | – pointer to the image pixels. |
| maskPixels | – pointer to the mask pixels. |
| nPixels | – total amount of pixels to manipulate, typical width*height. |
Implemented in KoClipMaskApplicator< _impl, EnableDummyType >, and KoClipMaskApplicator< _impl, typename std::enable_if<!std::is_same< _impl, xsimd::generic >::value >::type >.
|
virtual |
fallbackLuminanceMask This is the fallback algorithm for leftover pixels that for whatever reason cannot be processed via xsimd.
Definition at line 8 of file KoClipMaskApplicatorBase.cpp.
References OptiRound< _impl, result_type >::roundScalar().