|
Krita Source Code Documentation
|
#include <KoLabColorSpaceTraits.h>
Inheritance diagram for KoLabTraits< _channels_type_ >:Classes | |
| struct | Pixel |
Public Types | |
| typedef _channels_type_ | channels_type |
| typedef KoLabColorSpaceMathsTraits< channels_type > | math_trait |
| typedef KoColorSpaceTrait< _channels_type_, 4, 3 > | parent |
Public Types inherited from KoColorSpaceTrait< _channels_type_, 4, 3 > | |
| typedef _channels_type_ | channels_type |
| the type of the value of the channels of this color space | |
| typedef KoColorSpaceMathsTraits< _channels_type_ > | math_trait |
| the associated math class | |
Static Public Member Functions | |
| static channels_type | a (quint8 *data) |
| static channels_type | b (quint8 *data) |
| static void | fromNormalisedChannelsValue (quint8 *pixel, const QVector< float > &values) |
| static channels_type | L (quint8 *data) |
| static void | normalisedChannelsValue (const quint8 *pixel, QVector< float > &v) |
| static QString | normalisedChannelValueText (const quint8 *pixel, quint32 channelIndex) |
| static void | setA (quint8 *data, channels_type nv) |
| Set the a component. | |
| static void | setB (quint8 *data, channels_type nv) |
| Set the a component. | |
| static void | setL (quint8 *data, channels_type nv) |
| Set the L component. | |
Static Public Member Functions inherited from KoColorSpaceTrait< _channels_type_, 4, 3 > | |
| static quint8 * | allocate (quint32 nPixels) |
| static void | applyAlphaNormedFloatMask (quint8 *pixels, const float *alpha, qint32 nPixels) |
| static void | applyAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) |
| static void | applyInverseAlphaNormedFloatMask (quint8 *pixels, const float *alpha, qint32 nPixels) |
| static void | applyInverseAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) |
| static QString | channelValueText (const quint8 *pixel, quint32 channelIndex) |
| static void | copyOpacityU8 (quint8 *src, quint8 *dst, qint32 nPixels) |
| static void | fillGrayBrushWithColor (quint8 *pixels, const QRgb *brush, quint8 *brushColor, qint32 nPixels) |
| static void | fillInverseAlphaNormedFloatMaskWithColor (quint8 *pixels, const float *alpha, const quint8 *brushColor, qint32 nPixels) |
| static void | fromNormalisedChannelsValue (quint8 *pixel, const QVector< float > &values) |
| static void | fromNormalisedChannelsValueImpl (quint8 *pixel, const QVector< float > &values) |
| static void | fromNormalisedChannelsValueImpl (quint8 *pixel, const QVector< float > &values) |
| static void | multiplyAlpha (quint8 *pixels, quint8 alpha, qint32 nPixels) |
| static const channels_type * | nativeArray (const quint8 *a) |
| static channels_type * | nativeArray (quint8 *a) |
| static void | normalisedChannelsValue (const quint8 *pixel, QVector< float > &v) |
| static void | normalisedChannelsValueImpl (const quint8 *pixel, QVector< float > &v) |
| static void | normalisedChannelsValueImpl (const quint8 *pixel, QVector< float > &v) |
| static QString | normalisedChannelValueText (const quint8 *pixel, quint32 channelIndex) |
| static qreal | opacityF (const quint8 *U8_pixel) |
| static quint8 | opacityU8 (const quint8 *U8_pixel) |
| static void | setOpacity (quint8 *pixels, qreal alpha, qint32 nPixels) |
| static void | setOpacity (quint8 *pixels, quint8 alpha, qint32 nPixels) |
| static void | singleChannelPixel (quint8 *dstPixel, const quint8 *srcPixel, quint32 channelIndex) |
Static Public Attributes | |
| static const qint32 | a_pos = 1 |
| static const qint32 | b_pos = 2 |
| static const qint32 | L_pos = 0 |
Static Public Attributes inherited from KoColorSpaceTrait< _channels_type_, 4, 3 > | |
| static const qint32 | alpha_pos |
| static const quint32 | channels_nb |
| the number of channels in this color space | |
| static const int | depth |
| the number of bit for each channel | |
| static const quint32 | pixelSize |
LAB traits, it provides some convenient functions to access LAB channels through an explicit API.
Use this class in conjunction with KoColorSpace::toLabA16 and KoColorSpace::fromLabA16 data.
Example: quint8* p = KoLabU16Traits::allocate(1); oneKoColorSpace->toLabA16(somepointertodata, p, 1); KoLabU16Traits::setL( p, KoLabU16Traits::L(p) / 10 ); oneKoColorSpace->fromLabA16(p, somepointertodata, 1);
Definition at line 27 of file KoLabColorSpaceTraits.h.
| typedef _channels_type_ KoLabTraits< _channels_type_ >::channels_type |
Definition at line 28 of file KoLabColorSpaceTraits.h.
| typedef KoLabColorSpaceMathsTraits<channels_type> KoLabTraits< _channels_type_ >::math_trait |
Definition at line 30 of file KoLabColorSpaceTraits.h.
| typedef KoColorSpaceTrait<_channels_type_, 4, 3> KoLabTraits< _channels_type_ >::parent |
Definition at line 29 of file KoLabColorSpaceTraits.h.
|
inlinestatic |
Definition at line 56 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::a_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Definition at line 66 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::b_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Definition at line 125 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::a_pos, KoLabTraits< _channels_type_ >::b(), KoLabTraits< _channels_type_ >::b_pos, KoColorSpaceTrait< _channels_type_, 4, 3 >::channels_nb, KoLabTraits< _channels_type_ >::L_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Definition at line 46 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::L_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Definition at line 98 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::a_pos, KoLabTraits< _channels_type_ >::b_pos, KoColorSpaceTrait< _channels_type_, 4, 3 >::channels_nb, KoLabTraits< _channels_type_ >::L_pos, KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray(), and v.
|
inlinestatic |
Definition at line 77 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::a_pos, KoLabTraits< _channels_type_ >::b_pos, KoColorSpaceTrait< _channels_type_, 4, 3 >::channels_nb, KoLabTraits< _channels_type_ >::L_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Set the a component.
Definition at line 61 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::a_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Set the a component.
Definition at line 71 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::b_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
inlinestatic |
Set the L component.
Definition at line 51 of file KoLabColorSpaceTraits.h.
References KoLabTraits< _channels_type_ >::L_pos, and KoColorSpaceTrait< _channels_type_, 4, 3 >::nativeArray().
|
static |
Definition at line 32 of file KoLabColorSpaceTraits.h.
|
static |
Definition at line 33 of file KoLabColorSpaceTraits.h.
|
static |
Definition at line 31 of file KoLabColorSpaceTraits.h.