Changeset 15492
- Timestamp:
- Nov 7, 2007, 3:09:49 PM (19 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageStructManip.c (modified) (3 diffs)
-
psImageStructManip.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStructManip.c
r15456 r15492 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-11-0 5 23:56:33$10 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-11-08 01:09:48 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 161 161 psRegion region = {0, 0, 0, 0}; 162 162 region = psRegionForImage (input, region); 163 psImage *result = imageSubset (__FILE__, __LINE__, __func__, output, input,164 region.x0, region.y0, region.x1, region.y1);163 psImage *result = imageSubset(__FILE__, __LINE__, __func__, output, input, 164 region.x0, region.y0, region.x1, region.y1); 165 165 return result; 166 166 } 167 167 168 psImage* psImageCopy(psImage* output, 169 const psImage* input, 170 psElemType type) 168 psImage* p_psImageCopy(const char *file, unsigned int lineno, const char *func, 169 psImage* output, const psImage* input, psElemType type) 171 170 { 172 171 psElemType inDatatype; … … 203 202 elementSize = PSELEMTYPE_SIZEOF(inDatatype); 204 203 205 output = p sImageRecycle(output, numCols, numRows, type);204 output = p_psImageRecycle(file, lineno, func, output, numCols, numRows, type); 206 205 P_PSIMAGE_SET_COL0(output, input->col0); 207 206 P_PSIMAGE_SET_ROW0(output, input->row0); -
trunk/psLib/src/imageops/psImageStructManip.h
r15456 r15492 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-11-0 5 23:56:33$7 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-11-08 01:09:49 $ 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 64 64 * 65 65 */ 66 #ifdef DOXYGEN 66 67 psImage* psImageCopy( 67 68 psImage* output, ///< if not NULL, a psImage that could be recycled. … … 69 70 psElemType type ///< the desired datatype of the returned copy 70 71 ); 72 #else // ifdef DOXYGEN 73 psImage* p_psImageCopy( 74 const char *file, ///< File of caller 75 unsigned int lineno, ///< Line number of caller 76 const char *func, ///< Function name of caller 77 psImage* output, ///< if not NULL, a psImage that could be recycled. 78 const psImage* input, ///< the psImage to copy 79 psElemType type ///< the desired datatype of the returned copy 80 ) PS_ATTR_MALLOC; 81 #define psImageCopy(output, input, type) \ 82 p_psImageSubset(__FILE__, __LINE__, __func__, output, input, type) 83 #endif // ifdef DOXYGEN 71 84 72 85 /** Trim an image
Note:
See TracChangeset
for help on using the changeset viewer.
