Krita Source Code Documentation
Loading...
Searching...
No Matches
KoClipMaskApplicator< _impl, EnableDummyType > Struct Template Reference

#include <KoClipMaskApplicator.h>

+ Inheritance diagram for KoClipMaskApplicator< _impl, EnableDummyType >:

Public Member Functions

virtual void applyLuminanceMask (quint8 *pixels, quint8 *maskPixels, const int nPixels) const override
 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.
 
- Public Member Functions inherited from KoClipMaskApplicatorBase
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
 

Detailed Description

template<typename _impl, typename EnableDummyType = void>
struct KoClipMaskApplicator< _impl, EnableDummyType >

Definition at line 18 of file KoClipMaskApplicator.h.

Member Function Documentation

◆ applyLuminanceMask()

template<typename _impl , typename EnableDummyType = void>
virtual void KoClipMaskApplicator< _impl, EnableDummyType >::applyLuminanceMask ( quint8 * pixels,
quint8 * maskPixels,
const int nPixels ) const
inlineoverridevirtual

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.

Parameters
pixels– pointer to the image pixels.
maskPixels– pointer to the mask pixels.
nPixels– total amount of pixels to manipulate, typical width*height.

Implements KoClipMaskApplicatorBase.

Definition at line 19 of file KoClipMaskApplicator.h.

19 {
20 KoClipMaskApplicatorBase::fallbackLuminanceMask(pixels, maskPixels, nPixels);
21 }
virtual void fallbackLuminanceMask(quint8 *pixels, quint8 *maskPixels, const int nPixels) const
fallbackLuminanceMask This is the fallback algorithm for leftover pixels that for whatever reason can...

References KoClipMaskApplicatorBase::fallbackLuminanceMask().


The documentation for this struct was generated from the following file: