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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFHardMixSofterPhotoshop< 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 CFHardMixSofterPhotoshop< T >

Definition at line 699 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 700 of file KoCompositeOpFunctions.h.

700 {
701 using namespace Arithmetic;
702 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
703
704 const composite_type srcScaleFactor = static_cast<composite_type>(2);
705 const composite_type dstScaleFactor = static_cast<composite_type>(3);
706
707 return clampToSDR<T>(dstScaleFactor * dst - srcScaleFactor * inv(src));
708 }

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