Changeset 4936
- Timestamp:
- Aug 31, 2005, 12:00:32 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/mathtypes/tst_psImage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/mathtypes/tst_psImage.c
r4887 r4936 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-08- 26 23:01:17$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-08-31 22:00:32 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 285 285 static psS32 testRegion2(void) 286 286 { 287 psImage *in = NULL;288 psRegion *inReg;287 psImage *in; 288 psRegion inReg[1]; 289 289 psRegion out; 290 290 in = psImageAlloc(1, 1, PS_TYPE_S32); 291 *inReg= psRegionSet(1, 2, 1, 2);292 out = psRegionForImage(in, inReg);293 psRegion *inReg2;291 inReg[0] = psRegionSet(1, 2, 1, 2); 292 out = psRegionForImage(in,inReg); 293 psRegion inReg2[1]; 294 294 psRegion out2; 295 *inReg2= psRegionSet(-1, 0, -2, -1);295 inReg2[0] = psRegionSet(-1, 0, -2, -1); 296 296 out2 = psRegionForImage(in, inReg2); 297 297 298 if( out.x0 != 1 || out.x1 != 1 || out.y0 != 1 || out.y1 != 1 ) { 298 299 psError(PS_ERR_UNKNOWN, true, "Error: Region For Image returned incorrect values.\n"); … … 301 302 psError(PS_ERR_UNKNOWN, true, "Error: Region For Image returned incorrect values.\n"); 302 303 } 304 303 305 psFree(in); 304 306 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
