6#ifndef KOCOMPOSITEOPCLAMPPOLICY_H
7#define KOCOMPOSITEOPCLAMPPOLICY_H
20 return clampToSDR<channels_type>(
value);
25 return clampToSDR<channels_type>(
value);
30 return clampToSDR<channels_type>(
value);
39 return unitValue<T>();
50 return clampToSDR<channels_type>(
value);
55 return clampToSDR<channels_type>(
value);
60 return clampToSDR<channels_type>(
value);
71 return unitValue<T>();
86 return clampToSDRBottom<channels_type>(
value);
91 return clampToSDRTop<channels_type>(
value);
106template <
template <
typename U,
107 template <
typename V>
typename Policy>
typename Functor,
110 std::conditional_t<std::numeric_limits<T>::is_integer,
111 Functor<T, ClampAsInteger>,
112 Functor<T, ClampAsFloatSDR>>
float value(const T *src, size_t ch)
static compositetype fixInfiniteAfterDivision(compositetype value)
static channels_type clampResult(compositetype value)
typename KoColorSpaceMathsTraits< T >::compositetype compositetype
static channels_type clampResultAllowNegative(compositetype value)
static T clippedMaxValue()
static channels_type clampInvertedResult(compositetype value)
static compositetype fixInfiniteAfterDivision(compositetype value)
static channels_type clampInvertedResult(compositetype value)
static channels_type clampResultAllowNegative(compositetype value)
typename KoColorSpaceMathsTraits< T >::compositetype compositetype
static T clippedMaxValue()
static channels_type clampResult(compositetype value)
static compositetype fixInfiniteAfterDivision(compositetype value)
typename KoColorSpaceMathsTraits< T >::compositetype compositetype
static channels_type clampResult(compositetype value)
static channels_type clampInvertedResult(compositetype value)
static T clippedMaxValue()
static channels_type clampResultAllowNegative(compositetype value)