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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFPenumbraB< 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<typename T>
struct CFPenumbraB< T >

Definition at line 985 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<typename T >
static T CFPenumbraB< T >::composeChannel ( T src,
T dst )
inlinestatic

Definition at line 986 of file KoCompositeOpFunctions.h.

986 {
987 using namespace Arithmetic;
988 using namespace KoCompositeOpClampPolicy;
989
990 if (dst == unitValue<T>()) {
991 return unitValue<T>();
992 }
993 if (dst + src < unitValue<T>()) {
995 }
996 if (src == zeroValue<T>()) {
997 return zeroValue<T>();
998 }
999
1000 return inv(clamp<T>(div(inv(dst),src)/2));
1001 }
KoColorSpaceMathsTraits< T >::compositetype div(T a, T b)

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