Changeset 1440 for trunk/psLib/src/image/psImage.h
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r1426 r1440 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-09 2 2:44:25$14 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-09 23:34:58 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 50 50 51 51 union { 52 psU8 **U8; ///< Unsigned 8-bit integer data.53 psU16 **U16; ///< Unsigned 16-bit integer data.54 psU32 **U32; ///< Unsigned 32-bit integer data.55 psU64 **U64; ///< Unsigned 64-bit integer data.56 psS8 **S8; ///< Signed 8-bit integer data.57 psS16 **S16; ///< Signed 16-bit integer data.58 psS32 **S32; ///< Signed 32-bit integer data.59 psS64 **S64; ///< Signed 64-bit integer data.60 psF32 **F32; ///< Single-precision float data.61 psF64 **F64; ///< Double-precision float data.62 psC32 **C32; ///< Single-precision complex data.63 psC64 **C64; ///< Double-precision complex data.64 psPTR **PTR; ///< Void pointers.65 psPTR *V; ///< Pointer to data.52 psU8* *U8; ///< Unsigned 8-bit integer data. 53 psU16* *U16; ///< Unsigned 16-bit integer data. 54 psU32* *U32; ///< Unsigned 32-bit integer data. 55 psU64* *U64; ///< Unsigned 64-bit integer data. 56 psS8* *S8; ///< Signed 8-bit integer data. 57 psS16* *S16; ///< Signed 16-bit integer data. 58 psS32* *S32; ///< Signed 32-bit integer data. 59 psS64* *S64; ///< Signed 64-bit integer data. 60 psF32* *F32; ///< Single-precision float data. 61 psF64* *F64; ///< Double-precision float data. 62 psC32* *C32; ///< Single-precision complex data. 63 psC64* *C64; ///< Double-precision complex data. 64 psPTR* *PTR; ///< Void pointers. 65 psPTR* V; ///< Pointer to data. 66 66 } data; ///< Union for data types. 67 const struct psImage *parent; ///< Parent, if a subimage.67 const struct psImage* parent; ///< Parent, if a subimage. 68 68 int nChildren; ///< Number of subimages. 69 struct psImage **children; ///< Children of this region.69 struct psImage* *children; ///< Children of this region. 70 70 } 71 71 psImage; … … 82 82 * specified size and type. 83 83 * 84 * @return psImage* : Pointer to psImage.84 * @return psImage* : Pointer to psImage. 85 85 * 86 86 */ 87 psImage *psImageAlloc(unsigned int numCols, ///< Number of rows in image.87 psImage* psImageAlloc(unsigned int numCols, ///< Number of rows in image. 88 88 unsigned int numRows, ///< Number of columns in image. 89 89 const psElemType type ///< Type of data for image. … … 95 95 * 96 96 */ 97 psImage *psImageRecycle(psImage* old, ///< the psImage to recycle by resizing image buffer97 psImage* psImageRecycle(psImage* old, ///< the psImage to recycle by resizing image buffer 98 98 unsigned int numCols, ///< the desired number of columns in image 99 99 unsigned int numRows, ///< the desired number of rows in image … … 106 106 * 107 107 */ 108 int psImageFreeChildren(psImage * image108 int psImageFreeChildren(psImage* image 109 109 110 110 /**< psImage in which all children shall be deallocated */ 111 111 ); 112 112 113 psF32 psImagePixelInterpolate(const psImage * input,113 psF32 psImagePixelInterpolate(const psImage* input, 114 114 float x, float y, psF32 unexposedValue, psImageInterpolateMode mode); 115 115 116 116 # define p_psImagePixelInterpolateFcns(TYPE) \ 117 117 inline psF64 p_psImagePixelInterpolateFLAT_##TYPE( \ 118 const psImage *input, \118 const psImage* input, \ 119 119 float x, \ 120 120 float y, \ … … 122 122 ); \ 123 123 inline psF64 p_psImagePixelInterpolateBILINEAR_##TYPE( \ 124 const psImage *input, \124 const psImage* input, \ 125 125 float x, \ 126 126 float y, \ … … 130 130 # define p_psImagePixelInterpolateComplexFcns(TYPE) \ 131 131 inline psC64 p_psImagePixelInterpolateFLAT_##TYPE( \ 132 const psImage *input, \132 const psImage* input, \ 133 133 float x, \ 134 134 float y, \ … … 136 136 ); \ 137 137 inline psC64 p_psImagePixelInterpolateBILINEAR_##TYPE( \ 138 const psImage *input, \138 const psImage* input, \ 139 139 float x, \ 140 140 float y, \
Note:
See TracChangeset
for help on using the changeset viewer.
