Changeset 34089 for trunk/psLib/src/imageops
- Timestamp:
- Jun 26, 2012, 11:47:13 AM (14 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 3 edited
-
psImageGeomManip.c (modified) (2 diffs)
-
psImageInterpolate.c (modified) (5 diffs)
-
psImageStructManip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r31446 r34089 580 580 psS32 outRows; 581 581 psS32 outCols; 582 psS32 elementSize;583 582 psElemType type; 584 583 … … 594 593 outCols = input->numCols; 595 594 type = input->type.type; 596 elementSize = PSELEMTYPE_SIZEOF(type);595 // XXX unused psS32 elementSize = PSELEMTYPE_SIZEOF(type); 597 596 out = psImageRecycle(out, outCols, outRows, type); 598 597 -
trunk/psLib/src/imageops/psImageInterpolate.c
r31446 r34089 461 461 } 462 462 463 #define INTERPOLATE_CHECK() \ 464 if (xMin < 0) { /* XXX warn or error? */ } \ 465 if (yMin < 0) { /* XXX warn or error? */ } \ 466 if (xMax >= image->numCols) { /* XXX warn or error? */ } \ 467 if (yMax >= image->numRows) { /* XXX warn or error? */ } \ 468 463 469 // Determine the result of the interpolation after all the math has been done 464 470 static psImageInterpolateStatus interpolateResult(const psImageInterpolation *interp, … … 523 529 } 524 530 INTERPOLATE_RANGE(); 531 INTERPOLATE_CHECK(); 525 532 526 533 // Get the appropriate kernels … … 779 786 } 780 787 INTERPOLATE_RANGE(); 788 INTERPOLATE_CHECK(); 781 789 782 790 // Get the appropriate kernels … … 989 997 INTERPOLATE_SETUP(x, y); 990 998 xExact = yExact = false; 999 if (xExact && yExact) { /* possible alternative */ } 991 1000 992 1001 psF32 xKernel[size], yKernel[size]; // Interpolation kernels … … 1038 1047 INTERPOLATE_SETUP(x, y); 1039 1048 xExact = yExact = false; 1049 if (xExact && yExact) { /* possible alternative */ } 1040 1050 1041 1051 psF32 xKernel[size], yKernel[size]; // Interpolation kernels -
trunk/psLib/src/imageops/psImageStructManip.c
r21347 r34089 212 212 elementSize = PSELEMTYPE_SIZEOF(inDatatype); 213 213 214 if (0) { fprintf (stderr, "%d elements, %d total memory\n", elements, elements * elementSize); } 215 214 216 output = p_psImageRecycle(file, lineno, func, output, numCols, numRows, type); 215 217 P_PSIMAGE_SET_COL0(output, input->col0);
Note:
See TracChangeset
for help on using the changeset viewer.
