Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorProfileQuery.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOCOLORPROFILEQUERY_H
7#define KOCOLORPROFILEQUERY_H
8
11#include <QDebug>
12
48
49inline QDebug operator<<(QDebug debug, const KoColorProfileQuery &value) {
50 QDebugStateSaver saver(debug);
51 debug.nospace() << "KoColorProfileQuery("
52 << " WhitePoint:" << value.whitePoint
53 << " rgbColorants:" << value.rgbColorants
54 << " primariesType:" << value.primaries
55 << " transferFunction:" << value.transfer
56 << " isGreyscale:" << value.isGrayscale()
57 << " isRgb:" << value.isRgb()
58 << " isValid:" << value.isValid()
59 << ")";
60 return debug;
61}
62
63#endif // KOCOLORPROFILEQUERY_H
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...
@ PRIMARIES_UNSPECIFIED
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
CICP-compatible enum value representing the transfer function.
QList< KoColorimetryUtils::xy > rgbColorants
The desired white point of the profile.
KoColorProfileQuery(ColorPrimaries primaries=PRIMARIES_UNSPECIFIED, TransferCharacteristics transfer=TRC_UNSPECIFIED)
KoColorimetryUtils::xy whitePoint