File indexing completed on 2024-05-12 15:59:33
0001 /* 0002 * SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef _KO_COLOR_PROOFING_CONVERSION_TRANSFORMATION_H_ 0008 #define _KO_COLOR_PROOFING_CONVERSION_TRANSFORMATION_H_ 0009 0010 #include "KoColorConversionTransformation.h" 0011 0012 #include "kritapigment_export.h" 0013 0014 class KoColorSpace; 0015 class KoColorConversionCache; 0016 0017 /** 0018 * This is the base class of all color transform that convert the color of a pixel 0019 */ 0020 class KRITAPIGMENT_EXPORT KoColorProofingConversionTransformation : public KoColorConversionTransformation 0021 { 0022 0023 public: 0024 KoColorProofingConversionTransformation(const KoColorSpace *srcCs, 0025 const KoColorSpace *dstCs, 0026 const KoColorSpace *proofingSpace, 0027 Intent renderingIntent, 0028 Intent proofingIntent, 0029 ConversionFlags conversionFlags, 0030 quint8 *gamutWarning, 0031 double adaptationState); 0032 ~KoColorProofingConversionTransformation() override; 0033 0034 public: 0035 0036 /** 0037 * @brief proofingSpace 0038 * @return the space that is used to proof the color transform 0039 */ 0040 const KoColorSpace *proofingSpace() const; 0041 0042 private: 0043 0044 Intent m_proofingIntent; 0045 quint8 *m_gamutWarning; 0046 double m_adaptationState; 0047 const KoColorSpace *m_proofingSpace; 0048 }; 0049 0050 #endif