|
Krita Source Code Documentation
|
#include "LcmsPredefinedPipelineFunctions.h"#include "kis_dom_utils.h"#include <KoColorTransferFunctions.h>#include <KoColorProfile.h>#include <QMatrix4x4>#include <QVector4D>Go to the source code of this file.
Classes | |
| struct | perceptualDummyHelper |
Functions | |
| static QMatrix4x4 | bradfordMatrix (QVector4D src, QVector4D dst) |
| bradfordMatrix From http://brucelindbloom.com/index.html?Eqn_ChromAdapt.html | |
| static QMatrix4x4 | rgbMatrix (ColorPrimaries primaries, double factor=1.0, double *luma=nullptr) |
| rgbMatrix Generates a proper rgb matrix from a primaries type. | |
| cmsInt32Number | samplePQDummyClut (const cmsUInt16Number In[], cmsUInt16Number Out[], void *Cargo) |
| samplePQDummyClut In this sampler, we convert the PQ data to linear and then to HLG. The benefit of HLG is that it sort of allows for tonemapping. | |
|
static |
bradfordMatrix From http://brucelindbloom.com/index.html?Eqn_ChromAdapt.html
| src | – source white point XYZ |
| dst | – destionation white point XYZ |
Definition at line 20 of file LcmsPredefinedPipelineFunctions.cpp.
References bradfordMatrix().
|
static |
rgbMatrix Generates a proper rgb matrix from a primaries type.
| primaries | – default primaries to use. |
| factor | – scaling factor. |
Definition at line 58 of file LcmsPredefinedPipelineFunctions.cpp.
References bradfordMatrix(), KoColorProfile::colorantsForType(), S, KoColorimetryUtils::xy::toXYZ(), KoColorimetryUtils::XYZ::X, and KoColorimetryUtils::XYZ::Z.
| cmsInt32Number samplePQDummyClut | ( | const cmsUInt16Number | In[], |
| cmsUInt16Number | Out[], | ||
| void * | Cargo ) |
samplePQDummyClut In this sampler, we convert the PQ data to linear and then to HLG. The benefit of HLG is that it sort of allows for tonemapping.
Important: this normalizes the pq signal.
scaling the nits value by the HLG scaling factor.
Definition at line 110 of file LcmsPredefinedPipelineFunctions.cpp.
References applyHLGCurve(), applySmpte2048Curve(), perceptualDummyHelper::channels, perceptualDummyHelper::diffuseWhiteNits, removeHLGCurve(), removeSmpte2048Curve(), and perceptualDummyHelper::toXYZ.