Krita Source Code Documentation
Loading...
Searching...
No Matches
CFGammaLight< T > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFGammaLight< T >:

Static Public Member Functions

static T composeChannel (T src, T dst)
 
- Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< T >
static T clampDestinationChannelValue (T value)
 
static T clampSourceChannelValue (T value)
 

Detailed Description

template<class T>
struct CFGammaLight< T >

Definition at line 753 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<class T >
static T CFGammaLight< T >::composeChannel ( T src,
T dst )
inlinestatic

Definition at line 754 of file KoCompositeOpFunctions.h.

754 {
755 using namespace Arithmetic;
756
757 const qreal dstReal = scale<qreal>(dst);
758
759 if (isZeroValueFuzzy(dstReal)) {
760 return zeroValue<T>();
761 }
762
763 if (isUnitValueFuzzy(dstReal)) {
764 return unitValue<T>();
765 }
766
767 const qreal srcReal = scale<qreal>(src);
768
769 return scale<T>(pow(dstReal, srcReal));
770 }

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