![]() |
Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qcolortransferfunction_p.h>
Public Types | |
enum class | Hint : quint32 { NoHint = 0 , Calculated = 1 , IsGamma = 2 , IsIdentity = 4 , IsSRgb = 8 } |
Public Member Functions | |
QColorTransferFunction () noexcept | |
QColorTransferFunction (float a, float b, float c, float d, float e, float f, float g) noexcept | |
bool | isGamma () const |
bool | isIdentity () const |
bool | isSRgb () const |
float | apply (float x) const |
QColorTransferFunction | inverted () const |
bool | matches (const QColorTransferFunction &o) const |
Q_DECLARE_FLAGS (Hints, Hint) | |
Static Public Member Functions | |
static QColorTransferFunction | fromGamma (float gamma) |
static QColorTransferFunction | fromSRgb () |
static QColorTransferFunction | fromProPhotoRgb () |
Public Attributes | |
float | m_a |
float | m_b |
float | m_c |
float | m_d |
float | m_e |
float | m_f |
float | m_g |
Friends | |
bool | operator== (const QColorTransferFunction &f1, const QColorTransferFunction &f2) |
bool | operator!= (const QColorTransferFunction &f1, const QColorTransferFunction &f2) |
Definition at line 26 of file qcolortransferfunction_p.h.
|
strong |
Enumerator | |
---|---|
NoHint | |
Calculated | |
IsGamma | |
IsIdentity | |
IsSRgb |
Definition at line 135 of file qcolortransferfunction_p.h.
|
inlinenoexcept |
Definition at line 29 of file qcolortransferfunction_p.h.
Referenced by fromGamma(), fromProPhotoRgb(), fromSRgb(), and inverted().
|
inlinenoexcept |
Definition at line 34 of file qcolortransferfunction_p.h.
|
inline |
|
inlinestatic |
Definition at line 101 of file qcolortransferfunction_p.h.
References QColorTransferFunction(), Calculated, IsGamma, IsIdentity, and NoHint.
Referenced by QIcc::parseTRC(), QIcc::parseTRCs(), and QColorSpacePrivate::setTransferFunction().
|
inlinestatic |
Definition at line 112 of file qcolortransferfunction_p.h.
References QColorTransferFunction(), and Calculated.
Referenced by QColorSpacePrivate::setTransferFunction().
|
inlinestatic |
Definition at line 107 of file qcolortransferfunction_p.h.
References QColorTransferFunction(), Calculated, and IsSRgb.
Referenced by QColorTransferTable::asColorTransferFunction(), QIcc::parseTRCs(), and QColorSpacePrivate::setTransferFunction().
|
inline |
|
inline |
Definition at line 38 of file qcolortransferfunction_p.h.
References IsGamma.
|
inline |
Definition at line 43 of file qcolortransferfunction_p.h.
References IsIdentity.
Referenced by QColorSpacePrivate::setTransferFunctionTable().
|
inline |
Definition at line 48 of file qcolortransferfunction_p.h.
References IsSRgb.
Referenced by QColorSpacePrivate::setTransferFunctionTable().
|
inline |
QColorTransferFunction::Q_DECLARE_FLAGS | ( | Hints | , |
Hint | ) |
|
friend |
Definition at line 186 of file qcolortransferfunction_p.h.
|
friend |
Definition at line 182 of file qcolortransferfunction_p.h.
float QColorTransferFunction::m_a |
Definition at line 127 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_b |
Definition at line 128 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_c |
Definition at line 129 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_d |
Definition at line 130 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_e |
Definition at line 131 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_f |
Definition at line 132 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().
float QColorTransferFunction::m_g |
Definition at line 133 of file qcolortransferfunction_p.h.
Referenced by apply(), inverted(), and matches().