Index: trunk/psLib/src/image/psImageFFT.c
===================================================================
--- trunk/psLib/src/image/psImageFFT.c	(revision 1983)
+++ trunk/psLib/src/image/psImageFFT.c	(revision 2204)
@@ -5,11 +5,10 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-06 21:31:30 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-27 00:57:31 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  */
 #include <unistd.h>
-#include <stdbool.h>
 #include <string.h>
 #include <complex.h>
@@ -27,10 +26,10 @@
 #define PS_FFTW_PLAN_RIGOR FFTW_ESTIMATE
 
-static bool p_fftwWisdomImported = false;
+static psBool p_fftwWisdomImported = false;
 
 psImage* psImageFFT(psImage* out, const psImage* in, psFftDirection direction)
 {
-    unsigned int numCols;
-    unsigned int numRows;
+    psU32 numCols;
+    psU32 numRows;
     psElemType type;
     fftwf_plan plan;
@@ -77,5 +76,5 @@
 
     // n.b. FFTW can perform a in-place transform at the same rate or faster than out-of-place.
-    int sign = ((direction & PS_FFT_FORWARD) != 0) ? FFTW_FORWARD : FFTW_BACKWARD;
+    psS32 sign = ((direction & PS_FFT_FORWARD) != 0) ? FFTW_FORWARD : FFTW_BACKWARD;
     out = psImageCopy(out, in, PS_TYPE_C32);
     plan = fftwf_plan_dft_2d(numCols, numRows,
@@ -118,6 +117,6 @@
 {
     psElemType type;
-    unsigned int numCols;
-    unsigned int numRows;
+    psU32 numCols;
+    psU32 numRows;
 
     if (in == NULL) {
@@ -140,9 +139,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F32[row];
             inRow = in->data.C32[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = crealf(inRow[col]);
             }
@@ -153,9 +152,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F64);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F64[row];
             inRow = in->data.C64[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = creal(inRow[col]);
             }
@@ -179,6 +178,6 @@
 {
     psElemType type;
-    unsigned int numCols;
-    unsigned int numRows;
+    psU32 numCols;
+    psU32 numRows;
 
     if (in == NULL) {
@@ -203,9 +202,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F32[row];
             inRow = in->data.C32[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = cimagf(inRow[col]);
             }
@@ -216,9 +215,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F64);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F64[row];
             inRow = in->data.C64[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = cimag(inRow[col]);
             }
@@ -241,6 +240,6 @@
 {
     psElemType type;
-    unsigned int numCols;
-    unsigned int numRows;
+    psU32 numCols;
+    psU32 numRows;
 
     if (real == NULL || imag == NULL) {
@@ -282,10 +281,10 @@
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_C32);
 
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.C32[row];
             realRow = real->data.F32[row];
             imagRow = imag->data.F32[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = realRow[col] + I * imagRow[col];
             }
@@ -297,10 +296,10 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_C64);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.C64[row];
             realRow = real->data.F64[row];
             imagRow = imag->data.F64[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = realRow[col] + I * imagRow[col];
             }
@@ -324,6 +323,6 @@
 {
     psElemType type;
-    unsigned int numCols;
-    unsigned int numRows;
+    psU32 numCols;
+    psU32 numRows;
 
     if (in == NULL) {
@@ -346,9 +345,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_C32);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.C32[row];
             inRow = in->data.C32[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = crealf(inRow[col]) - I * cimagf(inRow[col]);
             }
@@ -359,9 +358,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_C64);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.C64[row];
             inRow = in->data.C64[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 outRow[col] = creal(inRow[col]) - I * cimag(inRow[col]);
             }
@@ -384,7 +383,7 @@
 {
     psElemType type;
-    unsigned int numCols;
-    unsigned int numRows;
-    int numElementsSquared;
+    psU32 numCols;
+    psU32 numRows;
+    psS32 numElementsSquared;
 
     if (in == NULL) {
@@ -405,9 +404,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F32[row];
             inRow = in->data.C32[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 real = crealf(inRow[col]);
                 imag = cimagf(inRow[col]);
@@ -422,9 +421,9 @@
 
         out = psImageRecycle(out, numCols, numRows, PS_TYPE_F64);
-        for (unsigned int row = 0; row < numRows; row++) {
+        for (psU32 row = 0; row < numRows; row++) {
             outRow = out->data.F64[row];
             inRow = in->data.C64[row];
 
-            for (unsigned int col = 0; col < numCols; col++) {
+            for (psU32 col = 0; col < numCols; col++) {
                 real = creal(inRow[col]);
                 imag = cimag(inRow[col]);
