Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDummyColorProfile.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
8
13
17
22
24{
25 return true;
26}
28{
29 return 0.0;
30}
32{
33 return true;
34}
36{
37 return true;
38}
40{
41 return true;
42}
43
45{
46 return true;
47}
48
50{
51 return true;
52}
54{
55 return true;
56}
58{
59 return true;
60}
62{
63 return true;
64}
66{
67 return true;
68}
70{
71 return true;
72}
74{
75 return true;
76}
78{
79 return true;
80}
82{
83 QVector<KoColorimetryUtils::XYZ> sRGBStandardAdaptedColorants = {
84 KoColorimetryUtils::XYZ{0.43603516, 0.22248840, 0.01391602},
85 KoColorimetryUtils::XYZ{0.38511658, 0.71690369, 0.09706116},
86 KoColorimetryUtils::XYZ{0.14305115, 0.06060791, 0.71392822}
87 };
88 return sRGBStandardAdaptedColorants;
89}
90
92{
94
96
97 Q_FOREACH (KoColorimetryUtils::XYZ c, srgb) {
98 result.append(c.toxyY());
99 }
100
101 return result;
102}
103
108
113
114std::optional<double> KoDummyColorProfile::hdrReferenceWhite() const
115{
116 return std::nullopt;
117}
118
120
121{
122 QVector<double> Dummy(3);
123 Dummy.fill(2.2);
124 return Dummy;
125}
126
128{
129 return false;
130}
131
132void KoDummyColorProfile::linearizeFloatValue(QVector <double> & ) const
133{
134}
135
136void KoDummyColorProfile::delinearizeFloatValue(QVector <double> & ) const
137{
138}
139void KoDummyColorProfile::linearizeFloatValueFast(QVector <double> & ) const
140{
141}
142
144{
145}
147{
148 return dynamic_cast<const KoDummyColorProfile*>(&rhs);
149}
150
152{
153 return QByteArray();
154}
155
TransferCharacteristics
The transferCharacteristics enum Enum of transfer characteristics, follows ITU H.273 for values 0 to ...
bool isSuitableForWorkspace() const override
QVector< double > getEstimatedTRC() const override
QVector< KoColorimetryUtils::XYZ > getColorantsXYZ() const override
bool supportsRelative() const override
KoColorimetryUtils::xyY getWhitePointxyY() const override
bool isSuitableForPrinting() const override
bool isLinear() const override
void linearizeFloatValueFast(QVector< double > &Value) const override
bool hasTRC() const override
bool supportsSaturation() const override
bool hasColorants() const override
bool isSuitableForOutput() const override
bool supportsAbsolute() const override
float version() const override
QByteArray uniqueId() const override
QVector< KoColorimetryUtils::xyY > getColorantsxyY() const override
KoColorProfile * clone() const override
bool compareTRC(TransferCharacteristics characteristics, float error) const override
bool isSuitableForInput() const override
bool valid() const override
KoColorimetryUtils::XYZ getWhitePointXYZ() const override
bool isSuitableForDisplay() const override
std::optional< double > hdrReferenceWhite() const override
hdrReferenceWhite HDR reference white is only available for Perceptual Quantizer profiles that save t...
void delinearizeFloatValue(QVector< double > &Value) const override
void linearizeFloatValue(QVector< double > &Value) const override
bool supportsPerceptual() const override
void delinearizeFloatValueFast(QVector< double > &Value) const override
bool operator==(const KoColorProfile &) const override
void setName(const QString &name)