krita

KisF32BaseColorSpace Class Reference

Inheritance diagram for KisF32BaseColorSpace:

KisAbstractColorSpace KisColorSpace List of all members.

Detailed Description

Definition at line 57 of file kis_f32_base_colorspace.h.


Public Member Functions

 KisF32BaseColorSpace (const KisID &id, DWORD cmType, icColorSpaceSignature colorSpaceSignature, KisColorSpaceFactoryRegistry *parent, KisProfile *p)
virtual Q_UINT8 getAlpha (const Q_UINT8 *pixel) const
virtual void setAlpha (Q_UINT8 *pixels, Q_UINT8 alpha, Q_INT32 nPixels) const
virtual void multiplyAlpha (Q_UINT8 *pixels, Q_UINT8 alpha, Q_INT32 nPixels)
virtual void applyAlphaU8Mask (Q_UINT8 *pixels, Q_UINT8 *alpha, Q_INT32 nPixels)
virtual void applyInverseAlphaU8Mask (Q_UINT8 *pixels, Q_UINT8 *alpha, Q_INT32 nPixels)
virtual QString channelValueText (const Q_UINT8 *pixel, Q_UINT32 channelIndex) const
virtual QString normalisedChannelValueText (const Q_UINT8 *pixel, Q_UINT32 channelIndex) const
virtual Q_UINT8 scaleToU8 (const Q_UINT8 *srcPixel, Q_INT32 channelPos)
virtual Q_UINT16 scaleToU16 (const Q_UINT8 *srcPixel, Q_INT32 channelPos)
virtual bool hasHighDynamicRange () const

Member Function Documentation

void KisF32BaseColorSpace::applyAlphaU8Mask Q_UINT8 *  pixels,
Q_UINT8 *  alpha,
Q_INT32  nPixels
[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.

Implements KisColorSpace.

Definition at line 64 of file kis_f32_base_colorspace.cc.

void KisF32BaseColorSpace::applyInverseAlphaU8Mask Q_UINT8 *  pixels,
Q_UINT8 *  alpha,
Q_INT32  nPixels
[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.

Implements KisColorSpace.

Definition at line 80 of file kis_f32_base_colorspace.cc.

QString KisF32BaseColorSpace::channelValueText const Q_UINT8 *  pixel,
Q_UINT32  channelIndex
const [virtual]
 

Return a string with the channel's value suitable for display in the gui.

Implements KisAbstractColorSpace.

Definition at line 96 of file kis_f32_base_colorspace.cc.

Q_UINT8 KisF32BaseColorSpace::getAlpha const Q_UINT8 *  pixel  )  const [virtual]
 

Get the alpha value of the given pixel, downscaled to an 8-bit value.

Implements KisColorSpace.

Definition at line 23 of file kis_f32_base_colorspace.cc.

virtual bool KisF32BaseColorSpace::hasHighDynamicRange  )  const [inline, virtual]
 

Returns true if the colorspace supports channel values outside the (normalised) range 0 to 1.

Reimplemented from KisAbstractColorSpace.

Definition at line 80 of file kis_f32_base_colorspace.h.

void KisF32BaseColorSpace::multiplyAlpha Q_UINT8 *  pixels,
Q_UINT8  alpha,
Q_INT32  nPixels
[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

Implements KisColorSpace.

Definition at line 48 of file kis_f32_base_colorspace.cc.

QString KisF32BaseColorSpace::normalisedChannelValueText const Q_UINT8 *  pixel,
Q_UINT32  channelIndex
const [virtual]
 

Return a string with the channel's value with integer channels normalised to the floating point range 0 to 1, if appropriate.

Implements KisAbstractColorSpace.

Definition at line 105 of file kis_f32_base_colorspace.cc.

Q_UINT16 KisF32BaseColorSpace::scaleToU16 const Q_UINT8 *  srcPixel,
Q_INT32  channelPos
[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

Implements KisAbstractColorSpace.

Definition at line 120 of file kis_f32_base_colorspace.cc.

Q_UINT8 KisF32BaseColorSpace::scaleToU8 const Q_UINT8 *  srcPixel,
Q_INT32  channelPos
[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.

Implements KisAbstractColorSpace.

Definition at line 114 of file kis_f32_base_colorspace.cc.

void KisF32BaseColorSpace::setAlpha Q_UINT8 *  pixels,
Q_UINT8  alpha,
Q_INT32  nPixels
const [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

Implements KisColorSpace.

Definition at line 33 of file kis_f32_base_colorspace.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys