43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qcolortransform.h>
45 #include <QtCore/qobjectdefs.h>
46 #include <QtCore/qshareddata.h>
47 #include <QtCore/qvariant.h>
98 const QList<uint16_t> &redTransferFunctionTable,
99 const QList<uint16_t> &greenTransferFunctionTable,
100 const QList<uint16_t> &blueTransferFunctionTable);
115 { d_ptr.swap(colorSpace.d_ptr); }
117 Primaries primaries()
const noexcept;
118 TransferFunction transferFunction()
const noexcept;
119 float gamma()
const noexcept;
124 void setTransferFunction(TransferFunction transferFunction,
float gamma = 0.0
f);
125 void setTransferFunction(
const QList<uint16_t> &transferFunctionTable);
126 void setTransferFunctions(
const QList<uint16_t> &redTransferFunctionTable,
127 const QList<uint16_t> &greenTransferFunctionTable,
128 const QList<uint16_t> &blueTransferFunctionTable);
129 QColorSpace withTransferFunction(TransferFunction transferFunction,
float gamma = 0.0
f)
const;
132 const QList<uint16_t> &greenTransferFunctionTable,
135 void setPrimaries(Primaries primariesId);
140 bool isValid()
const noexcept;
143 {
return colorSpace1.equals(colorSpace2); }
145 {
return !(colorSpace1 == colorSpace2); }
160 #ifndef QT_NO_DEBUG_STREAM
168 #if !defined(QT_NO_DATASTREAM)
173 #ifndef QT_NO_DEBUG_STREAM
The QByteArray class provides an array of bytes.
The QColorSpace class provides a color space abstraction.
friend bool operator!=(const QColorSpace &colorSpace1, const QColorSpace &colorSpace2)
QColorSpace(QColorSpace &&colorSpace) noexcept=default
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
The QPointF class defines a point in the plane using floating point precision.
The QString class provides a Unicode character string.
The QVariant class acts like a union for the most common Qt data types.
auto it unsigned count const
bool fromIccProfile(const QByteArray &data, QColorSpace *colorSpace)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(Class)
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_DECLARE_SHARED(TYPE)