Changeset 4886 for trunk/psLib/src/mathtypes
- Timestamp:
- Aug 25, 2005, 5:35:03 PM (21 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r4815 r4886 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-08- 18 21:44:40$11 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-08-26 03:35:02 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 209 209 psF32 vF32; 210 210 psF64 vF64; 211 int temp; 211 212 212 213 if (image == NULL) … … 217 218 switch (image->type.type) { 218 219 case PS_TYPE_U8: 219 vU8 = va_arg (argp, psU32); 220 220 temp = va_arg (argp, psU32); 221 if ( temp >= 0 || temp <= 255 ) 222 vU8 = temp; 223 else 224 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error: U8 Value out of Range.\n"); 221 225 for (int iy = 0; iy < image->numRows; iy++) { 222 226 for (int ix = 0; ix < image->numCols; ix++) { … … 224 228 } 225 229 } 226 break;230 return (true); 227 231 228 232 case PS_TYPE_F32: -
trunk/psLib/src/mathtypes/psImage.h
r4815 r4886 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.6 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08- 18 21:44:40$13 * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-26 03:35:02 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
Note:
See TracChangeset
for help on using the changeset viewer.
