|
Krita Source Code Documentation
|
#include <IccColorProfile.h>
Inheritance diagram for IccColorProfile:Classes | |
| class | Container |
| class | Data |
| struct | Private |
Public Member Functions | |
| LcmsColorProfileContainer * | asLcms () const |
| KoColorProfile * | clone () const override |
| QString | colorModelID () const override |
| bool | compareTRC (TransferCharacteristics characteristics, float error) const override |
| void | delinearizeFloatValue (QVector< qreal > &Value) const override |
| void | delinearizeFloatValueFast (QVector< qreal > &Value) const override |
| QVector< KoColorimetryUtils::xyY > | getColorantsxyY () const override |
| QVector< KoColorimetryUtils::XYZ > | getColorantsXYZ () const override |
| QVector< qreal > | getEstimatedTRC () const override |
| const QVector< KoChannelInfo::DoubleRange > & | getFloatUIMinMax (void) const |
| KoColorimetryUtils::xyY | getWhitePointxyY () const override |
| KoColorimetryUtils::XYZ | getWhitePointXYZ () const override |
| bool | hasColorants () const override |
| bool | hasTRC () const override |
| IccColorProfile (const IccColorProfile &rhs) | |
| IccColorProfile (const KoColorProfileQuery &query) | |
| IccColorProfile (const QByteArray &rawData) | |
| IccColorProfile (const QString &fileName=QString()) | |
| bool | isLinear () const override |
| bool | isSuitableForDisplay () const override |
| bool | isSuitableForInput () const override |
| bool | isSuitableForOutput () const override |
| bool | isSuitableForPrinting () const override |
| bool | isSuitableForWorkspace () const override |
| void | linearizeFloatValue (QVector< qreal > &Value) const override |
| void | linearizeFloatValueFast (QVector< qreal > &Value) const override |
| bool | load () override |
| bool | operator== (const KoColorProfile &) const override |
| QByteArray | rawData () const override |
| virtual bool | save () |
| virtual bool | save (const QString &fileName) |
| bool | supportsAbsolute () const override |
| bool | supportsPerceptual () const override |
| bool | supportsRelative () const override |
| bool | supportsSaturation () const override |
| QString | type () const override |
| QByteArray | uniqueId () const override |
| bool | valid () const override |
| float | version () const override |
| ~IccColorProfile () override | |
Public Member Functions inherited from KoColorProfile | |
| QString | copyright () const |
| QString | fileName () const |
| virtual ColorPrimaries | getColorPrimaries () const |
| getColorPrimaries | |
| virtual TransferCharacteristics | getTransferCharacteristics () const |
| getTransferCharacteristics This function should be subclassed at some point so we can get the value from the lcms profile. | |
| QString | info () const |
| KoColorProfile (const KoColorProfile &profile) | |
| KoColorProfile (const QString &fileName=QString()) | |
| QString | manufacturer () const |
| QString | name () const |
| void | setFileName (const QString &filename) |
| virtual | ~KoColorProfile () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Protected Member Functions | |
| bool | init () |
| void | setRawData (const QByteArray &rawData) |
Protected Member Functions inherited from KoColorProfile | |
| void | setCharacteristics (ColorPrimaries primaries, TransferCharacteristics curve) |
| setCharacteristics ideally, we'd read this from the icc profile curve, but that can be tricky, instead we'll set it on profile creation. | |
| void | setCopyright (const QString ©right) |
| void | setInfo (const QString &info) |
| void | setManufacturer (const QString &manufacturer) |
| void | setName (const QString &name) |
Private Attributes | |
| QScopedPointer< Private > | d |
Additional Inherited Members | |
Static Public Member Functions inherited from KoColorProfile | |
| static void | colorantsForType (ColorPrimaries primaries, KoColorimetryUtils::xy &whitePoint, QList< KoColorimetryUtils::xy > &colorants, const bool prequantized=false) |
| colorantsForPrimaries fills a QVector<float> with the xy values of the whitepoint and red, green, blue colorants for a given predefined value. Will not change the vector when the primaries are set to 'undefined'. | |
| static QString | getColorPrimariesName (ColorPrimaries primaries) |
| getColorPrimariesName | |
| static QString | getTransferCharacteristicName (TransferCharacteristics curve) |
| getTransferCharacteristicName | |
Public Attributes inherited from KoColorProfile | |
| TransferCharacteristics | characteristics {TRC_UNSPECIFIED} |
| QString | copyright |
| QString | fileName |
| QString | info |
| QString | manufacturer |
| QString | name |
| int | primaries {-1} |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
This class contains an ICC color profile.
Definition at line 22 of file IccColorProfile.h.
|
explicit |
Definition at line 96 of file IccColorProfile.cpp.
|
explicit |
Definition at line 101 of file IccColorProfile.cpp.
References init(), rawData(), and setRawData().
|
explicit |
Definition at line 108 of file IccColorProfile.cpp.
References KoColorProfile::colorantsForType(), d, KoColorProfile::getColorPrimariesName(), KoColorProfile::getTransferCharacteristicName(), init(), KoColorProfileQuery::isGrayscale(), KoColorProfileQuery::isValid(), KIS_SAFE_ASSERT_RECOVER_RETURN, LcmsColorProfileContainer::lcmsProfileToByteArray(), KoColorProfile::name, KoColorProfile::primaries, KoColorProfileQuery::primaries, PRIMARIES_ITU_R_BT_2020_2_AND_2100_0, PRIMARIES_UNSPECIFIED, KoColorProfileQuery::rgbColorants, KoColorProfile::setCharacteristics(), LcmsPredefinedPipelineFunctions::setDiffuseWhitePerceptualQuantizer(), KoColorProfile::setFileName(), LcmsPredefinedPipelineFunctions::setPerceptualQuantizerAToBDummyPipeline(), LcmsPredefinedPipelineFunctions::setPerceptualQuantizerBToADummyPipeline(), setRawData(), KisDomUtils::toString(), KoColorProfileQuery::transfer, LcmsColorProfileContainer::transferFunction(), TRC_ITU_R_BT_2100_0_HLG, TRC_ITU_R_BT_2100_0_PQ, KoColorProfileQuery::whitePoint, KoColorimetryUtils::xy::x, and KoColorimetryUtils::xy::y.
| IccColorProfile::IccColorProfile | ( | const IccColorProfile & | rhs | ) |
Definition at line 226 of file IccColorProfile.cpp.
References d.
|
override |
Definition at line 233 of file IccColorProfile.cpp.
References d.
| LcmsColorProfileContainer * IccColorProfile::asLcms | ( | ) | const |
Definition at line 505 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Create a copy of this profile. Data that shall not change during the life time of the profile shouldn't be duplicated but shared, like for instance ICC data.
Data that shall be changed like a palette or hdr information such as exposure must be duplicated while cloning.
Implements KoColorProfile.
Definition at line 238 of file IccColorProfile.cpp.
References IccColorProfile().
|
overridevirtual |
Reimplemented from KoColorProfile.
Definition at line 268 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Comparing profile's TRC against the other with defined error threshold, returns true if profile TRC is matched.
Implements KoColorProfile.
Definition at line 423 of file IccColorProfile.cpp.
References KoColorProfile::characteristics, and d.
Delinearizes first 3 values of QVector, leaving other values unchanged. Returns the same QVector if it is not possible to delinearize. Effectively undoes LinearizeFloatValue.
Implements KoColorProfile.
Definition at line 436 of file IccColorProfile.cpp.
References d.
Implements KoColorProfile.
Definition at line 446 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 391 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 384 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 413 of file IccColorProfile.cpp.
References d.
| const QVector< KoChannelInfo::DoubleRange > & IccColorProfile::getFloatUIMinMax | ( | void | ) | const |
Returns the set of min/maxes for each channel in this profile. These (sometimes approximate) min and maxes are suitable for UI building. Furthermore, then only apply to the floating point uses of this profile, and not the integer variants.
Definition at line 520 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 406 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 398 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 365 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 372 of file IccColorProfile.cpp.
References d.
|
protected |
Definition at line 481 of file IccColorProfile.cpp.
References d, KoColorProfile::setCharacteristics(), KoColorProfile::setCopyright(), KoColorProfile::setInfo(), KoColorProfile::setManufacturer(), and KoColorProfile::setName().
|
overridevirtual |
Implements KoColorProfile.
Definition at line 378 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 329 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 305 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 298 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 321 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 312 of file IccColorProfile.cpp.
References d.
Linearizes first 3 values of QVector, leaving other values unchanged. Returns the same QVector if it is not possible to linearize.
Implements KoColorProfile.
Definition at line 431 of file IccColorProfile.cpp.
References d.
More imprecise versions of the above(limited to 16bit, and can't delinearize above 1.0.) Use this for filters and images.
Implements KoColorProfile.
Definition at line 441 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Load the profile in memory.
Reimplemented from KoColorProfile.
Definition at line 461 of file IccColorProfile.cpp.
References KoColorProfile::fileName, init(), rawData(), and setRawData().
|
overridevirtual |
Implements KoColorProfile.
Definition at line 511 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Reimplemented from KoColorProfile.
Definition at line 243 of file IccColorProfile.cpp.
References d.
|
virtual |
Definition at line 476 of file IccColorProfile.cpp.
|
virtual |
Override this function to save the profile.
| fileName | destination |
Reimplemented from KoColorProfile.
Definition at line 62 of file KoColorProfile.cpp.
References KoColorProfile::d.
|
protected |
|
overridevirtual |
Implements KoColorProfile.
Definition at line 351 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 337 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 358 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 344 of file IccColorProfile.cpp.
References d.
|
inlineoverridevirtual |
Reimplemented from KoColorProfile.
Definition at line 120 of file IccColorProfile.h.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 452 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 253 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Return version
Implements KoColorProfile.
Definition at line 260 of file IccColorProfile.cpp.
References d.
|
private |
Definition at line 142 of file IccColorProfile.h.