Krita Source Code Documentation
Loading...
Searching...
No Matches
ConversionPolicyApplicator< src_channel_type, dst_channel_type > Struct Template Reference

Static Public Member Functions

static ALWAYS_INLINE dst_channel_type apply (ConversionPolicy linearizePolicy, src_channel_type value, float refWhite=203.0)
 
static ALWAYS_INLINE dst_channel_type remove (ConversionPolicy linearizePolicy, src_channel_type value, float refWhite=203.0)
 

Detailed Description

template<typename src_channel_type, typename dst_channel_type>
struct ConversionPolicyApplicator< src_channel_type, dst_channel_type >

Definition at line 420 of file kis_png_converter.cpp.

Member Function Documentation

◆ apply()

template<typename src_channel_type , typename dst_channel_type >
static ALWAYS_INLINE dst_channel_type ConversionPolicyApplicator< src_channel_type, dst_channel_type >::apply ( ConversionPolicy linearizePolicy,
src_channel_type value,
float refWhite = 203.0 )
inlinestatic

Definition at line 421 of file kis_png_converter.cpp.

421 {
422 if (linearizePolicy == ConversionPolicy::ApplyPQ) {
426 value), refWhite));
427 } else if (linearizePolicy == ConversionPolicy::ApplyHLG) {
431 value)));
432 } else if (linearizePolicy == ConversionPolicy::ApplySMPTE428) {
436 value)));
437 }
439 }
float value(const T *src, size_t ch)
ALWAYS_INLINE float applySmpte2048Curve(float x, float refWhite=203.0) noexcept
ALWAYS_INLINE float applySMPTE_ST_428Curve(float x) noexcept
ALWAYS_INLINE float applyHLGCurve(float x) noexcept
static _Tdst scaleToA(_T a)

References ApplyHLG, applyHLGCurve(), ApplyPQ, applySmpte2048Curve(), ApplySMPTE428, applySMPTE_ST_428Curve(), KoColorSpaceMaths< _T, _Tdst >::scaleToA(), and value().

◆ remove()

template<typename src_channel_type , typename dst_channel_type >
static ALWAYS_INLINE dst_channel_type ConversionPolicyApplicator< src_channel_type, dst_channel_type >::remove ( ConversionPolicy linearizePolicy,
src_channel_type value,
float refWhite = 203.0 )
inlinestatic

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