Krita Source Code Documentation
Loading...
Searching...
No Matches
KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate Struct Reference

Public Types

typedef KoColorSpaceMathsTraits< typename_CSTrait::channels_type >::mixtype mixtype
 

Public Member Functions

void nextPixel ()
 
int normalizeFactor () const
 
 NoWeightsSurrogate (int numPixels)
 
void premultiplyAlphaWithWeight (mixtype &) const
 

Private Attributes

const int m_numPixels
 

Detailed Description

template<class _CSTrait>
struct KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate

Definition at line 165 of file KoMixColorsOpImpl.h.

Member Typedef Documentation

◆ mixtype

template<class _CSTrait >
typedef KoColorSpaceMathsTraits<typename_CSTrait::channels_type>::mixtype KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::mixtype

Definition at line 167 of file KoMixColorsOpImpl.h.

Constructor & Destructor Documentation

◆ NoWeightsSurrogate()

template<class _CSTrait >
KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::NoWeightsSurrogate ( int numPixels)
inline

Definition at line 169 of file KoMixColorsOpImpl.h.

170 : m_numPixels(numPixels)
171 {
172 }

Member Function Documentation

◆ nextPixel()

template<class _CSTrait >
void KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::nextPixel ( )
inline

Definition at line 174 of file KoMixColorsOpImpl.h.

174 {
175 }

◆ normalizeFactor()

template<class _CSTrait >
int KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::normalizeFactor ( ) const
inline

Definition at line 180 of file KoMixColorsOpImpl.h.

180 {
181 return m_numPixels;
182 }

References KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::m_numPixels.

◆ premultiplyAlphaWithWeight()

template<class _CSTrait >
void KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::premultiplyAlphaWithWeight ( mixtype & ) const
inline

Definition at line 177 of file KoMixColorsOpImpl.h.

177 {
178 }

Member Data Documentation

◆ m_numPixels

template<class _CSTrait >
const int KoMixColorsOpImpl< _CSTrait >::NoWeightsSurrogate::m_numPixels
private

Definition at line 185 of file KoMixColorsOpImpl.h.


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