summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_math_toolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krita/core/kis_math_toolbox.cpp')
-rw-r--r--krita/core/kis_math_toolbox.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/krita/core/kis_math_toolbox.cpp b/krita/core/kis_math_toolbox.cpp
index d0f49e71..f4fdf88c 100644
--- a/krita/core/kis_math_toolbox.cpp
+++ b/krita/core/kis_math_toolbox.cpp
@@ -44,36 +44,36 @@ KisMathToolboxFactoryRegistry::~KisMathToolboxFactoryRegistry()
{
}
template<typename T>
-double toDouble(Q_UINT8* data, int channelpos )
+double toDouble(TQ_UINT8* data, int channelpos )
{
return (float)( *((T*)(data + channelpos)) );
}
-typedef double (*PtrToDouble)(Q_UINT8*, int);
+typedef double (*PtrToDouble)(TQ_UINT8*, int);
template<typename T>
-void fromDouble(Q_UINT8* data, int channelpos, double v )
+void fromDouble(TQ_UINT8* data, int channelpos, double v )
{
*((T*)(data + channelpos)) = (T)v;
}
-typedef void (*PtrFromDouble)(Q_UINT8*, int, double);
+typedef void (*PtrFromDouble)(TQ_UINT8*, int, double);
-void KisMathToolbox::transformToFR(KisPaintDeviceSP src, KisFloatRepresentation* fr, const QRect& rect)
+void KisMathToolbox::transformToFR(KisPaintDeviceSP src, KisFloatRepresentation* fr, const TQRect& rect)
{
- Q_INT32 depth = src->colorSpace()->nColorChannels();
- QMemArray<PtrToDouble> f(depth);
- QValueVector<KisChannelInfo *> cis = src->colorSpace()->channels();
- for(Q_INT32 k = 0; k < depth; k++)
+ TQ_INT32 depth = src->colorSpace()->nColorChannels();
+ TQMemArray<PtrToDouble> f(depth);
+ TQValueVector<KisChannelInfo *> cis = src->colorSpace()->channels();
+ for(TQ_INT32 k = 0; k < depth; k++)
{
switch( cis[k]->channelValueType() )
{
case KisChannelInfo::UINT8:
- f[k] = toDouble<Q_UINT8>;
+ f[k] = toDouble<TQ_UINT8>;
break;
case KisChannelInfo::UINT16:
- f[k] = toDouble<Q_UINT16>;
+ f[k] = toDouble<TQ_UINT16>;
break;
#ifdef HAVE_OPENEXR
case KisChannelInfo::FLOAT16:
@@ -84,10 +84,10 @@ void KisMathToolbox::transformToFR(KisPaintDeviceSP src, KisFloatRepresentation*
f[k] = toDouble<float>;
break;
case KisChannelInfo::INT8:
- f[k] = toDouble<Q_INT8>;
+ f[k] = toDouble<TQ_INT8>;
break;
case KisChannelInfo::INT16:
- f[k] = toDouble<Q_INT16>;
+ f[k] = toDouble<TQ_INT16>;
break;
default:
kdWarning() << "Unsupported value type in KisMathToolbox" << endl;
@@ -101,7 +101,7 @@ void KisMathToolbox::transformToFR(KisPaintDeviceSP src, KisFloatRepresentation*
float *dstIt = fr->coeffs + (i-rect.y()) * fr->size * fr->depth;
while( ! srcIt.isDone() )
{
- Q_UINT8* v1 = srcIt.rawData();
+ TQ_UINT8* v1 = srcIt.rawData();
for( int k = 0; k < depth; k++)
{
*dstIt = f[k](v1, cis[k]->pos());
@@ -112,20 +112,20 @@ void KisMathToolbox::transformToFR(KisPaintDeviceSP src, KisFloatRepresentation*
}
}
-void KisMathToolbox::transformFromFR(KisPaintDeviceSP dst, KisFloatRepresentation* fr, const QRect& rect)
+void KisMathToolbox::transformFromFR(KisPaintDeviceSP dst, KisFloatRepresentation* fr, const TQRect& rect)
{
- Q_INT32 depth = dst->colorSpace()->nColorChannels();
- QMemArray<PtrFromDouble> f(depth);
- QValueVector<KisChannelInfo *> cis = dst->colorSpace()->channels();
- for(Q_INT32 k = 0; k < depth; k++)
+ TQ_INT32 depth = dst->colorSpace()->nColorChannels();
+ TQMemArray<PtrFromDouble> f(depth);
+ TQValueVector<KisChannelInfo *> cis = dst->colorSpace()->channels();
+ for(TQ_INT32 k = 0; k < depth; k++)
{
switch( cis[k]->channelValueType() )
{
case KisChannelInfo::UINT8:
- f[k] = fromDouble<Q_UINT8>;
+ f[k] = fromDouble<TQ_UINT8>;
break;
case KisChannelInfo::UINT16:
- f[k] = fromDouble<Q_UINT16>;
+ f[k] = fromDouble<TQ_UINT16>;
break;
#ifdef HAVE_OPENEXR
case KisChannelInfo::FLOAT16:
@@ -136,10 +136,10 @@ void KisMathToolbox::transformFromFR(KisPaintDeviceSP dst, KisFloatRepresentatio
f[k] = fromDouble<float>;
break;
case KisChannelInfo::INT8:
- f[k] = fromDouble<Q_INT8>;
+ f[k] = fromDouble<TQ_INT8>;
break;
case KisChannelInfo::INT16:
- f[k] = fromDouble<Q_INT16>;
+ f[k] = fromDouble<TQ_INT16>;
break;
default:
kdWarning() << "Unsupported value type in KisMathToolbox" << endl;
@@ -152,7 +152,7 @@ void KisMathToolbox::transformFromFR(KisPaintDeviceSP dst, KisFloatRepresentatio
float *srcIt = fr->coeffs + (i-rect.y()) * fr->size * fr->depth;
while( ! dstIt.isDone() )
{
- Q_UINT8* v1 = dstIt.rawData();
+ TQ_UINT8* v1 = dstIt.rawData();
for( int k = 0; k < depth; k++)
{
f[k](v1, cis[k]->pos(), *srcIt);