|
Krita Source Code Documentation
|
Inheritance diagram for KisGamutMapClipAdjustment< ModelType, DifferenceType >:Public Member Functions | |
| KisGamutMapClipAdjustment (const KoColorSpace *sourceSpace) | |
| int | parameterId (const QString &name) const override |
| QList< QString > | parameters () const override |
| void | setParameter (int id, const QVariant ¶meter) override |
| void | transform (const quint8 *srcU8, quint8 *dstU8, qint32 nPixels) const override |
Public Member Functions inherited from KoColorTransformation | |
| virtual bool | isValid () const |
| void | setParameters (const QHash< QString, QVariant > ¶meters) |
| virtual | ~KoColorTransformation () |
Private Attributes | |
| QMap< float, QPointF > | m_cuspDescription |
| const KoColorSpace * | m_sourceSpace |
| QString | m_targetColorProfileName |
Definition at line 110 of file kis_gamutmap_clip_adjustment.cpp.
|
inline |
Definition at line 113 of file kis_gamutmap_clip_adjustment.cpp.
|
inlineoverridevirtual |
Get the parameter id for a parameter name
Reimplemented from KoColorTransformation.
Definition at line 227 of file kis_gamutmap_clip_adjustment.cpp.
|
inlineoverridevirtual |
Reimplemented from KoColorTransformation.
Definition at line 219 of file kis_gamutmap_clip_adjustment.cpp.
|
inlineoverridevirtual |
Update one parameter of a cached transformation object.
Reimplemented from KoColorTransformation.
Definition at line 237 of file kis_gamutmap_clip_adjustment.cpp.
References KisGamutMapClipAdjustment< ModelType, DifferenceType >::m_cuspDescription, and KisGamutMapClipAdjustment< ModelType, DifferenceType >::m_targetColorProfileName.
|
inlineoverridevirtual |
This function apply the transformation on a given number of pixels.
| src | a pointer to the source pixels |
| dst | a pointer to the destination pixels |
| nPixels | the number of pixels |
This function may or may not be thread safe. You need to create one KoColorTransformation per thread.
We are treating the cusp triangle as linear inside the SDR standard range. Within the standard range, cube root works better than hdr's PQ. This is good enough for RGB profiles, CMYK profiles might get better results with the MINDE method. Overall though, we just want to move the colors into gamut enough so that we don't get hue shifts when converting, and this method delivers on that nicely.
Implements KoColorTransformation.
Definition at line 118 of file kis_gamutmap_clip_adjustment.cpp.
References KoColorConversionTransformation::adjustmentConversionFlags(), KoColorSpace::channelCount(), KoColorProfile::colorModelID(), KoColorSpaceRegistry::colorSpace(), KoColorSpace::convertPixelsTo(), KoGamutMappingUtils::cuspForHue(), KoColorSpace::fromNormalisedChannelsValue(), GrayAColorModelID, KoID::id(), KoColorSpaceRegistry::instance(), Integer16BitsColorDepthID, KoColorConversionTransformation::IntentRelativeColorimetric, KisGamutMapClipAdjustment< ModelType, DifferenceType >::m_cuspDescription, KisGamutMapClipAdjustment< ModelType, DifferenceType >::m_sourceSpace, KisGamutMapClipAdjustment< ModelType, DifferenceType >::m_targetColorProfileName, xsimd::max(), KoColorSpace::normalisedChannelsValue(), KoColorSpace::pixelSize(), and KoColorSpaceRegistry::profileByName().
|
private |
Definition at line 262 of file kis_gamutmap_clip_adjustment.cpp.
|
private |
Definition at line 263 of file kis_gamutmap_clip_adjustment.cpp.
|
private |
Definition at line 261 of file kis_gamutmap_clip_adjustment.cpp.