7#ifndef RGBCOMPOSITEOPBUMPMAP_H
8#define RGBCOMPOSITEOPBUMPMAP_H
12template<
class _CSTraits>
27 return qMin(srcAlpha, dstAlpha);
34 const QBitArray &channelFlags)
39 intensity = ((qreal)306.0 * src[_CSTraits::red_pos] +
40 (qreal)601.0 * src[_CSTraits::green_pos] +
41 (qreal)117.0 * src[_CSTraits::blue_pos]) / 1024.0;
43 for (
uint i = 0; i < _CSTraits::channels_nb; i++) {
44 if ((
int)i != _CSTraits::alpha_pos && (allChannelFlags || channelFlags.testBit(i))) {
#define NATIVE_OPACITY_OPAQUE
const QString COMPOSITE_BUMPMAP
static _T blend(_T a, _T b, _T alpha)
static channels_type selectAlpha(channels_type srcAlpha, channels_type dstAlpha)
KoColorSpaceMathsTraits< typename_CSTraits::channels_type >::compositetype compositetype
RgbCompositeOpBumpmap(KoColorSpace *cs)
_CSTraits::channels_type channels_type
static void composeColorChannels(channels_type srcBlend, const channels_type *src, channels_type *dst, bool allChannelFlags, const QBitArray &channelFlags)
static QString categoryMisc()