|
Krita Source Code Documentation
|
#include <KoFallBackColorTransformation.h>
Inheritance diagram for KoFallBackColorTransformation:Public Member Functions | |
| KoFallBackColorTransformation (const KoColorSpace *_cs, const KoColorSpace *_fallBackCS, KoColorTransformation *_transfo) | |
| KoFallBackColorTransformation (KoColorConversionTransformation *_csToFallBack, KoColorConversionTransformation *_fallBackToCs, KoColorTransformation *_transfo) | |
| int | parameterId (const QString &name) const override |
| QList< QString > | parameters () const override |
| void | setParameter (int id, const QVariant ¶meter) override |
| void | transform (const quint8 *src, quint8 *dst, qint32 nPixels) const override |
| ~KoFallBackColorTransformation () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KoColorTransformation | |
| virtual bool | isValid () const |
| void | setParameters (const QHash< QString, QVariant > ¶meters) |
| virtual | ~KoColorTransformation () |
Public Attributes | |
| quint8 * | buff |
| qint32 | buffSize |
| KoColorTransformation * | colorTransformation |
| const KoColorConversionTransformation * | csToFallBack |
| KoCachedColorConversionTransformation * | csToFallBackCache |
| const KoColorSpace * | fallBackColorSpace |
| const KoColorConversionTransformation * | fallBackToCs |
| KoCachedColorConversionTransformation * | fallBackToCsCache |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| Private *const | d |
Use this color transformation to encapsulate another KoColorTransformation and perform a color conversion before and after using that KoColorTransformation.
Definition at line 17 of file KoFallBackColorTransformation.cpp.
| KoFallBackColorTransformation::KoFallBackColorTransformation | ( | const KoColorSpace * | _cs, |
| const KoColorSpace * | _fallBackCS, | ||
| KoColorTransformation * | _transfo ) |
Create a fall back color transformation using the given two color spaces. This constructor will initialize his own color conversion objects.
The created object takes owner ship of the transformation and will take charge of deleting it.
| cs | color space of the source and destination pixels |
| fallBackCS | color space use natively by the color transformation |
| transfo | the color transformation (working in the fallback color space) |
Definition at line 28 of file KoFallBackColorTransformation.cpp.
References d, KoColorSpaceRegistry::instance(), KoColorConversionTransformation::internalConversionFlags(), and KoColorConversionTransformation::internalRenderingIntent().
| KoFallBackColorTransformation::KoFallBackColorTransformation | ( | KoColorConversionTransformation * | _csToFallBack, |
| KoColorConversionTransformation * | _fallBackToCs, | ||
| KoColorTransformation * | _transfo ) |
Creates a fall back color transformation using the two transformations given as parameters. The created object take ownership of the conversion and the color transformations and will be in charge of deleting them.
| csToFallBack | transformation from the color space to the fallback |
| fallBackToCs | transformation from the fallback to the color space |
| transfo | the color transformation (working in the fallback color space) |
Definition at line 40 of file KoFallBackColorTransformation.cpp.
References d, KoColorConversionTransformation::dstColorSpace, and KoColorConversionTransformation::srcColorSpace.
|
override |
Definition at line 54 of file KoFallBackColorTransformation.cpp.
References d.
|
overridevirtual |
Get the parameter id for a parameter name
Reimplemented from KoColorTransformation.
Definition at line 88 of file KoFallBackColorTransformation.cpp.
References d.
|
overridevirtual |
Reimplemented from KoColorTransformation.
Definition at line 83 of file KoFallBackColorTransformation.cpp.
References d.
|
overridevirtual |
Update one parameter of a cached transformation object.
Reimplemented from KoColorTransformation.
Definition at line 93 of file KoFallBackColorTransformation.cpp.
References d.
|
overridevirtual |
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.
Implements KoColorTransformation.
Definition at line 71 of file KoFallBackColorTransformation.cpp.
References d.
|
mutable |
Definition at line 24 of file KoFallBackColorTransformation.cpp.
|
mutable |
Definition at line 25 of file KoFallBackColorTransformation.cpp.
| KoColorTransformation* KoFallBackColorTransformation::colorTransformation |
Definition at line 23 of file KoFallBackColorTransformation.cpp.
| const KoColorConversionTransformation* KoFallBackColorTransformation::csToFallBack |
Definition at line 21 of file KoFallBackColorTransformation.cpp.
| KoCachedColorConversionTransformation* KoFallBackColorTransformation::csToFallBackCache |
Definition at line 19 of file KoFallBackColorTransformation.cpp.
|
private |
Definition at line 55 of file KoFallBackColorTransformation.h.
| const KoColorSpace* KoFallBackColorTransformation::fallBackColorSpace |
Definition at line 18 of file KoFallBackColorTransformation.cpp.
| const KoColorConversionTransformation* KoFallBackColorTransformation::fallBackToCs |
Definition at line 22 of file KoFallBackColorTransformation.cpp.
| KoCachedColorConversionTransformation* KoFallBackColorTransformation::fallBackToCsCache |
Definition at line 20 of file KoFallBackColorTransformation.cpp.