Changeset 831 for trunk/psLib/test/image/tst_psImage.c
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImage.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImage.c
r782 r831 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-0 5-25 23:59:17$8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-02 23:29:29 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 48 48 unsigned int numRows[] = {0,1,100,1,150,100}; 49 49 unsigned int types = 12; 50 psElemType type[] = { PS_TYPE_ INT8, PS_TYPE_INT16, PS_TYPE_INT32, PS_TYPE_INT64,51 PS_TYPE_U INT8, PS_TYPE_UINT16, PS_TYPE_UINT32, PS_TYPE_UINT64,52 PS_TYPE_F LOAT, PS_TYPE_DOUBLE, PS_TYPE_COMPLEX_FLOAT, PS_TYPE_COMPLEX_DOUBLE};50 psElemType type[] = { PS_TYPE_S8, PS_TYPE_S16, PS_TYPE_S32, PS_TYPE_S64, 51 PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_U32, PS_TYPE_U64, 52 PS_TYPE_F32, PS_TYPE_F64, PS_TYPE_C32, PS_TYPE_C64 }; 53 53 54 54 psLogMsg(__func__,PS_LOG_INFO,"#546 - psImageAlloc shall allocate memory for a psImage structure"); … … 111 111 112 112 switch (type[t]) { 113 case PS_TYPE_U INT16: {113 case PS_TYPE_U16: { 114 114 unsigned int rows = numRows[i]; 115 115 unsigned int cols = numCols[i]; … … 131 131 } 132 132 break; 133 case PS_TYPE_F LOAT: {133 case PS_TYPE_F32: { 134 134 unsigned int rows = numRows[i]; 135 135 unsigned int cols = numCols[i]; … … 151 151 } 152 152 break; 153 case PS_TYPE_ DOUBLE: {153 case PS_TYPE_F64: { 154 154 unsigned int rows = numRows[i]; 155 155 unsigned int cols = numCols[i]; … … 171 171 } 172 172 break; 173 case PS_TYPE_C OMPLEX_FLOAT: {173 case PS_TYPE_C32: { 174 174 unsigned int rows = numRows[i]; 175 175 unsigned int cols = numCols[i];
Note:
See TracChangeset
for help on using the changeset viewer.
