18#include <QtGui/qtguiglobal.h>
19#include <QtCore/qpoint.h>
20#include <QtCore/private/qglobal_p.h>
32 :
x(chr.
x() / chr.
y())
34 ,
z((1.0 - chr.
x() - chr.
y()) / chr.
y())
45 return !
x && !
y && !
z;
54 if (chr.
x() + chr.
y() >
qreal(1.0))
68 return (std::abs(
v1.x -
v2.x) < (1.0f / 2048.0f))
69 && (std::abs(
v1.y -
v2.y) < (1.0f / 2048.0f))
70 && (std::abs(
v1.z -
v2.z) < (1.0f / 2048.0f));
94 return r.isNull() &&
g.isNull() &&
b.isNull();
99 float det =
r.x * (
b.z *
g.y -
g.z *
b.y) -
100 r.y * (
b.z *
g.x -
g.z *
b.x) +
101 r.z * (
b.y *
g.x -
g.y *
b.x);
111 float det =
r.x * (
b.z *
g.y -
g.z *
b.y) -
112 r.y * (
b.z *
g.x -
g.z *
b.x) +
113 r.z * (
b.y *
g.x -
g.y *
b.x);
116 inv.
r.
x = (
g.y *
b.z -
b.y *
g.z) * det;
117 inv.
r.
y = (
b.y *
r.z -
r.y *
b.z) * det;
118 inv.
r.
z = (
r.y *
g.z -
g.y *
r.z) * det;
119 inv.
g.
x = (
b.x *
g.z -
g.x *
b.z) * det;
120 inv.
g.
y = (
r.x *
b.z -
b.x *
r.z) * det;
121 inv.
g.
z = (
g.x *
r.z -
r.x *
g.z) * det;
122 inv.
b.
x = (
g.x *
b.y -
b.x *
g.y) * det;
123 inv.
b.
y = (
b.x *
r.y -
r.x *
b.y) * det;
124 inv.
b.
z = (
r.x *
g.y -
g.x *
r.y) * det;
130 comb.
r.
x =
r.x *
o.r.x +
g.x *
o.r.y +
b.x *
o.r.z;
131 comb.
g.
x =
r.x *
o.g.x +
g.x *
o.g.y +
b.x *
o.g.z;
132 comb.
b.
x =
r.x *
o.b.x +
g.x *
o.b.y +
b.x *
o.b.z;
134 comb.
r.
y =
r.y *
o.r.x +
g.y *
o.r.y +
b.y *
o.r.z;
135 comb.
g.
y =
r.y *
o.g.x +
g.y *
o.g.y +
b.y *
o.g.z;
136 comb.
b.
y =
r.y *
o.b.x +
g.y *
o.b.y +
b.y *
o.b.z;
138 comb.
r.
z =
r.z *
o.r.x +
g.z *
o.r.y +
b.z *
o.r.z;
139 comb.
g.
z =
r.z *
o.g.x +
g.z *
o.g.y +
b.z *
o.g.z;
140 comb.
b.
z =
r.z *
o.b.x +
g.z *
o.b.y +
b.z *
o.b.z;
147 c.x *
r.y +
c.y *
g.y +
c.z *
b.y,
148 c.x *
r.z +
c.y *
g.z +
c.z *
b.z };
159 return { { 1.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, { 0.0f, 0.0f, 1.0f } };
165 { 0.0f, 0.0f,
v.z } };
170 return QColorMatrix { { 0.4360217452f, 0.2224751115f, 0.0139281144f },
171 { 0.3851087987f, 0.7169067264f, 0.0971015394f },
172 { 0.1430812478f, 0.0606181994f, 0.7141585946f } };
176 return QColorMatrix { { 0.6097189188f, 0.3111021519f, 0.0194766335f },
177 { 0.2052682191f, 0.6256770492f, 0.0608891509f },
178 { 0.1492247432f, 0.0632209629f, 0.7448224425f } };
182 return QColorMatrix { { 0.5150973201f, 0.2411795557f, -0.0010491034f },
183 { 0.2919696569f, 0.6922441125f, 0.0418830328f },
184 { 0.1571449190f, 0.0665764511f, 0.7843542695f } };
188 return QColorMatrix { { 0.7976672649f, 0.2880374491f, 0.0000000000f },
189 { 0.1351922452f, 0.7118769884f, 0.0000000000f },
190 { 0.0313525312f, 0.0000856627f, 0.8251883388f } };
196 return (m1.
r == m2.
r) && (m1.
g == m2.
g) && (m1.
b == m2.
b);
QColorMatrix inverted() const
static QColorMatrix toXyzFromSRgb()
static QColorMatrix toXyzFromAdobeRgb()
friend bool operator==(const QColorMatrix &m1, const QColorMatrix &m2)
static QColorMatrix identity()
QColorMatrix transposed() const
static QColorMatrix fromScale(QColorVector v)
QColorMatrix operator*(const QColorMatrix &o) const
bool isIdentity() const noexcept
static QColorMatrix toXyzFromDciP3D65()
static QColorMatrix toXyzFromProPhotoRgb()
QColorVector map(const QColorVector &c) const
friend bool operator!=(const QColorMatrix &m1, const QColorMatrix &m2)
static constexpr QColorVector D50()
static constexpr QPointF D65Chromaticity()
static bool isValidChromaticity(const QPointF &chr)
friend bool operator!=(const QColorVector &v1, const QColorVector &v2)
friend bool operator==(const QColorVector &v1, const QColorVector &v2)
constexpr QColorVector(float x, float y, float z)
static constexpr QPointF D50Chromaticity()
constexpr QColorVector(const QPointF &chr)
static constexpr QColorVector D65()
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
Combined button and popup list for selecting options.
bool operator!=(const QColorVector &v1, const QColorVector &v2)
bool operator==(const QColorVector &v1, const QColorVector &v2)
bool qFuzzyIsNull(qfloat16 f) noexcept
GLint GLfloat GLfloat GLfloat v2
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]