Changeset 4308
- Timestamp:
- Jun 17, 2005, 1:44:22 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 23 edited
-
src/astronomy/psAstrometry.c (modified) (4 diffs)
-
src/collections/psMetadata.c (modified) (3 diffs)
-
src/dataIO/psFits.c (modified) (2 diffs)
-
src/dataIO/psFits.h (modified) (2 diffs)
-
src/dataIO/psLookupTable.c (modified) (2 diffs)
-
src/fits/psFits.c (modified) (2 diffs)
-
src/fits/psFits.h (modified) (2 diffs)
-
src/image/psImageGeomManip.c (modified) (2 diffs)
-
src/imageops/psImageGeomManip.c (modified) (2 diffs)
-
src/sys/psErrorCodes.c (modified) (3 diffs)
-
src/sys/psMemory.h (modified) (2 diffs)
-
src/sys/psTrace.c (modified) (2 diffs)
-
src/sysUtils/psErrorCodes.c (modified) (3 diffs)
-
src/sysUtils/psMemory.h (modified) (2 diffs)
-
src/sysUtils/psTrace.c (modified) (2 diffs)
-
src/types/psLookupTable.c (modified) (2 diffs)
-
src/types/psMetadata.c (modified) (3 diffs)
-
test/collections/tst_psArray.c (modified) (7 diffs)
-
test/collections/tst_psMetadata_04.c (modified) (2 diffs)
-
test/dataManip/tst_psVectorFFT.c (modified) (4 diffs)
-
test/image/tst_psImageGeomManip.c (modified) (2 diffs)
-
test/image/verified/tst_psImagePixelManip.stderr (modified) (1 diff)
-
test/sysUtils/tst_psMemory.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r4143 r4308 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.6 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06- 08 00:26:01 $10 * @version $Revision: 1.69 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-17 23:44:21 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 55 55 psFree(fpa->chips); 56 56 psFree(fpa->grommit); 57 psFree( (psExposure*)fpa->exposure);57 psFree(fpa->exposure); 58 58 psFree(fpa->metadata); 59 59 psFree(fpa->fromTangentPlane); … … 102 102 { 103 103 if (obs != NULL) { 104 psFree( (psPtr)obs->name);104 psFree(obs->name); 105 105 } 106 106 } … … 109 109 { 110 110 if (exp != NULL) { 111 psFree( (psPtr)exp->time);112 psFree( (psPtr)exp->observatory);113 psFree( (psPtr)exp->cameraName);114 psFree( (psPtr)exp->telescopeName);111 psFree(exp->time); 112 psFree(exp->observatory); 113 psFree(exp->cameraName); 114 psFree(exp->telescopeName); 115 115 } 116 116 } -
trunk/psLib/src/collections/psMetadata.c
r4094 r4308 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.6 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 03 02:07:51 $14 * @version $Revision: 1.65 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-17 23:44:21 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 89 89 90 90 psHashAdd(table, key, item); // put in the new entry 91 psMemDecrRefCounter(item); // get rid of extra reference 91 92 92 93 // free local references of newly allocated items. 93 94 psFree(newList); 94 psFree(item);95 95 96 96 return item; … … 107 107 } 108 108 109 ps Free(metadataItem->name);110 ps Free(metadataItem->comment);109 psMemDecrRefCounter(metadataItem->name); 110 psMemDecrRefCounter(metadataItem->comment); 111 111 112 112 if(!PS_META_IS_PRIMITIVE(type)) { -
trunk/psLib/src/dataIO/psFits.c
r4193 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 09 21:17:45$9 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 203 203 if (fits != NULL) { 204 204 (void)fits_close_file(fits->p_fd, &status); 205 psFree( (void*)fits->filename);205 psFree(fits->filename); 206 206 } 207 207 } -
trunk/psLib/src/dataIO/psFits.h
r4214 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-1 1 02:19:05$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 */ 34 34 typedef enum { 35 PS_FITS_TYPE_NONE = -1, ///< Unknown HDU type36 PS_FITS_TYPE_IMAGE = IMAGE_HDU, ///< Image HDU type37 PS_FITS_TYPE_BINARY_TABLE = BINARY_TBL, ///< Binary table HDU type38 PS_FITS_TYPE_ASCII_TABLE = ASCII_TBL, ///< ASCII table HDU type39 PS_FITS_TYPE_ANY = ANY_HDU ///< Any HDU type35 PS_FITS_TYPE_NONE = -1, ///< Unknown HDU type 36 PS_FITS_TYPE_IMAGE = IMAGE_HDU, ///< Image HDU type 37 PS_FITS_TYPE_BINARY_TABLE = BINARY_TBL, ///< Binary table HDU type 38 PS_FITS_TYPE_ASCII_TABLE = ASCII_TBL, ///< ASCII table HDU type 39 PS_FITS_TYPE_ANY = ANY_HDU ///< Any HDU type 40 40 } psFitsType; 41 41 -
trunk/psLib/src/dataIO/psLookupTable.c
r4167 r4308 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 09 00:56:37$9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 246 246 247 247 psFree(table->values); 248 psFree( (char*)table->filename);249 psFree( (char*)table->format);248 psFree(table->filename); 249 psFree(table->format); 250 250 } 251 251 -
trunk/psLib/src/fits/psFits.c
r4193 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 09 21:17:45$9 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 203 203 if (fits != NULL) { 204 204 (void)fits_close_file(fits->p_fd, &status); 205 psFree( (void*)fits->filename);205 psFree(fits->filename); 206 206 } 207 207 } -
trunk/psLib/src/fits/psFits.h
r4214 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-1 1 02:19:05$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 */ 34 34 typedef enum { 35 PS_FITS_TYPE_NONE = -1, ///< Unknown HDU type36 PS_FITS_TYPE_IMAGE = IMAGE_HDU, ///< Image HDU type37 PS_FITS_TYPE_BINARY_TABLE = BINARY_TBL, ///< Binary table HDU type38 PS_FITS_TYPE_ASCII_TABLE = ASCII_TBL, ///< ASCII table HDU type39 PS_FITS_TYPE_ANY = ANY_HDU ///< Any HDU type35 PS_FITS_TYPE_NONE = -1, ///< Unknown HDU type 36 PS_FITS_TYPE_IMAGE = IMAGE_HDU, ///< Image HDU type 37 PS_FITS_TYPE_BINARY_TABLE = BINARY_TBL, ///< Binary table HDU type 38 PS_FITS_TYPE_ASCII_TABLE = ASCII_TBL, ///< ASCII table HDU type 39 PS_FITS_TYPE_ANY = ANY_HDU ///< Any HDU type 40 40 } psFitsType; 41 41 -
trunk/psLib/src/image/psImageGeomManip.c
r4287 r4308 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-1 6 22:07:41 $12 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-17 23:44:21 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 865 865 } 866 866 867 psFree(inPosition); 868 867 869 return output; 868 870 } -
trunk/psLib/src/imageops/psImageGeomManip.c
r4287 r4308 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-1 6 22:07:41 $12 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-17 23:44:21 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 865 865 } 866 866 867 psFree(inPosition); 868 867 869 return output; 868 870 } -
trunk/psLib/src/sys/psErrorCodes.c
r3682 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 4-07 20:27:41 $9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 * $2 The error description (rest of the line in psErrorCodes.dat) 30 30 * $n The order of the source line in psErrorCodes.dat (comments excluded) 31 * 31 * 32 32 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 33 33 */ … … 90 90 static void freeErrorDescription(psErrorDescription* err) 91 91 { 92 psFree( (psPtr)err->description);92 psFree(err->description); 93 93 } 94 94 -
trunk/psLib/src/sys/psMemory.h
r4298 r4308 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-17 2 1:42:02$14 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-17 23:44:21 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 239 239 /// Free memory. psFree sends file and line number to p_psFree. 240 240 #ifndef SWIG 241 #define psFree(ptr) p_psFree(ptr, __FILE__, __LINE__)241 #define psFree(ptr) { p_psFree((psPtr)ptr, __FILE__, __LINE__); *(void**)&ptr = NULL; } 242 242 #endif // ! SWIG 243 243 -
trunk/psLib/src/sys/psTrace.c
r4162 r4308 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 08 23:40:45$11 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-17 23:44:21 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 97 97 98 98 p_psMemSetPersistent((psPtr)comp->name,false); 99 psFree( (psPtr)comp->name);99 psFree(comp->name); 100 100 } 101 101 -
trunk/psLib/src/sysUtils/psErrorCodes.c
r3682 r4308 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 4-07 20:27:41 $9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 * $2 The error description (rest of the line in psErrorCodes.dat) 30 30 * $n The order of the source line in psErrorCodes.dat (comments excluded) 31 * 31 * 32 32 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 33 33 */ … … 90 90 static void freeErrorDescription(psErrorDescription* err) 91 91 { 92 psFree( (psPtr)err->description);92 psFree(err->description); 93 93 } 94 94 -
trunk/psLib/src/sysUtils/psMemory.h
r4298 r4308 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-17 2 1:42:02$14 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-17 23:44:21 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 239 239 /// Free memory. psFree sends file and line number to p_psFree. 240 240 #ifndef SWIG 241 #define psFree(ptr) p_psFree(ptr, __FILE__, __LINE__)241 #define psFree(ptr) { p_psFree((psPtr)ptr, __FILE__, __LINE__); *(void**)&ptr = NULL; } 242 242 #endif // ! SWIG 243 243 -
trunk/psLib/src/sysUtils/psTrace.c
r4162 r4308 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 08 23:40:45$11 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-17 23:44:21 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 97 97 98 98 p_psMemSetPersistent((psPtr)comp->name,false); 99 psFree( (psPtr)comp->name);99 psFree(comp->name); 100 100 } 101 101 -
trunk/psLib/src/types/psLookupTable.c
r4167 r4308 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 09 00:56:37$9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-17 23:44:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 246 246 247 247 psFree(table->values); 248 psFree( (char*)table->filename);249 psFree( (char*)table->format);248 psFree(table->filename); 249 psFree(table->format); 250 250 } 251 251 -
trunk/psLib/src/types/psMetadata.c
r4094 r4308 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.6 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 03 02:07:51 $14 * @version $Revision: 1.65 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-17 23:44:21 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 89 89 90 90 psHashAdd(table, key, item); // put in the new entry 91 psMemDecrRefCounter(item); // get rid of extra reference 91 92 92 93 // free local references of newly allocated items. 93 94 psFree(newList); 94 psFree(item);95 95 96 96 return item; … … 107 107 } 108 108 109 ps Free(metadataItem->name);110 ps Free(metadataItem->comment);109 psMemDecrRefCounter(metadataItem->name); 110 psMemDecrRefCounter(metadataItem->comment); 111 111 112 112 if(!PS_META_IS_PRIMITIVE(type)) { -
trunk/psLib/test/collections/tst_psArray.c
r3682 r4308 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-0 4-07 20:27:41$19 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-06-17 23:44:22 $ 21 21 * 22 22 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 202 202 } 203 203 } 204 ps Free(mySt[0]);204 psMemDecrRefCounter(mySt[0]); 205 205 printFooter(stderr,"psArray","Remove valid item", true); 206 206 … … 235 235 psFree(mySt[i]); 236 236 } 237 if( psMemCheckLeaks(0, NULL, stderr, false) != 0) { 238 psError(PS_ERR_UNKNOWN,true,"Memory leaks detected."); 239 return 110; 240 } 241 psS32 nBad = psMemCheckCorruption(0); 242 if(nBad) { 243 fprintf(stderr,"ERROR: Found %d bad memory blocks\n", nBad); 244 return 111; 245 } 237 246 238 printFooter(stderr, "psArray" ,"Free void pointer array", true); 247 239 … … 361 353 } 362 354 363 psFree(data);364 365 355 subtest++; 366 356 if (arr->nalloc != nalloc) { … … 386 376 return subtest; 387 377 } 378 379 psFree(data); 388 380 } 389 381 … … 391 383 data = psAlloc(sizeof(float)); 392 384 arr = psArrayAdd(arr, delta, data); 393 psFree(data);394 385 395 386 // make sure the array was expanded … … 418 409 } 419 410 411 psFree(data); 412 420 413 // make the array full again (operation tested already) 421 414 while (arr->n < arr->nalloc) { -
trunk/psLib/test/collections/tst_psMetadata_04.c
r3682 r4308 23 23 * @author Ross Harman, MHPCC 24 24 * 25 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $26 * @date $Date: 2005-0 4-07 20:27:41$25 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 26 * @date $Date: 2005-06-17 23:44:22 $ 27 27 * 28 28 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 101 101 psMetadataAddItem(metadata, item5, PS_LIST_HEAD, PS_META_DEFAULT); 102 102 psMetadataAddItem(metadata, item6, PS_LIST_HEAD, PS_META_DEFAULT); 103 ps Free(vec);103 psMemDecrRefCounter(vec); // vs. psFree, which now would set vec to NULL (want to keep it to comparison later) 104 104 printFooter(stdout, "psMetadata", "Test A - Allocate metadata items", true); 105 105 -
trunk/psLib/test/dataManip/tst_psVectorFFT.c
r3884 r4308 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 5-11 22:02:16$8 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-17 23:44:22 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 474 474 475 475 psFree( vec ); 476 psFree( vec2 );477 476 478 477 // Perform conjugate for non-complex number … … 509 508 for ( psU32 n = 0; n < 100; n++ ) { 510 509 if ( fabsf( crealf(vec->data.C64[n]) - crealf(vec2->data.C64[n])) > FLT_EPSILON || 511 fabsf( cimagf(vec->data.C64[n]) -cimagf(vec2->data.C64[n])) > FLT_EPSILON ) {510 fabsf( cimagf(vec->data.C64[n]) + cimagf(vec2->data.C64[n])) > FLT_EPSILON ) { 512 511 psError(PS_ERR_UNKNOWN,true,"psVectorConjugate result is invalid (n=%d)",n); 513 512 return 13; … … 516 515 psFree(vec); 517 516 518 // Perform vector conjugate with null input 519 if ( psVectorConjugate( NULL,NULL) != NULL) {517 // Perform vector conjugate with null input (vec2 should be freed too) 518 if ( psVectorConjugate(vec2,NULL) != NULL) { 520 519 psError(PS_ERR_UNKNOWN,true,"Did not return NULL with null input vector"); 521 520 return 61; -
trunk/psLib/test/image/tst_psImageGeomManip.c
r4214 r4308 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-06-1 1 02:19:05$8 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-17 23:44:22 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1077 1077 static psS32 testImageTransform(void) 1078 1078 { 1079 1080 /// XXX: TODO 1079 int cols = 16; 1080 int rows = 32; 1081 1082 psPlaneTransform* trans = psPlaneTransformAlloc(2,2); 1083 trans->x->coeff[1][0] = 0.5; 1084 trans->y->coeff[0][1] = 1.5; 1085 1086 psImage* in = psImageAlloc(cols,rows,PS_TYPE_F32); 1087 for (psS32 row=0;row<rows;row++) { 1088 psF32* inRow = in->data.F32[row]; 1089 for (psS32 col=0;col<cols;col++) { 1090 inRow[col] = (psF32)row+(psF32)col/1000.0f; 1091 } 1092 } 1093 1094 psImage* out = psImageTransform(NULL, 1095 NULL, 1096 in, 1097 NULL, 1098 0, 1099 trans, 1100 psRegionSet(0,cols*2,0,rows*2), 1101 NULL, 1102 PS_INTERPOLATE_FLAT, 1103 -1); 1104 1105 if (out == NULL) { 1106 psError(PS_ERR_UNKNOWN, false, 1107 "out == NULL"); 1108 return 1; 1109 } 1110 if (out->type.type != PS_TYPE_F32) { 1111 psError(PS_ERR_UNKNOWN, false, 1112 "out->type.type != PS_TYPE_F32, out->type.type == %d", 1113 out->type.type); 1114 return 2; 1115 } 1116 if (out->numRows != rows*2 || out->numCols != cols*2) { 1117 psError(PS_ERR_UNKNOWN, false, 1118 "out size is %dx%d, not %dx%d", 1119 out->numCols, out->numRows, cols*2, rows); 1120 return 3; 1121 } 1122 1123 for (psS32 row=0;row<out->numRows;row++) { 1124 psF32* outRow = out->data.F32[row]; 1125 for (psS32 col=0;col<cols;col++) { 1126 float inValue = p_psImagePixelInterpolateFLAT_F32(in, 1127 col*trans->x->coeff[1][0]+trans->x->coeff[0][0], 1128 row*trans->y->coeff[0][1]+trans->y->coeff[0][0], 1129 NULL, 0, 1130 -1); 1131 if (fabsf(outRow[col] - inValue) > FLT_EPSILON*10) { 1132 psError(PS_ERR_UNKNOWN, false, 1133 "out at %d,%d was %g, expected %g", 1134 col,row,outRow[col], inValue); 1135 return 4; 1136 } 1137 } 1138 } 1139 1140 psFree(out); 1141 psFree(in); 1142 psFree(trans); 1081 1143 return 0; 1082 1144 } -
trunk/psLib/test/image/verified/tst_psImagePixelManip.stderr
r3986 r4308 27 27 <DATE><TIME>|<HOST>|I|testImageClip 28 28 Following should be an error (max<min) 29 <DATE><TIME>|<HOST>|E|psImageClip (FILE:LINENO)30 Specified min value, 256, can not be greater than the specified max value, 128.31 29 32 30 ---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImagePixelManip.c) -
trunk/psLib/test/sysUtils/tst_psMemory.c
r3682 r4308 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 4-07 20:27:42 $8 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-17 23:44:22 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 130 130 psLogMsg( __func__, PS_LOG_INFO, "psFree shall be just decrement a multiple refererenced pointer." ); 131 131 132 ps Free( mem );132 psMemDecrRefCounter( mem ); 133 133 134 134 ref = psMemGetRefCounter( mem ); … … 521 521 { 522 522 523 psPtr buffer = psAlloc( 1024 ); 523 psPtr buffer = psAlloc( 1024 ); 524 psPtr buffer2 = buffer; 524 525 525 526 psFree( buffer ); 526 527 527 528 psLogMsg( __func__, PS_LOG_INFO, "Next should abort due to multiple freeing." ); 528 psFree( buffer );529 psFree( buffer2 ); 529 530 530 531 psError(PS_ERR_UNKNOWN,true,
Note:
See TracChangeset
for help on using the changeset viewer.
