Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2010 Cyrille Berger <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef _KO_DUMMY_COLOR_PROFILE_H_
#define _KO_DUMMY_COLOR_PROFILE_H_
#include "KoColorProfile.h"
class KoDummyColorProfile : public KoColorProfile
{
public:
KoDummyColorProfile();
~KoDummyColorProfile() override;
KoColorProfile* clone() const override;
bool valid() const override;
float version() const override;
bool isSuitableForOutput() const override;
bool isSuitableForInput() const override;
bool isSuitableForWorkspace() const override;
bool isSuitableForPrinting() const override;
bool isSuitableForDisplay() const override;
bool supportsPerceptual() const override;
bool supportsSaturation() const override;
bool supportsAbsolute() const override;
bool supportsRelative() const override;
bool hasColorants() const override;
bool hasTRC() const override;
bool isLinear() const override;
QVector <KoColorimetryUtils::XYZ> getColorantsXYZ() const override;
QVector <KoColorimetryUtils::xyY> getColorantsxyY() const override;
KoColorimetryUtils::XYZ getWhitePointXYZ() const override;
KoColorimetryUtils::xyY getWhitePointxyY() const override;
std::optional<double> hdrReferenceWhite() const override;
QVector <double> getEstimatedTRC() const override;
bool compareTRC(TransferCharacteristics characteristics, float error) const override;
void linearizeFloatValue(QVector <double> & Value) const override;
void delinearizeFloatValue(QVector <double> & Value) const override;
void linearizeFloatValueFast(QVector <double> & Value) const override;
void delinearizeFloatValueFast(QVector <double> & Value) const override;
bool operator==(const KoColorProfile&) const override;
QByteArray uniqueId() const override;
};
#endif