|
Krita Source Code Documentation
|
#include <KoRgbU16ColorSpace.h>
Inheritance diagram for KoRgbU16ColorSpace:Public Member Functions | |
| virtual KoColorSpace * | clone () const |
| void | fillGrayBrushWithColorAndLightnessOverlay (quint8 *dst, const QRgb *brush, quint8 *brushColor, qint32 nPixels) const override |
| void | fillGrayBrushWithColorAndLightnessWithStrength (quint8 *dst, const QRgb *brush, quint8 *brushColor, qreal strength, qint32 nPixels) const override |
| QVector< double > | fromHSY (qreal *hue, qreal *sat, qreal *luma) const override |
| void | fromQColor (const QColor &color, quint8 *dst) const override |
| QVector< double > | fromYUV (qreal *y, qreal *u, qreal *v) const override |
| KoRgbU16ColorSpace () | |
| void | modulateLightnessByGrayBrush (quint8 *dst, const QRgb *brush, qreal strength, qint32 nPixels) const override |
| void | toHSY (const QVector< double > &channelValues, qreal *hue, qreal *sat, qreal *luma) const override |
| void | toQColor (const quint8 *src, QColor *c) const override |
| void | toYUV (const QVector< double > &channelValues, qreal *y, qreal *u, qreal *v) const override |
| ~KoRgbU16ColorSpace () override | |
Public Member Functions inherited from KoSimpleColorSpace< KoBgrU16Traits > | |
| KoID | colorDepthId () const override |
| void | colorFromXML (quint8 *, const QDomElement &) const override |
| KoID | colorModelId () const override |
| virtual QString | colorSpaceEngine () const |
| virtual quint32 | colorSpaceType () const |
| void | colorToXML (const quint8 *, QDomDocument &, QDomElement &) const override |
| bool | convertPixelsTo (const quint8 *src, quint8 *dst, const KoColorSpace *dstColorSpace, quint32 numPixels, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const override |
| KoColorTransformation * | createBrightnessContrastAdjustment (const quint16 *) const override |
| KoColorTransformation * | createDarkenAdjustment (qint32, bool, qreal) const override |
| virtual KoColorTransformation * | createDesaturateAdjustment () const |
| KoColorTransformation * | createPerChannelAdjustment (const quint16 *const *) const override |
| quint8 | difference (const quint8 *src1, const quint8 *src2) const override |
| quint8 | differenceA (const quint8 *src1, const quint8 *src2) const override |
| QVector< double > | fromHSY (qreal *, qreal *, qreal *) const override |
| void | fromLabA16 (const quint8 *src, quint8 *dst, quint32 nPixels) const override |
| void | fromRgbA16 (const quint8 *src, quint8 *dst, quint32 nPixels) const override |
| QVector< double > | fromYUV (qreal *, qreal *, qreal *) const override |
| bool | hasHighDynamicRange () const override |
| virtual void | invertColor (quint8 *, qint32) const |
| KoSimpleColorSpace (const QString &id, const QString &name, const KoID &colorModelId, const KoID &colorDepthId) | |
| const KoColorProfile * | profile () const override |
| bool | profileIsCompatible (const KoColorProfile *) const override |
| void | toHSY (const QVector< double > &, qreal *, qreal *, qreal *) const override |
| void | toLabA16 (const quint8 *src, quint8 *dst, quint32 nPixels) const override |
| void | toRgbA16 (const quint8 *src, quint8 *dst, quint32 nPixels) const override |
| void | toYUV (const QVector< double > &, qreal *, qreal *, qreal *) const override |
| bool | willDegrade (ColorSpaceIndependence independence) const override |
| ~KoSimpleColorSpace () override | |
Public Member Functions inherited from KoColorSpaceAbstract< _CSTrait > | |
| quint32 | alphaPos () const override |
| void | applyAlphaNormedFloatMask (quint8 *pixels, const float *alpha, qint32 nPixels) const override |
| void | applyAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) const override |
| void | applyInverseAlphaU8Mask (quint8 *pixels, const quint8 *alpha, qint32 nPixels) const override |
| void | applyInverseNormedFloatMask (quint8 *pixels, const float *alpha, qint32 nPixels) const override |
| quint32 | channelCount () const override |
| QString | channelValueText (const quint8 *pixel, quint32 channelIndex) const override |
| quint32 | colorChannelCount () const override |
| void | convertChannelToVisualRepresentation (const quint8 *src, quint8 *dst, quint32 nPixels, const QBitArray selectedChannels) const override |
| void | convertChannelToVisualRepresentation (const quint8 *src, quint8 *dst, quint32 nPixels, const qint32 selectedChannelIndex) const override |
| void | copyOpacityU8 (quint8 *src, quint8 *dst, qint32 nPixels) const override |
| KoColorTransformation * | createInvertTransformation () const override |
| void | fillGrayBrushWithColor (quint8 *dst, const QRgb *brush, quint8 *brushColor, qint32 nPixels) const override |
| void | fillInverseAlphaNormedFloatMaskWithColor (quint8 *pixels, const float *alpha, const quint8 *brushColor, qint32 nPixels) const override |
| void | fromNormalisedChannelsValue (quint8 *pixel, const QVector< float > &values) const override |
| quint8 | intensity8 (const quint8 *src) const override |
| qreal | intensityF (const quint8 *src) const override |
| KoColorSpaceAbstract (const QString &id, const QString &name) | |
| void | multiplyAlpha (quint8 *pixels, quint8 alpha, qint32 nPixels) const override |
| void | normalisedChannelsValue (const quint8 *pixel, QVector< float > &channels) const override |
| QString | normalisedChannelValueText (const quint8 *pixel, quint32 channelIndex) const override |
| qreal | opacityF (const quint8 *U8_pixel) const override |
| quint8 | opacityU8 (const quint8 *U8_pixel) const override |
| quint32 | pixelSize () const override |
| quint8 | scaleToU8 (const quint8 *srcPixel, qint32 channelIndex) const override |
| void | setOpacity (quint8 *pixels, qreal alpha, qint32 nPixels) const override |
| void | setOpacity (quint8 *pixels, quint8 alpha, qint32 nPixels) const override |
| void | singleChannelPixel (quint8 *dstPixel, const quint8 *srcPixel, quint32 channelIndex) const override |
| void | toQColor16 (const quint8 *src, QColor *c) const override |
Public Member Functions inherited from KoColorSpace | |
| virtual void | addCompositeOp (const KoCompositeOp *op) |
| virtual void | addDitherOp (KisDitherOp *op) |
| virtual void | bitBlt (const KoColorSpace *srcSpace, const KoCompositeOp::ParameterInfo ¶ms, const KoCompositeOp *op, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const |
| QBitArray | channelFlags (bool color=true, bool alpha=false) const |
| QList< KoChannelInfo * > | channels () const |
| const KoCompositeOp * | compositeOp (const QString &id, const KoColorSpace *srcSpace=nullptr) const |
| virtual QList< KoCompositeOp * > | compositeOps () const |
| virtual QImage | convertToQImage (const quint8 *data, qint32 width, qint32 height, const KoColorProfile *dstProfile, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const |
| virtual KoConvolutionOp * | convolutionOp () const |
| virtual KoColorConversionTransformation * | createColorConverter (const KoColorSpace *dstColorSpace, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const |
| KoColorTransformation * | createColorTransformation (const QString &id, const QHash< QString, QVariant > ¶meters) const |
| virtual KoColorConversionTransformation * | createProofingTransform (const KoColorSpace *dstColorSpace, const KoColorSpace *proofingSpace, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::Intent proofingIntent, bool bpcFirstTransform, quint8 *gamutWarning, KoColorConversionTransformation::ConversionFlags displayConversionFlags) const |
| createProofingTransform Create a proofing transform. This is a two part transform that can also do gamut checks. The first transform is from source -> proofing space. Here the gamut checks are performed. The second is the proofing to destination space. | |
| virtual void | decreaseHue (quint8 *pixel, qreal step) const |
| virtual void | decreaseLuminosity (quint8 *pixel, qreal step) const |
| virtual void | decreaseSaturation (quint8 *pixel, qreal step) const |
| virtual const KisDitherOp * | ditherOp (const QString &depth, DitherType type) const |
| QPolygonF | estimatedTRCXYY () const |
| QPolygonF | gamutXYY () const |
| virtual bool | hasCompositeOp (const QString &id, const KoColorSpace *srcSpace=nullptr) const |
| QString | id () const |
| virtual void | increaseBlue (quint8 *pixel, qreal step) const |
| virtual void | increaseGreen (quint8 *pixel, qreal step) const |
| virtual void | increaseHue (quint8 *pixel, qreal step) const |
| virtual void | increaseLuminosity (quint8 *pixel, qreal step) const |
| virtual void | increaseRed (quint8 *pixel, qreal step) const |
| virtual void | increaseSaturation (quint8 *pixel, qreal step) const |
| virtual void | increaseYellow (quint8 *pixel, qreal step) const |
| KoColorSpace (const QString &id, const QString &name, KoMixColorsOp *mixColorsOp, KoConvolutionOp *convolutionOp) | |
| Should be called by real color spaces. | |
| QVector< qreal > | lumaCoefficients () const |
| virtual KoMixColorsOp * | mixColorsOp () const |
| QString | name () const |
| virtual bool | operator== (const KoColorSpace &rhs) const |
| virtual bool | proofPixelsTo (const quint8 *src, quint8 *dst, quint32 numPixels, KoColorConversionTransformation *proofingTransform) const |
| proofPixelsTo | |
| virtual void | transparentColor (quint8 *dst, quint32 nPixels) const |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Static Public Member Functions | |
| static QString | colorSpaceId () |
The alpha mask is a special color strategy that treats all pixels as alpha value with a color common to the mask. The default color is white.
Definition at line 22 of file KoRgbU16ColorSpace.h.
| KoRgbU16ColorSpace::KoRgbU16ColorSpace | ( | ) |
Definition at line 25 of file KoRgbU16ColorSpace.cpp.
|
override |
Definition at line 34 of file KoRgbU16ColorSpace.cpp.
|
virtual |
|
static |
Definition at line 39 of file KoRgbU16ColorSpace.cpp.
|
overridevirtual |
Fills dst with specified brushColor and then applies inverted brush mask specified in brush. Inverted red channel of the brush is used as lightness of the destination. Alpha channel of the brush is used as alpha of the destination.
The equation is:
dstL_hsl = preserveLightness(colorL_hsl, lightFactor); dstA = qAlpha(brush);
For details on preserveLightness() formula, see KoColorSpacePreserveLightnessUtils.h
Reimplemented from KoColorSpace.
Definition at line 90 of file KoRgbU16ColorSpace.cpp.
|
overridevirtual |
Reimplemented from KoColorSpace.
Definition at line 95 of file KoRgbU16ColorSpace.cpp.
|
overridevirtual |
Implements KoColorSpace.
Definition at line 68 of file KoRgbU16ColorSpace.cpp.
References HSYToRGB().
|
overridevirtual |
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.
| color | the QColor that will be used to fill dst |
| dst | a pointer to a pixel |
Implements KoColorSpace.
Definition at line 49 of file KoRgbU16ColorSpace.cpp.
References KoColorSpaceAbstract< _CSTrait >::fromNormalisedChannelsValue().
|
overridevirtual |
Implements KoColorSpace.
Definition at line 82 of file KoRgbU16ColorSpace.cpp.
References u, v, and YUVToRGB().
|
overridevirtual |
Reimplemented from KoColorSpace.
Definition at line 100 of file KoRgbU16ColorSpace.cpp.
|
overridevirtual |
Implements KoColorSpace.
Definition at line 62 of file KoRgbU16ColorSpace.cpp.
References RGBToHSY().
|
overridevirtual |
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 |
Implements KoColorSpace.
Definition at line 56 of file KoRgbU16ColorSpace.cpp.
References KoColorSpaceAbstract< _CSTrait >::normalisedChannelsValue().
|
overridevirtual |
Implements KoColorSpace.
Definition at line 77 of file KoRgbU16ColorSpace.cpp.
References RGBToYUV(), u, and v.