6#ifndef KOCOLORPROFILEQUERY_H
7#define KOCOLORPROFILEQUERY_H
68 return !(*
this == rhs);
74 QDebugStateSaver saver(debug);
75 debug.nospace() <<
"KoColorProfileQuery("
76 <<
" WhitePoint:" <<
value.whitePoint
77 <<
" rgbColorants:" <<
value.rgbColorants
78 <<
" primariesType:" <<
value.primaries
79 <<
" transferFunction:" <<
value.transfer
80 <<
" isGreyscale:" <<
value.isGrayscale()
81 <<
" isRgb:" <<
value.isRgb()
82 <<
" isValid:" <<
value.isValid()
float value(const T *src, size_t ch)
ColorPrimaries
The colorPrimaries enum Enum of colorants, follows ITU H.273 for values 0 to 255, and has extra known...
TransferCharacteristics
The transferCharacteristics enum Enum of transfer characteristics, follows ITU H.273 for values 0 to ...
QDebug operator<<(QDebug debug, const KoColorProfileQuery &value)
The KoColorProfileQuery struct.
TransferCharacteristics transfer
CICP-compatible enum value representing the white point and primaries.
ColorPrimaries primaries
Rgb Primaries of the profile. When empty, this is a query for a greyscale profile.
bool isValid() const
Used for PQ profiles.
KoColorProfileQuery(KoColorProfileQuery &&rhs)=default
KoColorProfileQuery(const KoColorProfileQuery &rhs)=default
KoColorProfileQuery(ColorPrimaries primaries=PRIMARIES_UNSPECIFIED, TransferCharacteristics transfer=TRC_UNSPECIFIED, std::optional< qreal > hdrReferenceWhite=std::nullopt)
QList< KoColorimetryUtils::xy > rgbColorants
The desired white point of the profile.
bool operator!=(const KoColorProfileQuery &rhs) const
bool operator==(const KoColorProfileQuery &rhs) const
KoColorimetryUtils::xy whitePoint
KoColorProfileQuery & operator=(KoColorProfileQuery &&rhs)=default
KoColorProfileQuery & operator=(const KoColorProfileQuery &rhs)=default
std::optional< double > hdrReferenceWhite
CICP-compatible enum value representing the transfer function.