kis_abstract_colorspace.cpp
122void KisAbstractColorSpace::fromTQColor(const TQColor& color, TQ_UINT8 *dst, KisProfile * profile)
149void KisAbstractColorSpace::fromTQColor(const TQColor& color, TQ_UINT8 opacity, TQ_UINT8 *dst, KisProfile * profile)
174void KisAbstractColorSpace::toTQColor(const TQ_UINT8 *src, TQColor *c, TQ_UINT8 *opacity, KisProfile * profile)
180void KisAbstractColorSpace::toLabA16(const TQ_UINT8 * src, TQ_UINT8 * dst, const TQ_UINT32 nPixels) const
187void KisAbstractColorSpace::fromLabA16(const TQ_UINT8 * src, TQ_UINT8 * dst, const TQ_UINT32 nPixels) const
195void KisAbstractColorSpace::getSingleChannelPixel(TQ_UINT8 *dstPixel, const TQ_UINT8 *srcPixel, TQ_UINT32 channelIndex)
289KisColorAdjustment *KisAbstractColorSpace::createBrightnessContrastAdjustment(TQ_UINT16 *transferValues)
381 cmsAddTag(adj->profiles[1], icSigProfileDescriptionTag, (LPVOID) "chalk saturation abstract profile");
396KisColorAdjustment *KisAbstractColorSpace::createPerChannelAdjustment(TQ_UINT16 **transferValues)
422void KisAbstractColorSpace::applyAdjustment(const TQ_UINT8 *src, TQ_UINT8 *dst, KisColorAdjustment *adjustment, TQ_INT32 nPixels)
482void KisAbstractColorSpace::mixColors(const TQ_UINT8 **colors, const TQ_UINT8 *weights, TQ_UINT32 nColors, TQ_UINT8 *dst) const
527 const_cast<KisAbstractColorSpace *>(this)->fromTQColor(TQColor(dstRed, dstGreen, dstBlue), newAlpha, dst);
530void KisAbstractColorSpace::convolveColors(TQ_UINT8** colors, TQ_INT32 * kernelValues, KisChannelInfo::enumChannelFlags channelFlags,
559 const_cast<KisAbstractColorSpace *>(this)->fromTQColor(TQColor(CLAMP((totalRed / factor) + offset, 0, TQ_UINT8_MAX),
566 const_cast<KisAbstractColorSpace *>(this)->fromTQColor(dstColor, CLAMP((totalAlpha/ factor) + offset, 0, TQ_UINT8_MAX), dst);
571void KisAbstractColorSpace::darken(const TQ_UINT8 * src, TQ_UINT8 * dst, TQ_INT32 shade, bool compensate, double compensation, TQ_INT32 nPixels) const
695TQImage KisAbstractColorSpace::convertToTQImage(const TQ_UINT8 *data, TQ_INT32 width, TQ_INT32 height,
711 convertPixelsTo(const_cast<TQ_UINT8 *>(data), img.bits(), dstCS, width * height, renderingIntent);
744void KisAbstractColorSpace::compositeCopy(TQ_UINT8 *dstRowStart, TQ_INT32 dstRowStride, const TQ_UINT8 *srcRowStart, TQ_INT32 srcRowStride, const TQ_UINT8 * /*maskRowStart*/, TQ_INT32 /*maskRowStride*/, TQ_INT32 rows, TQ_INT32 numColumns, TQ_UINT8 opacity)
virtual void invertColor(TQ_UINT8 *src, TQ_INT32 nPixels)
Invert color channels of the given pixels.
Definition kis_abstract_colorspace.cpp:430
virtual void mixColors(const TQ_UINT8 **colors, const TQ_UINT8 *weights, TQ_UINT32 nColors, TQ_UINT8 *dst) const
Mix the colors given their weights and return in dst The sum of weights is assumed 255.
Definition kis_abstract_colorspace.cpp:482
virtual void convolveColors(TQ_UINT8 **colors, TQ_INT32 *kernelValues, KisChannelInfo::enumChannelFlags channelFlags, TQ_UINT8 *dst, TQ_INT32 factor, TQ_INT32 offset, TQ_INT32 nPixels) const
Convolve the given array of pointers to pixels and return the result in dst.
Definition kis_abstract_colorspace.cpp:530
virtual TQ_UINT8 intensity8(const TQ_UINT8 *src) const
Calculate the intensity of the given pixel, scaled down to the range 0-255.
Definition kis_abstract_colorspace.cpp:620
virtual void toTQColor(const TQ_UINT8 *src, TQColor *c, KisProfile *profile=0)
The toTQColor methods take a byte array that is at least pixelSize() long and converts the contents t...
Definition kis_abstract_colorspace.cpp:155
KisAbstractColorSpace(const KisID &id, DWORD cmType, icColorSpaceSignature colorSpaceSignature, KisColorSpaceFactoryRegistry *parent, KisProfile *profile)
Definition kis_abstract_colorspace.cpp:63
virtual KisColorAdjustment * createBrightnessContrastAdjustment(TQ_UINT16 *transferValues)
Create an adjustment object for adjusting the brightness and contrast transferValues is a 256 bins ar...
Definition kis_abstract_colorspace.cpp:289
virtual void darken(const TQ_UINT8 *src, TQ_UINT8 *dst, TQ_INT32 shade, bool compensate, double compensation, TQ_INT32 nPixels) const
Darken all color channels with the given amount.
Definition kis_abstract_colorspace.cpp:571
virtual KisID mathToolboxID() const
Create a mathematical toolbox compatible with this colorspace.
Definition kis_abstract_colorspace.cpp:630
virtual TQ_UINT32 nColorChannels() const =0
The total number of color channels (excludes alpha and substance) for a single pixel in this color mo...
virtual TQ_UINT8 difference(const TQ_UINT8 *src1, const TQ_UINT8 *src2)
Get the difference between 2 colors, normalized in the range (0,255).
Definition kis_abstract_colorspace.cpp:446
virtual void fromLabA16(const TQ_UINT8 *src, TQ_UINT8 *dst, const TQ_UINT32 nPixels) const
Convert the specified data from Lab.
Definition kis_abstract_colorspace.cpp:187
virtual TQImage convertToTQImage(const TQ_UINT8 *data, TQ_INT32 width, TQ_INT32 height, KisProfile *dstProfile, TQ_INT32 renderingIntent=INTENT_PERCEPTUAL, float exposure=0.0f)
Convert the pixels in data to (8-bit BGRA) TQImage using the specified profiles.
Definition kis_abstract_colorspace.cpp:695
virtual void getSingleChannelPixel(TQ_UINT8 *dstPixel, const TQ_UINT8 *srcPixel, TQ_UINT32 channelIndex)
Set dstPixel to the pixel containing only the given channel of srcPixel.
Definition kis_abstract_colorspace.cpp:195
virtual void applyAdjustment(const TQ_UINT8 *src, TQ_UINT8 *dst, KisColorAdjustment *, TQ_INT32 nPixels)
Apply the adjustment created with onr of the other functions.
Definition kis_abstract_colorspace.cpp:422
virtual void bitBlt(TQ_UINT8 *dst, TQ_INT32 dststride, KisColorSpace *srcSpace, const TQ_UINT8 *src, TQ_INT32 srcRowStride, const TQ_UINT8 *srcAlphaMask, TQ_INT32 maskRowStride, TQ_UINT8 opacity, TQ_INT32 rows, TQ_INT32 cols, const KisCompositeOp &op)
Compose two arrays of pixels together.
Definition kis_abstract_colorspace.cpp:635
virtual KisColorAdjustment * createDesaturateAdjustment()
Create an adjustment object for desaturating.
Definition kis_abstract_colorspace.cpp:341
virtual KisColorAdjustment * createPerChannelAdjustment(TQ_UINT16 **transferValues)
Create an adjustment object for adjusting individual channels transferValues is an array of nColorCha...
Definition kis_abstract_colorspace.cpp:396
virtual void toLabA16(const TQ_UINT8 *src, TQ_UINT8 *dst, const TQ_UINT32 nPixels) const
Convert the specified data to Lab.
Definition kis_abstract_colorspace.cpp:180
virtual bool convertPixelsTo(const TQ_UINT8 *src, TQ_UINT8 *dst, KisColorSpace *dstColorSpace, TQ_UINT32 numPixels, TQ_INT32 renderingIntent=INTENT_PERCEPTUAL)
Convert a byte array of srcLen pixels *src to the specified color space and put the converted bytes i...
Definition kis_abstract_colorspace.cpp:206
virtual KisProfile * getProfile() const
Return the profile of this color space.
Definition kis_abstract_colorspace.h:123
virtual KisID id() const
Chalk definition for use in .kra files and internally: unchanging name + i18n'able description.
Definition kis_abstract_colorspace.h:104
virtual void fromTQColor(const TQColor &c, TQ_UINT8 *dst, KisProfile *profile=0)
The fromTQColor methods take a given color defined as an RGB TQColor and fills a byte array with the ...
Definition kis_abstract_colorspace.cpp:122
virtual TQ_UINT32 pixelSize() const =0
The size in bytes of a single pixel in this color model.
This class gives some basic information about a channel, that is, one of the components that makes up...
Definition kis_channelinfo.h:30
TQ_INT32 pos() const
returns the position of the first byte of the channel in the pixel
Definition kis_channelinfo.h:82
A colorspace is the definition of a certain color model in Chalk.
Definition kis_colorspace.h:58
virtual void fromTQColor(const TQColor &c, TQ_UINT8 *dst, KisProfile *profile=0)=0
The fromTQColor methods take a given color defined as an RGB TQColor and fills a byte array with the ...
virtual TQ_UINT8 getAlpha(const TQ_UINT8 *pixel) const =0
Get the alpha value of the given pixel, downscaled to an 8-bit value.
virtual bool convertPixelsTo(const TQ_UINT8 *src, TQ_UINT8 *dst, KisColorSpace *dstColorSpace, TQ_UINT32 numPixels, TQ_INT32 renderingIntent=INTENT_PERCEPTUAL)=0
Convert a byte array of srcLen pixels *src to the specified color space and put the converted bytes i...
virtual TQ_UINT32 pixelSize() const =0
The size in bytes of a single pixel in this color model.
virtual void multiplyAlpha(TQ_UINT8 *pixels, TQ_UINT8 alpha, TQ_INT32 nPixels)=0
Multiply the alpha channel of the given run of pixels by the given value.
virtual void setAlpha(TQ_UINT8 *pixels, TQ_UINT8 alpha, TQ_INT32 nPixels) const =0
Set the alpha channel of the given run of pixels to the given value.
virtual KisProfile * getProfile() const =0
Return the profile of this color space.
