Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSimpleColorSpaceEngine.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#ifndef _KO_SIMPLE_COLOR_SPACE_ENGINE_H_
8#define _KO_SIMPLE_COLOR_SPACE_ENGINE_H_
9
10#include <QVector>
11
12#include <KoColorSpaceEngine.h>
13
15{
16public:
20 const KoColorSpace* dstColorSpace,
22 KoColorConversionTransformation::ConversionFlags conversionFlags) const override;
23 const KoColorProfile* addProfile(const QString &profile ) override { Q_UNUSED(profile); return 0; }
24 const KoColorProfile* addProfile(const QByteArray &data) override { Q_UNUSED(data); return 0; }
25 void removeProfile(const QString &profile ) override { Q_UNUSED(profile); }
26
27 const KoColorProfile * getProfile(const QVector<double> &colorants, ColorPrimaries colorPrimaries, TransferCharacteristics transferFunction) override {
28 Q_UNUSED(colorants);
29 Q_UNUSED(colorPrimaries);
30 Q_UNUSED(transferFunction);
31 return nullptr;
32 }
33};
34
35#endif
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 ...
const KoColorProfile * getProfile(const QVector< double > &colorants, ColorPrimaries colorPrimaries, TransferCharacteristics transferFunction) override
getProfile This tries to generate a profile with the given characteristics and add it to the registry...
const KoColorProfile * addProfile(const QString &profile) override
KoColorConversionTransformation * createColorTransformation(const KoColorSpace *srcColorSpace, const KoColorSpace *dstColorSpace, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const override
void removeProfile(const QString &profile) override
const KoColorProfile * addProfile(const QByteArray &data) override