|
Krita Source Code Documentation
|
#include <cmath>#include <QtGlobal>#include <KoAlwaysInline.h>#include <KoMultiArchBuildSupport.h>#include <KoStreamedMath.h>Go to the source code of this file.
Classes | |
| struct | KoColorTransferFunctions< Arch > |
Enumerations | |
| enum class | ConversionPolicy { KeepTheSame , ApplyPQ , ApplyHLG , ApplySMPTE428 } |
| enum class | LinearizePolicy { KeepTheSame , LinearFromPQ , LinearFromHLG , LinearFromSMPTE428 } |
| The KoColorTransferFunctions class. More... | |
Functions | |
| ALWAYS_INLINE float | applyHLGCurve (float x) noexcept |
| ALWAYS_INLINE void | applyHLGOOTF (float *rgb, const double *lumaCoefficients, float gamma=1.2f, float nominalPeak=1000.0f) noexcept |
| ALWAYS_INLINE float | applySmpte2048Curve (float x) noexcept |
| ALWAYS_INLINE float | applySMPTE_ST_428Curve (float x) noexcept |
| ALWAYS_INLINE float | HLGOOTFGamma (float nominalPeak) noexcept |
| ALWAYS_INLINE float | removeHLGCurve (float x) noexcept |
| ALWAYS_INLINE void | removeHLGOOTF (float *rgb, const double *lumaCoefficients, float gamma=1.2f, float nominalPeak=1000.0f) noexcept |
| ALWAYS_INLINE float | removeSmpte2048Curve (float x) noexcept |
| ALWAYS_INLINE float | removeSMPTE_ST_428Curve (float x) noexcept |
Variables | |
| static constexpr uint16_t | max12bit = 4095.f |
| static constexpr float | max16bit = 65535.0f |
| static constexpr float | multiplier10bit = 1.0f / 1023.0f |
| static constexpr float | multiplier12bit = 1.0f / 4095.0f |
| static constexpr float | multiplier16bit = 1.0f / max16bit |
|
strong |
| Enumerator | |
|---|---|
| KeepTheSame | |
| ApplyPQ | |
| ApplyHLG | |
| ApplySMPTE428 | |
Definition at line 36 of file KoColorTransferFunctions.h.
|
strong |
The KoColorTransferFunctions class.
A number of often used transferFunctions.
These functions can, at the time of writing, not be implemented in ICC profiles, so instead, we apply or remove the curve as necessary.
| Enumerator | |
|---|---|
| KeepTheSame | |
| LinearFromPQ | |
| LinearFromHLG | |
| LinearFromSMPTE428 | |
Definition at line 28 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 106 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 75 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 38 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 133 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 66 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 120 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 92 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 51 of file KoColorTransferFunctions.h.
|
noexcept |
Definition at line 138 of file KoColorTransferFunctions.h.
|
staticconstexpr |
Definition at line 30 of file KoColorTransferFunctions.h.
|
staticconstexpr |
Definition at line 31 of file KoColorTransferFunctions.h.
|
staticconstexpr |
Definition at line 32 of file KoColorTransferFunctions.h.
|
staticconstexpr |
Definition at line 33 of file KoColorTransferFunctions.h.
|
staticconstexpr |
Definition at line 34 of file KoColorTransferFunctions.h.