Changeset 8232 for trunk/psLib/src/fft
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
fft/psImageFFT.c (modified) (13 diffs)
-
fft/psVectorFFT.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/fft/psImageFFT.c
r4543 r8232 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $8 * @date $Date: 200 5-07-12 19:30:18$7 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-08 23:32:23 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psImageStructManip.h" 22 22 23 #include "psErrorText.h" 23 24 24 25 25 #define PS_FFTW_PLAN_RIGOR FFTW_ESTIMATE … … 43 43 if ((direction & PS_FFT_REVERSE) != 0) { 44 44 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 45 PS_ERRORTEXT_psImageFFT_FORWARD_REVERSE);45 _("Can not specify both PS_FFT_FORWARD and PS_FFT_REVERSE options.")); 46 46 psFree(out); 47 47 return NULL; … … 49 49 if ((direction & PS_FFT_REAL_RESULT) != 0) { 50 50 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 51 PS_ERRORTEXT_psImageFFT_REAL_FORWARD_NOTSUPPORTED);51 _("The PS_FFT_FORWARD and PS_FFT_REAL_RESULT combinition is not supported.")); 52 52 psFree(out); 53 53 return NULL; … … 55 55 } else if ((direction & PS_FFT_REVERSE) == 0) { 56 56 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 57 PS_ERRORTEXT_psImageFFT_NO_DIRECTION_OPTION);57 _("Must specify either PS_FFT_FORWARD or PS_FFT_REVERSE option.")); 58 58 psFree(out); 59 59 return NULL; … … 86 86 if (plan == NULL) { 87 87 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 88 PS_ERRORTEXT_psImageFFT_FFTW_PLAN_NULL);88 _("Could not create a valid FFT plan to perform the transform.")); 89 89 psFree(out); 90 90 return NULL; … … 179 179 PS_TYPE_NAME(typeStr,type); 180 180 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 181 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,181 _("Specified psImage type, %s, is not supported."), 182 182 typeStr); 183 183 … … 241 241 PS_TYPE_NAME(typeStr,type); 242 242 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 243 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,243 _("Specified psImage type, %s, is not supported."), 244 244 typeStr); 245 245 psFree(out); … … 271 271 PS_TYPE_NAME(typeStrImag,imag->type.type); 272 272 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 273 PS_ERRORTEXT_psImageFFT_REAL_IMAG_TYPE_MISMATCH,273 _("Real psImage type (%s) and imaginary psImage type (%s) must be the same."), 274 274 typeStrReal,typeStrImag); 275 275 psFree(out); … … 279 279 if (imag->numCols != numCols || imag->numRows != numRows) { 280 280 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 281 PS_ERRORTEXT_psImageFFT_REAL_IMAG_SIZE_MISMATCH,281 _("Real psImage size (%dx%d) and imaginary psImage size (%dx%d) must be the same."), 282 282 numCols, numRows, imag->numCols, imag->numRows); 283 283 psFree(out); … … 320 320 PS_TYPE_NAME(typeStr,type); 321 321 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 322 PS_ERRORTEXT_psImageFFT_NONREAL_NOTSUPPORTED,322 _("Input psImage type, %s, is required to be either psF32 or psF64."), 323 323 typeStr); 324 324 psFree(out); … … 380 380 PS_TYPE_NAME(typeStr,type); 381 381 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 382 PS_ERRORTEXT_psImageFFT_NONCOMPLEX_NOTSUPPORTED,382 _("Input psImage type, %s, is required to be either psC32 or psC64."), 383 383 typeStr); 384 384 psFree(out); … … 446 446 PS_TYPE_NAME(typeStr,type); 447 447 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 448 PS_ERRORTEXT_psImageFFT_NONCOMPLEX_NOTSUPPORTED,448 _("Input psImage type, %s, is required to be either psC32 or psC64."), 449 449 typeStr); 450 450 psFree(out); -
trunk/psLib/src/fft/psVectorFFT.c
r4540 r8232 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $8 * @date $Date: 200 5-07-12 19:12:01$7 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-08 23:32:23 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psLogMsg.h" 23 23 24 #include "psErrorText.h" 24 25 25 26 26 #define P_FFTW_PLAN_RIGOR FFTW_ESTIMATE … … 63 63 } else { 64 64 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 65 PS_ERRORTEXT_psVectorFFT_DIRECTION_NOTSET);65 _("Must specify the direction as either PS_FFT_FORWARD or PS_FFT_REVERSE.")); 66 66 psFree(out); 67 67 return NULL; … … 71 71 if (plan == NULL) { 72 72 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 73 PS_ERRORTEXT_psVectorFFT_FFTW_PLAN_NULL);73 _("Could not create a valid FFT plan to perform the transform.")); 74 74 psFree(out); 75 75 return NULL; … … 142 142 PS_TYPE_NAME(typeStr,type); 143 143 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 144 PS_ERRORTEXT_psVectorFFT_TYPE_UNSUPPORTED,144 _("Specified psVector type, %s, is not supported."), 145 145 typeStr); 146 146 psFree(out); … … 201 201 PS_TYPE_NAME(typeStr,type); 202 202 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 203 PS_ERRORTEXT_psVectorFFT_TYPE_UNSUPPORTED,203 _("Specified psVector type, %s, is not supported."), 204 204 typeStr); 205 205 psFree(out); … … 233 233 PS_TYPE_NAME(typeStrImag,imag->type.type); 234 234 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 235 PS_ERRORTEXT_psVectorFFT_REAL_IMAG_TYPE_MISMATCH,235 _("Real psVector type, %s, and imaginary psVector type, %s, must be the same."), 236 236 typeStrReal,typeStrImag); 237 237 psFree(out); … … 267 267 PS_TYPE_NAME(typeStr,type); 268 268 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 269 PS_ERRORTEXT_psVectorFFT_NONREAL_NOTSUPPORTED,269 _("Input psVector type, %s, is required to be either psF32 or psF64."), 270 270 typeStr); 271 271 psFree(out); … … 327 327 PS_TYPE_NAME(typeStr,type); 328 328 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 329 PS_ERRORTEXT_psVectorFFT_NONCOMPLEX_NOTSUPPORTED,329 _("Input psVector type, %s, is required to be either psC32 or psC64."), 330 330 typeStr); 331 331 psFree(out); … … 407 407 PS_TYPE_NAME(typeStr,type); 408 408 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 409 PS_ERRORTEXT_psVectorFFT_NONCOMPLEX_NOTSUPPORTED,409 _("Input psVector type, %s, is required to be either psC32 or psC64."), 410 410 typeStr); 411 411 psFree(out);
Note:
See TracChangeset
for help on using the changeset viewer.
