Changeset 1426 for trunk/psLib/src/image/psImage.h
- Timestamp:
- Aug 9, 2004, 12:44:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r1407 r1426 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 7 00:06:06$14 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-09 22:44:25 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 #ifndef PS_IMAGE_H 20 # define PS_IMAGE_H20 #define PS_IMAGE_H 21 21 22 # include <complex.h>22 #include <complex.h> 23 23 24 # include "psType.h"24 #include "psType.h" 25 25 26 26 /// @addtogroup Image 27 27 /// @{ 28 28 29 /** enumeration of options in interpolation 30 * 31 */ 29 32 typedef enum { 30 PS_INTERPOLATE_FLAT, 31 PS_INTERPOLATE_BILINEAR 33 PS_INTERPOLATE_FLAT, ///< 'flat' interpolation (nearest pixel) 34 PS_INTERPOLATE_BILINEAR ///< bi-linear interpolation 32 35 } psImageInterpolateMode; 33 36 … … 40 43 typedef struct psImage 41 44 { 42 const psType type; // /< Image data type and dimension.43 const unsigned int numCols; // /< Number of columns in image44 const unsigned int numRows; // /< Number of rows in image.45 const int col0; // /< Column position relative to parent.46 const int row0; // /< Row position relative to parent.45 const psType type; ///< Image data type and dimension. 46 const unsigned int numCols; ///< Number of columns in image 47 const unsigned int numRows; ///< Number of rows in image. 48 const int col0; ///< Column position relative to parent. 49 const int row0; ///< Row position relative to parent. 47 50 48 51 union { 49 psU8 **U8; // /< Unsigned 8-bit integer data.50 psU16 **U16; // /< Unsigned 16-bit integer data.51 psU32 **U32; // /< Unsigned 32-bit integer data.52 psU64 **U64; // /< Unsigned 64-bit integer data.53 psS8 **S8; // /< Signed 8-bit integer data.54 psS16 **S16; // /< Signed 16-bit integer data.55 psS32 **S32; // /< Signed 32-bit integer data.56 psS64 **S64; // /< Signed 64-bit integer data.57 psF32 **F32; // /< Single-precision float data.58 psF64 **F64; // /< Double-precision float data.59 psC32 **C32; // /< Single-precision complex data.60 psC64 **C64; // /< Double-precision complex data.61 psPTR **PTR; // /< Void pointers.62 psPTR *V; // /< Pointer to data.63 } data; // /< Union for data types.64 const struct psImage *parent; // /< Parent, if a subimage.65 int nChildren; // /< Number of subimages.66 struct psImage **children; // /< Children of this region.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 } data; ///< Union for data types. 67 const struct psImage *parent; ///< Parent, if a subimage. 68 int nChildren; ///< Number of subimages. 69 struct psImage **children; ///< Children of this region. 67 70 } 68 71 psImage; … … 82 85 * 83 86 */ 84 psImage *psImageAlloc(unsigned int numCols, // /< Number of rows in image.85 unsigned int numRows, // /< Number of columns in image.86 const psElemType type // /< Type of data for image.87 psImage *psImageAlloc(unsigned int numCols, ///< Number of rows in image. 88 unsigned int numRows, ///< Number of columns in image. 89 const psElemType type ///< Type of data for image. 87 90 ); 88 91 … … 92 95 * 93 96 */ 94 psImage *psImageRecycle(psImage * old, // /< the psImage to recycle by resizing image buffer95 unsigned int numCols, // /< the desired number of columns in image96 unsigned int numRows, // /< the desired number of rows in image97 const psElemType type // /< the desired datatype of the image97 psImage *psImageRecycle(psImage * old, ///< the psImage to recycle by resizing image buffer 98 unsigned int numCols, ///< the desired number of columns in image 99 unsigned int numRows, ///< the desired number of rows in image 100 const psElemType type ///< the desired datatype of the image 98 101 ); 99 102
Note:
See TracChangeset
for help on using the changeset viewer.
