9#ifndef KIS_MATH_TOOLBOX_H
10#define KIS_MATH_TOOLBOX_H
23#pragma warning(disable: 4290)
27#pragma GCC diagnostic ignored "-Wcast-align"
42 : coeffs(new float[nsize*nsize*ndepth])
46 for (quint32 i = 0; i < nsize * nsize * ndepth; ++i) {
52 if (coeffs)
delete[] coeffs;
69 inline uint fastWaveletTotalSteps(
const QRect&);
123 int maxrectsize = (
rect.height() <
rect.width()) ?
rect.width() :
rect.height();
124 for (size = 2; size < maxrectsize; size *= 2) ;
125 qint32 depth = src->colorSpace()->colorChannelCount();
132 int maxrectsize = (
rect.height() <
rect.width()) ?
rect.width() :
rect.height();
134 for (size = 2; size < maxrectsize; size *= 2) steps += size / 2; ;
typedef void(QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer)