#include <KoLcmsColorSpace.h>
Graphe d'héritage de KoLcmsColorSpace< _CSTraits >:
Fonctions membres publiques | |
void | setColorSpaceType (quint32 type) |
quint32 | colorSpaceType () const |
virtual icColorSpaceSignature | colorSpaceSignature () const |
virtual bool | hasHighDynamicRange () const |
virtual KoColorProfile * | getProfile () const |
virtual void | fromQColor (const QColor &color, quint8 *dst, KoColorProfile *profile=0) const |
virtual void | fromQColor (const QColor &color, quint8 opacity, quint8 *dst, KoColorProfile *profile=0) const |
virtual void | toQColor (const quint8 *src, QColor *c, KoColorProfile *profile=0) const |
virtual void | toQColor (const quint8 *src, QColor *c, quint8 *opacity, KoColorProfile *profile=0) const |
virtual QImage | convertToQImage (const quint8 *data, qint32 width, qint32 height, KoColorProfile *dstProfile, qint32 renderingIntent, float) const |
virtual void | toLabA16 (const quint8 *src, quint8 *dst, const quint32 nPixels) const |
virtual void | fromLabA16 (const quint8 *src, quint8 *dst, const quint32 nPixels) const |
virtual void | fromRgbA16 (const quint8 *src, quint8 *dst, const quint32 nPixels) const |
virtual void | toRgbA16 (const quint8 *src, quint8 *dst, const quint32 nPixels) const |
virtual bool | convertPixelsTo (const quint8 *src, quint8 *dst, const KoColorSpace *dstColorSpace, quint32 numPixels, qint32 renderingIntent) const |
virtual KoColorAdjustment * | createBrightnessContrastAdjustment (quint16 *transferValues) const |
virtual KoColorAdjustment * | createDesaturateAdjustment () const |
virtual KoColorAdjustment * | createPerChannelAdjustment (quint16 **transferValues) const |
virtual void | applyAdjustment (const quint8 *src, quint8 *dst, KoColorAdjustment *adjustment, qint32 nPixels) const |
virtual void | invertColor (quint8 *src, qint32 nPixels) const |
virtual quint8 | difference (const quint8 *src1, const quint8 *src2) const |
void | darken (const quint8 *src, quint8 *dst, qint32 shade, bool compensate, double compensation, qint32 nPixels) const |
Fonctions membres protégées | |
KoLcmsColorSpace (const QString &id, const QString &name, KoColorSpaceRegistry *parent, DWORD cmType, icColorSpaceSignature colorSpaceSignature, KoColorProfile *p) | |
void | init () |
Types privés | |
typedef struct KoLcmsColorSpace::BCHSWADJUSTS * | LPBCHSWADJUSTS |
typedef QMap< const KoColorSpace *, cmsHTRANSFORM > | TransformMap |
Fonctions membres privées | |
cmsHTRANSFORM | createTransform (const KoColorSpace *dstColorSpace, KoColorProfile *srcProfile, KoColorProfile *dstProfile, qint32 renderingIntent) const |
Fonctions membres privées statiques | |
static int | desaturateSampler (register WORD In[], register WORD Out[], register LPVOID) |
Attributs privés | |
quint8 * | m_qcolordata |
cmsHTRANSFORM | m_defaultToRGB |
cmsHTRANSFORM | m_defaultFromRGB |
cmsHTRANSFORM | m_defaultToRGB16 |
cmsHTRANSFORM | m_defaultFromRGB16 |
cmsHPROFILE | m_lastRGBProfile |
cmsHTRANSFORM | m_lastToRGB |
cmsHTRANSFORM | m_lastFromRGB |
cmsHTRANSFORM | m_defaultToLab |
cmsHTRANSFORM | m_defaultFromLab |
KoColorProfile * | m_profile |
const KoColorSpace * | m_lastUsedDstColorSpace |
cmsHTRANSFORM | m_lastUsedTransform |
DWORD | m_cmType |
icColorSpaceSignature | m_colorSpaceSignature |
TransformMap | m_transforms |
Classes | |
struct | BCHSWADJUSTS |
Définition à la ligne 65 du fichier KoLcmsColorSpace.h.
typedef struct KoLcmsColorSpace::BCHSWADJUSTS * KoLcmsColorSpace< _CSTraits >::LPBCHSWADJUSTS [private] |
typedef QMap<const KoColorSpace *, cmsHTRANSFORM> KoLcmsColorSpace< _CSTraits >::TransformMap [private] |
Définition à la ligne 596 du fichier KoLcmsColorSpace.h.
KoLcmsColorSpace< _CSTraits >::KoLcmsColorSpace | ( | const QString & | id, | |
const QString & | name, | |||
KoColorSpaceRegistry * | parent, | |||
DWORD | cmType, | |||
icColorSpaceSignature | colorSpaceSignature, | |||
KoColorProfile * | p | |||
) | [inline, protected] |
Définition à la ligne 67 du fichier KoLcmsColorSpace.h.
void KoLcmsColorSpace< _CSTraits >::init | ( | ) | [inline, protected] |
Définition à la ligne 86 du fichier KoLcmsColorSpace.h.
void KoLcmsColorSpace< _CSTraits >::setColorSpaceType | ( | quint32 | type | ) | [inline] |
Définition à la ligne 122 du fichier KoLcmsColorSpace.h.
quint32 KoLcmsColorSpace< _CSTraits >::colorSpaceType | ( | ) | const [inline, virtual] |
lcms colorspace type definition.
Implémente KoColorSpace.
Définition à la ligne 123 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), et KoLcmsColorSpace< AlphaU8Traits >::createTransform().
Voici le graphe d'appel pour cette fonction :
virtual icColorSpaceSignature KoLcmsColorSpace< _CSTraits >::colorSpaceSignature | ( | ) | const [inline, virtual] |
Implémente KoColorSpace.
Définition à la ligne 125 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::createPerChannelAdjustment().
Voici le graphe d'appel pour cette fonction :
virtual bool KoLcmsColorSpace< _CSTraits >::hasHighDynamicRange | ( | ) | const [inline, virtual] |
Returns true if the colorspace supports channel values outside the (normalised) range 0 to 1.
Implémente KoColorSpace.
Définition à la ligne 127 du fichier KoLcmsColorSpace.h.
virtual KoColorProfile* KoLcmsColorSpace< _CSTraits >::getProfile | ( | ) | const [inline, virtual] |
Return the profile of this color space. This may be 0
Implémente KoColorSpace.
Définition à la ligne 128 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo().
Voici le graphe d'appel pour cette fonction :
virtual void KoLcmsColorSpace< _CSTraits >::fromQColor | ( | const QColor & | color, | |
quint8 * | dst, | |||
KoColorProfile * | profile = 0 | |||
) | const [inline, virtual] |
The fromQColor methods take a given color defined as an RGB QColor and fills a byte array with the corresponding color in the the colorspace managed by this strategy.
c | the QColor that will be used to fill dst | |
dst | a pointer to a pixel | |
profile | the optional profile that describes the color values of QColor |
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 130 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::darken(), et KoLcmsColorSpace< AlphaU8Traits >::fromQColor().
Voici le graphe d'appel pour cette fonction :
virtual void KoLcmsColorSpace< _CSTraits >::fromQColor | ( | const QColor & | color, | |
quint8 | opacity, | |||
quint8 * | dst, | |||
KoColorProfile * | profile = 0 | |||
) | const [inline, virtual] |
The fromQColor methods take a given color defined as an RGB QColor and fills a byte array with the corresponding color in the the colorspace managed by this strategy.
c | the QColor that will be used to fill dst | |
opacity | the opacity of the color | |
dst | a pointer to a pixel | |
profile | the optional profile that describes the color values of QColor |
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 157 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::toQColor | ( | const quint8 * | src, | |
QColor * | c, | |||
KoColorProfile * | profile = 0 | |||
) | const [inline, virtual] |
The toQColor methods take a byte array that is at least pixelSize() long and converts the contents to a QColor, using the given profile as a source profile and the optional profile as a destination profile.
src | a pointer to the source pixel | |
c | the QColor that will be filled with the color at src | |
profile | the optional profile that describes the color in c, for instance the monitor profile |
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 163 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::darken(), KoLcmsColorSpace< AlphaU8Traits >::difference(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
Voici le graphe d'appel pour cette fonction :
virtual void KoLcmsColorSpace< _CSTraits >::toQColor | ( | const quint8 * | src, | |
QColor * | c, | |||
quint8 * | opacity, | |||
KoColorProfile * | profile = 0 | |||
) | const [inline, virtual] |
The toQColor methods take a byte array that is at least pixelSize() long and converts the contents to a QColor, using the given profile as a source profile and the option profile as a destination profile.
src | a pointer to the source pixel | |
c | the QColor that will be filled with the color at src | |
opacity | a pointer to a byte that will be filled with the opacity a src | |
profile | the optional profile that describes the color in c, for instance the monitor profile |
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 182 du fichier KoLcmsColorSpace.h.
virtual QImage KoLcmsColorSpace< _CSTraits >::convertToQImage | ( | const quint8 * | data, | |
qint32 | width, | |||
qint32 | height, | |||
KoColorProfile * | dstProfile, | |||
qint32 | renderingIntent, | |||
float | ||||
) | const [inline, virtual] |
Convert the pixels in data to (8-bit BGRA) QImage using the specified profiles. The pixels are supposed to be encoded in this color model. The default implementation will convert the pixels using either the profiles or the default profiles for the current colorstrategy and the RGBA colorstrategy. If that is not what you want, or if you think you can do better than lcms, reimplement this methods.
data | A pointer to a contiguous memory region containing width * height pixels | |
width | in pixels | |
height | in pixels | |
dstProfile | destination profile | |
renderingIntent | the rendering intent | |
exposure | The exposure setting for rendering a preview of a high dynamic range image. |
Implémente KoColorSpace.
Définition à la ligne 187 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::toLabA16 | ( | const quint8 * | src, | |
quint8 * | dst, | |||
const quint32 | nPixels | |||
) | const [inline, virtual] |
Convert the specified data to Lab. All colorspaces are guaranteed to support this
src | the source data | |
dst | the destination data | |
nPixels | the number of source pixels |
Implémente KoColorSpace.
Définition à la ligne 206 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::fromLabA16 | ( | const quint8 * | src, | |
quint8 * | dst, | |||
const quint32 | nPixels | |||
) | const [inline, virtual] |
Convert the specified data from Lab. to this colorspace. All colorspaces are guaranteed to support this.
src | the pixels in 16 bit lab format | |
dst | the destination data | |
nPixels | the number of pixels in the array |
Implémente KoColorSpace.
Définition à la ligne 213 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::fromRgbA16 | ( | const quint8 * | src, | |
quint8 * | dst, | |||
const quint32 | nPixels | |||
) | const [inline, virtual] |
Convert the specified data from Rgb 16 bits. to this colorspace. All colorspaces are guaranteed to support this.
src | the pixels in 16 bit rgb format | |
dst | the destination data | |
nPixels | the number of pixels in the array |
Implémente KoColorSpace.
Définition à la ligne 219 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::invertColor().
Voici le graphe d'appel pour cette fonction :
virtual void KoLcmsColorSpace< _CSTraits >::toRgbA16 | ( | const quint8 * | src, | |
quint8 * | dst, | |||
const quint32 | nPixels | |||
) | const [inline, virtual] |
Convert the specified data to Rgb 16 bits. All colorspaces are guaranteed to support this
src | the source data | |
dst | the destination data | |
nPixels | the number of source pixels |
Implémente KoColorSpace.
Définition à la ligne 225 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::invertColor().
Voici le graphe d'appel pour cette fonction :
virtual bool KoLcmsColorSpace< _CSTraits >::convertPixelsTo | ( | const quint8 * | src, | |
quint8 * | dst, | |||
const KoColorSpace * | dstColorSpace, | |||
quint32 | numPixels, | |||
qint32 | renderingIntent | |||
) | const [inline, virtual] |
Convert a byte array of srcLen pixels *src to the specified color space and put the converted bytes into the prepared byte array *dst.
Returns false if the conversion failed, true if it succeeded
Implémente KoColorSpace.
Définition à la ligne 232 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertToQImage().
Voici le graphe d'appel pour cette fonction :
virtual KoColorAdjustment* KoLcmsColorSpace< _CSTraits >::createBrightnessContrastAdjustment | ( | quint16 * | transferValues | ) | const [inline, virtual] |
Create an adjustment object for adjusting the brightness and contrast transferValues is a 256 bins array with values from 0 to 0xFFFF
Implémente KoColorSpace.
Définition à la ligne 302 du fichier KoLcmsColorSpace.h.
virtual KoColorAdjustment* KoLcmsColorSpace< _CSTraits >::createDesaturateAdjustment | ( | ) | const [inline, virtual] |
Create an adjustment object for desaturating
Implémente KoColorSpace.
Définition à la ligne 326 du fichier KoLcmsColorSpace.h.
virtual KoColorAdjustment* KoLcmsColorSpace< _CSTraits >::createPerChannelAdjustment | ( | quint16 ** | transferValues | ) | const [inline, virtual] |
Create an adjustment object for adjusting individual channels transferValues is an array of nColorChannels number of 256 bins array with values from 0 to 0xFFFF
Implémente KoColorSpace.
Définition à la ligne 384 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::applyAdjustment | ( | const quint8 * | src, | |
quint8 * | dst, | |||
KoColorAdjustment * | adjustment, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Apply the adjustment created with onr of the other functions
Implémente KoColorSpace.
Définition à la ligne 410 du fichier KoLcmsColorSpace.h.
virtual void KoLcmsColorSpace< _CSTraits >::invertColor | ( | quint8 * | src, | |
qint32 | nPixels | |||
) | const [inline, virtual] |
Invert color channels of the given pixels
Implémente KoColorSpace.
Définition à la ligne 418 du fichier KoLcmsColorSpace.h.
virtual quint8 KoLcmsColorSpace< _CSTraits >::difference | ( | const quint8 * | src1, | |
const quint8 * | src2 | |||
) | const [inline, virtual] |
Get the difference between 2 colors, normalized in the range (0,255)
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 433 du fichier KoLcmsColorSpace.h.
void KoLcmsColorSpace< _CSTraits >::darken | ( | const quint8 * | src, | |
quint8 * | dst, | |||
qint32 | shade, | |||
bool | compensate, | |||
double | compensation, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Darken all color channels with the given amount. If compensate is true, the compensation factor will be used to limit the darkening.
(See the bumpmap filter)
Implémente KoColorSpace.
Définition à la ligne 469 du fichier KoLcmsColorSpace.h.
static int KoLcmsColorSpace< _CSTraits >::desaturateSampler | ( | register WORD | In[], | |
register WORD | Out[], | |||
register | LPVOID | |||
) | [inline, static, private] |
Définition à la ligne 526 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::createDesaturateAdjustment().
Voici le graphe d'appel pour cette fonction :
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::createTransform | ( | const KoColorSpace * | dstColorSpace, | |
KoColorProfile * | srcProfile, | |||
KoColorProfile * | dstProfile, | |||
qint32 | renderingIntent | |||
) | const [inline, private] |
Définition à la ligne 548 du fichier KoLcmsColorSpace.h.
quint8* KoLcmsColorSpace< _CSTraits >::m_qcolordata [mutable, private] |
Définition à la ligne 575 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::init(), KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultToRGB [private] |
Définition à la ligne 576 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::init(), KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultFromRGB [private] |
Définition à la ligne 577 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::init(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultToRGB16 [private] |
Définition à la ligne 578 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::init(), KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toRgbA16().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultFromRGB16 [private] |
Définition à la ligne 579 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::fromRgbA16(), KoLcmsColorSpace< AlphaU8Traits >::init(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
cmsHPROFILE KoLcmsColorSpace< _CSTraits >::m_lastRGBProfile [mutable, private] |
Définition à la ligne 581 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_lastToRGB [mutable, private] |
Définition à la ligne 582 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_lastFromRGB [mutable, private] |
Définition à la ligne 583 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::init(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultToLab [private] |
Définition à la ligne 585 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::darken(), KoLcmsColorSpace< AlphaU8Traits >::difference(), KoLcmsColorSpace< AlphaU8Traits >::init(), KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace(), et KoLcmsColorSpace< AlphaU8Traits >::toLabA16().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_defaultFromLab [private] |
Définition à la ligne 586 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::darken(), KoLcmsColorSpace< AlphaU8Traits >::fromLabA16(), KoLcmsColorSpace< AlphaU8Traits >::init(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
KoColorProfile* KoLcmsColorSpace< _CSTraits >::m_profile [private] |
Définition à la ligne 588 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), KoLcmsColorSpace< AlphaU8Traits >::createBrightnessContrastAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::createDesaturateAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::createPerChannelAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::getProfile(), KoLcmsColorSpace< AlphaU8Traits >::init(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
const KoColorSpace* KoLcmsColorSpace< _CSTraits >::m_lastUsedDstColorSpace [mutable, private] |
Définition à la ligne 589 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
cmsHTRANSFORM KoLcmsColorSpace< _CSTraits >::m_lastUsedTransform [mutable, private] |
Définition à la ligne 590 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), et KoLcmsColorSpace< AlphaU8Traits >::KoLcmsColorSpace().
DWORD KoLcmsColorSpace< _CSTraits >::m_cmType [private] |
Définition à la ligne 592 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::colorSpaceType(), KoLcmsColorSpace< AlphaU8Traits >::createBrightnessContrastAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::createDesaturateAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::createPerChannelAdjustment(), KoLcmsColorSpace< AlphaU8Traits >::fromQColor(), KoLcmsColorSpace< AlphaU8Traits >::init(), KoLcmsColorSpace< AlphaU8Traits >::setColorSpaceType(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
icColorSpaceSignature KoLcmsColorSpace< _CSTraits >::m_colorSpaceSignature [private] |
Définition à la ligne 593 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::colorSpaceSignature().
TransformMap KoLcmsColorSpace< _CSTraits >::m_transforms [mutable, private] |
Définition à la ligne 597 du fichier KoLcmsColorSpace.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo().