Changeset 4316 for trunk/psLib/src/imageops/psImageGeomManip.c
- Timestamp:
- Jun 17, 2005, 5:13:02 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageGeomManip.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r4308 r4316 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-1 7 23:44:21$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-18 03:13:02 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 174 174 psImage* psImageResample(psImage* out, 175 175 const psImage* in, 176 psS32scale,176 int scale, 177 177 psImageInterpolateMode mode) 178 178 { … … 251 251 252 252 psImage* psImageRoll(psImage* out, 253 const psImage* in ,254 psS32dx,255 psS32dy)253 const psImage* input, 254 int dx, 255 int dy) 256 256 { 257 257 psS32 outRows; … … 259 259 psS32 elementSize; 260 260 261 if (in == NULL) {261 if (input == NULL) { 262 262 psError(PS_ERR_BAD_PARAMETER_NULL, true, 263 263 PS_ERRORTEXT_psImage_IMAGE_NULL); … … 267 267 // create an output image of the same size 268 268 // and type 269 outRows = in ->numRows;270 outCols = in ->numCols;271 elementSize = PSELEMTYPE_SIZEOF(in ->type.type);272 out = psImageRecycle(out, outCols, outRows, in ->type.type);269 outRows = input->numRows; 270 outCols = input->numCols; 271 elementSize = PSELEMTYPE_SIZEOF(input->type.type); 272 out = psImageRecycle(out, outCols, outRows, input->type.type); 273 273 274 274 // make dx and dy between 0 and outCols or … … 292 292 inRowNumber -= outRows; 293 293 } 294 psU8* inRow = in ->data.U8[inRowNumber]; // use byte arithmetic for all types294 psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types 295 295 psU8* outRow = out->data.U8[row]; 296 296
Note:
See TracChangeset
for help on using the changeset viewer.
