#include <KoColorSpaceAbstract.h>
Graphe d'héritage de KoColorSpaceAbstract< _CSTraits >:
Fonctions membres publiques | |
KoColorSpaceAbstract (const QString &id, const QString &name, KoColorSpaceRegistry *parent) | |
virtual quint32 | nColorChannels () const |
virtual quint32 | nChannels () const |
virtual quint32 | pixelSize () const |
virtual QString | channelValueText (const quint8 *pixel, quint32 channelIndex) const |
virtual QString | normalisedChannelValueText (const quint8 *pixel, quint32 channelIndex) const |
virtual quint8 | scaleToU8 (const quint8 *srcPixel, qint32 channelIndex) const |
virtual quint16 | scaleToU16 (const quint8 *srcPixel, qint32 channelIndex) const |
virtual void | getSingleChannelPixel (quint8 *dstPixel, const quint8 *srcPixel, quint32 channelIndex) const |
virtual quint8 | getAlpha (const quint8 *U8_pixel) const |
virtual void | setAlpha (quint8 *pixels, quint8 alpha, qint32 nPixels) const |
virtual void | multiplyAlpha (quint8 *pixels, quint8 alpha, qint32 nPixels) const |
virtual void | applyAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) const |
virtual void | applyInverseAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) const |
virtual void | mixColors (const quint8 **colors, const quint8 *weights, quint32 nColors, quint8 *dst) const |
virtual void | convolveColors (quint8 **colors, qint32 *kernelValues, KoChannelInfo::enumChannelFlags channelFlags, quint8 *dst, qint32 factor, qint32 offset, qint32 nPixels) const |
virtual quint8 | intensity8 (const quint8 *src) const |
virtual KoID | mathToolboxID () const |
Fonctions membres protégées | |
const _CSTraits::channels_type * | nativeArray (const quint8 *a) const |
_CSTraits::channels_type * | nativeArray (quint8 *a) const |
Définition à la ligne 91 du fichier KoColorSpaceAbstract.h.
KoColorSpaceAbstract< _CSTraits >::KoColorSpaceAbstract | ( | const QString & | id, | |
const QString & | name, | |||
KoColorSpaceRegistry * | parent | |||
) | [inline] |
Définition à la ligne 93 du fichier KoColorSpaceAbstract.h.
virtual quint32 KoColorSpaceAbstract< _CSTraits >::nColorChannels | ( | ) | const [inline, virtual] |
The total number of color channels (excludes alpha and substance) for a single pixel in this color model.
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 97 du fichier KoColorSpaceAbstract.h.
virtual quint32 KoColorSpaceAbstract< _CSTraits >::nChannels | ( | ) | const [inline, virtual] |
The total number of channels for a single pixel in this color model
Implémente KoColorSpace.
Définition à la ligne 98 du fichier KoColorSpaceAbstract.h.
virtual quint32 KoColorSpaceAbstract< _CSTraits >::pixelSize | ( | ) | const [inline, virtual] |
The size in bytes of a single pixel in this color model
Implémente KoColorSpace.
Définition à la ligne 99 du fichier KoColorSpaceAbstract.h.
Référencé par KoColorSpaceAbstract< AlphaU8Traits >::applyAlphaU8Mask(), KoColorSpaceAbstract< AlphaU8Traits >::applyInverseAlphaU8Mask(), KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), KoLcmsColorSpace< AlphaU8Traits >::darken(), KoLcmsColorSpace< AlphaU8Traits >::invertColor(), KoColorSpaceAbstract< AlphaU8Traits >::multiplyAlpha(), et KoColorSpaceAbstract< AlphaU8Traits >::setAlpha().
Voici le graphe d'appel pour cette fonction :
virtual QString KoColorSpaceAbstract< _CSTraits >::channelValueText | ( | const quint8 * | pixel, | |
quint32 | channelIndex | |||
) | const [inline, virtual] |
Return a string with the channel's value suitable for display in the gui.
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 101 du fichier KoColorSpaceAbstract.h.
virtual QString KoColorSpaceAbstract< _CSTraits >::normalisedChannelValueText | ( | const quint8 * | pixel, | |
quint32 | channelIndex | |||
) | const [inline, virtual] |
Return a string with the channel's value with integer channels normalised to the floating point range 0 to 1, if appropriate.
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace, et KoLabColorSpace.
Définition à la ligne 108 du fichier KoColorSpaceAbstract.h.
virtual quint8 KoColorSpaceAbstract< _CSTraits >::scaleToU8 | ( | const quint8 * | srcPixel, | |
qint32 | channelIndex | |||
) | const [inline, virtual] |
Convert the value of the channel at the specified position into an 8-bit value. The position is not the number of bytes, but the position of the channel as defined in the channel info list.
Implémente KoColorSpace.
Définition à la ligne 115 du fichier KoColorSpaceAbstract.h.
virtual quint16 KoColorSpaceAbstract< _CSTraits >::scaleToU16 | ( | const quint8 * | srcPixel, | |
qint32 | channelIndex | |||
) | const [inline, virtual] |
Convert the value of the channel at the specified position into a 16-bit value. This may be upscaling or downscaling, depending on the defined value of the channel
Implémente KoColorSpace.
Définition à la ligne 120 du fichier KoColorSpaceAbstract.h.
virtual void KoColorSpaceAbstract< _CSTraits >::getSingleChannelPixel | ( | quint8 * | dstPixel, | |
const quint8 * | srcPixel, | |||
quint32 | channelIndex | |||
) | const [inline, virtual] |
Set dstPixel to the pixel containing only the given channel of srcPixel. The remaining channels should be set to whatever makes sense for 'empty' channels of this color space, with the intent being that the pixel should look like it only has the given channel.
Implémente KoColorSpace.
Définition à la ligne 124 du fichier KoColorSpaceAbstract.h.
virtual quint8 KoColorSpaceAbstract< _CSTraits >::getAlpha | ( | const quint8 * | U8_pixel | ) | const [inline, virtual] |
Get the alpha value of the given pixel, downscaled to an 8-bit value.
Implémente KoColorSpace.
Définition à la ligne 138 du fichier KoColorSpaceAbstract.h.
Référencé par KoLcmsColorSpace< AlphaU8Traits >::convertPixelsTo(), KoColorSpaceAbstract< AlphaU8Traits >::convolveColors(), KoLcmsColorSpace< AlphaU8Traits >::difference(), KoColorSpaceAbstract< AlphaU8Traits >::mixColors(), et KoLcmsColorSpace< AlphaU8Traits >::toQColor().
Voici le graphe d'appel pour cette fonction :
virtual void KoColorSpaceAbstract< _CSTraits >::setAlpha | ( | quint8 * | pixels, | |
quint8 | alpha, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Set the alpha channel of the given run of pixels to the given value.
pixels -- a pointer to the pixels that will have their alpha set to this value alpha -- a downscaled 8-bit value for opacity nPixels -- the number of pixels
Implémente KoColorSpace.
Définition à la ligne 144 du fichier KoColorSpaceAbstract.h.
Référencé par KoColorSpaceAbstract< AlphaU8Traits >::convolveColors(), KoLcmsColorSpace< AlphaU8Traits >::darken(), et KoLcmsColorSpace< AlphaU8Traits >::fromQColor().
Voici le graphe d'appel pour cette fonction :
virtual void KoColorSpaceAbstract< _CSTraits >::multiplyAlpha | ( | quint8 * | pixels, | |
quint8 | alpha, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Multiply the alpha channel of the given run of pixels by the given value.
pixels -- a pointer to the pixels that will have their alpha set to this value alpha -- a downscaled 8-bit value for opacity nPixels -- the number of pixels
Implémente KoColorSpace.
Définition à la ligne 153 du fichier KoColorSpaceAbstract.h.
virtual void KoColorSpaceAbstract< _CSTraits >::applyAlphaU8Mask | ( | quint8 * | pixels, | |
const quint8 * | alpha, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Applies the specified 8-bit alpha mask to the pixels. We assume that there are just as many alpha values as pixels but we do not check this; the alpha values are assumed to be 8-bits.
Implémente KoColorSpace.
Définition à la ligne 166 du fichier KoColorSpaceAbstract.h.
virtual void KoColorSpaceAbstract< _CSTraits >::applyInverseAlphaU8Mask | ( | quint8 * | pixels, | |
const quint8 * | alpha, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Applies the inverted 8-bit alpha mask to the pixels. We assume that there are just as many alpha values as pixels but we do not check this; the alpha values are assumed to be 8-bits.
Implémente KoColorSpace.
Définition à la ligne 178 du fichier KoColorSpaceAbstract.h.
virtual void KoColorSpaceAbstract< _CSTraits >::mixColors | ( | const quint8 ** | colors, | |
const quint8 * | weights, | |||
quint32 | nColors, | |||
quint8 * | dst | |||
) | const [inline, virtual] |
Mix the colors given their weights and return in dst The sum of weights is assumed 255
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 190 du fichier KoColorSpaceAbstract.h.
virtual void KoColorSpaceAbstract< _CSTraits >::convolveColors | ( | quint8 ** | colors, | |
qint32 * | kernelValues, | |||
KoChannelInfo::enumChannelFlags | channelFlags, | |||
quint8 * | dst, | |||
qint32 | factor, | |||
qint32 | offset, | |||
qint32 | nPixels | |||
) | const [inline, virtual] |
Convolve the given array of pointers to pixels and return the result in dst. The kernel values are clamped between -128 and 128
Implémente KoColorSpace.
Réimplémentée dans KoAlphaColorSpace.
Définition à la ligne 229 du fichier KoColorSpaceAbstract.h.
virtual quint8 KoColorSpaceAbstract< _CSTraits >::intensity8 | ( | const quint8 * | src | ) | const [inline, virtual] |
Calculate the intensity of the given pixel, scaled down to the range 0-255. XXX: Maybe this should be more flexible
Implémente KoColorSpace.
Définition à la ligne 261 du fichier KoColorSpaceAbstract.h.
virtual KoID KoColorSpaceAbstract< _CSTraits >::mathToolboxID | ( | ) | const [inline, virtual] |
Create a mathematical toolbox compatible with this colorspace
Implémente KoColorSpace.
Définition à la ligne 269 du fichier KoColorSpaceAbstract.h.
const _CSTraits::channels_type* KoColorSpaceAbstract< _CSTraits >::nativeArray | ( | const quint8 * | a | ) | const [inline, protected] |
Définition à la ligne 275 du fichier KoColorSpaceAbstract.h.
Référencé par KoColorSpaceAbstract< AlphaU8Traits >::applyAlphaU8Mask(), KoColorSpaceAbstract< AlphaU8Traits >::applyInverseAlphaU8Mask(), KoColorSpaceAbstract< AlphaU8Traits >::channelValueText(), KoColorSpaceAbstract< AlphaU8Traits >::convolveColors(), KoColorSpaceAbstract< AlphaU8Traits >::getAlpha(), KoColorSpaceAbstract< AlphaU8Traits >::getSingleChannelPixel(), KoColorSpaceAbstract< AlphaU8Traits >::mixColors(), KoColorSpaceAbstract< AlphaU8Traits >::multiplyAlpha(), KoColorSpaceAbstract< AlphaU8Traits >::normalisedChannelValueText(), KoColorSpaceAbstract< AlphaU8Traits >::scaleToU16(), KoColorSpaceAbstract< AlphaU8Traits >::scaleToU8(), et KoColorSpaceAbstract< AlphaU8Traits >::setAlpha().
Voici le graphe d'appel pour cette fonction :
_CSTraits::channels_type* KoColorSpaceAbstract< _CSTraits >::nativeArray | ( | quint8 * | a | ) | const [inline, protected] |
Définition à la ligne 276 du fichier KoColorSpaceAbstract.h.