Changeset 30299
- Timestamp:
- Jan 19, 2011, 3:17:53 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageConvolve.c (modified) (2 diffs)
-
psImageConvolve.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psLib/src/imageops/psImageConvolve.c
r28405 r30299 67 67 } 68 68 69 psKernel *psKernelAlloc(int xMin, int xMax, int yMin, int yMax) 69 psKernel *p_psKernelAlloc(const char *file, 70 unsigned int lineno, 71 const char *func, 72 int xMin, int xMax, int yMin, int yMax) 70 73 { 71 74 // Check the inputs to make sure max > min; if not, switch. … … 91 94 int numCols = xMax - xMin + 1; // Number of columns for kernel image 92 95 93 psKernel *kernel = p sAlloc(sizeof(psKernel)); // The kernel, to be returned96 psKernel *kernel = p_psAlloc(file, lineno, func, sizeof(psKernel)); // The kernel, to be returned 94 97 psMemSetDeallocator(kernel,(psFreeFunc)kernelFree); 95 98 -
branches/eam_branches/ipp-20101205/psLib/src/imageops/psImageConvolve.h
r26892 r30299 84 84 /// @return psKernel* A new kernel object 85 85 /// 86 #ifdef DOXYGEN 86 87 psKernel *psKernelAlloc( 87 88 int xMin, ///< Most negative x index … … 89 90 int yMin, ///< Most negative y index 90 91 int yMax ///< Most positive y index 92 ); 93 #else // ifdef DOXYGEN 94 psKernel *p_psKernelAlloc( 95 const char *file, ///< File of caller 96 unsigned int lineno, ///< Line number of caller 97 const char *func, ///< Function name of caller 98 int xMin, ///< Most negative x index 99 int xMax, ///< Most positive x index 100 int yMin, ///< Most negative y index 101 int yMax ///< Most positive y index 91 102 ) PS_ATTR_MALLOC; 103 #define psKernelAlloc(xMin, xMax, yMin, yMax) \ 104 p_psKernelAlloc(__FILE__, __LINE__, __func__, (xMin), (xMax), (yMin), (yMax)) 105 #endif // ifdef DOXYGEN 92 106 93 107 /// Allocate a convolution kernel from a provided image
Note:
See TracChangeset
for help on using the changeset viewer.
