IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 10:03:35 AM (22 years ago)
Author:
desonia
Message:

Removed the switch statements. It compiles now but just contains alloc/free.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.h

    r649 r664  
    77 *  @author Ross Harman, MHPCC
    88 *   
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-12 19:46:52 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-05-13 20:03:35 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535typedef struct psImage
    3636{
    37     psType type;                    ///< Image data type and dimension.
    38     int nCols;                      ///< Number of rows in image
    39     int nRows;                      ///< Number of columns in image.
    40     int col0;                       ///< Row position relative to parent.
    41     int row0;                       ///< Column position relative to parent.
     37    psType type;                        ///< Image data type and dimension.
     38    unsigned int numCols;               ///< Number of rows in image
     39    unsigned int numRows;               ///< Number of columns in image.
     40    int col0;                           ///< Row position relative to parent.
     41    int row0;                           ///< Column position relative to parent.
    4242
    4343    union {
    44         char **rowsC                ///< Pointers to char integer data.
    45         short **rowsS;              ///< Pointers to short integer data.
    46         int **rowsI;                ///< Pointers to integer data.
    47         long **rowsL ;              ///< Pointers to long integer data.
    48         unsigned char **rowsUC;    ///< Pointers to unsigned char integer data.
    49         unsigned short **rowsUS;    ///< Pointers to unsigned short integer data.
    50         unsigned int **rowsUI;      ///< Pointers to unsigned integer data.
    51         unsigned long **rowsUL;     ///< Pointers to unsigned long integer data.
    52         float **rowsF;              ///< Pointers to floating point data.
    53         double **rowsD;             ///< Pointers to double precision data.
    54         complex float **rowsCF;     ///< Pointers to complex floating point data.
    55     } rows;                         ///< Union for data types.
    56     struct psImage *parent;         ///< Parent, if a subimage.
    57     int nChildren;                  ///< Number of subimages.
    58     struct psImage *children;       ///< Children of this region.
     44        void    **v;                    ///< void pointer to data
     45        uint8_t **ui8;                  ///< Pointers to char integer data.
     46        int16_t **i16;                  ///< Pointers to short integer data.
     47        int32_t **i32;                  ///< Pointers to integer data.
     48        float **f32;                    ///< Pointers to floating point data.
     49        complex float **c32;            ///< Pointers to complex floating point data.
     50    } data;                             ///< Union for data types.
     51    struct psImage *parent;             ///< Parent, if a subimage.
     52    int nChildren;                      ///< Number of subimages.
     53    struct psImage *children;           ///< Children of this region.
    5954}
    6055psImage;
     
    6762/** Create an image of the specified size and type.
    6863 *
    69  * Uses psLib memory allocation functions to create an image struct of the specified size and type. 
     64 * Uses psLib memory allocation functions to create an image struct of the specified size and type.
    7065 *
    7166 * @return psImage*: Pointer to psImage.
     
    7368 */
    7469psImage *psImageAlloc(
    75     int nCols,  ///< Number of rows in image.
    76     int nRows,  ///< Number of columns in image.
    77     psType type ///< Type of data for image.
     70    unsigned int numCols,               ///< Number of rows in image.
     71    unsigned int numRows,               ///< Number of columns in image.
     72    psType type                         ///< Type of data for image.
    7873);
    7974
    8075/** Create a subimage of the specified area.
    8176 *
    82  * Uses psLib memory allocation functions to create an image based on a larger one. 
     77 * Uses psLib memory allocation functions to create an image based on a larger one.
    8378 *
    8479 * @return psImage*: Pointer to psImage.
     
    8681 */
    8782psImage *psImageSubset(
    88     psImage *out,           ///< Subimage to return, or NULL.
    89     const psImage *image,   ///< Parent image.
    90     int nCols,              ///< Subimage width (<= image.nCols - col0).
    91     int nRows,              ///< Subimage height (<= image.nRows - row0).
    92     int col0,               ///< Subimage col-offset (0 <= col0 < nCol).
    93     int row0                ///< Subimage row-offset (0 <= row0 < nCol).
     83    psImage *out,                       ///< Subimage to return, or NULL.
     84    const psImage *image,               ///< Parent image.
     85    unsigned int numCols,               ///< Subimage width (<= image.nCols - col0).
     86    unsigned int numRows,               ///< Subimage height (<= image.nRows - row0).
     87    int col0,                           ///< Subimage col-offset (0 <= col0 < nCol).
     88    int row0                            ///< Subimage row-offset (0 <= row0 < nCol).
    9489);
    9590
    9691/** Destroy the specified image.
    9792 *
    98  *  Uses psLib memory deallocation functions to free an image and any existing children. 
     93 *  Uses psLib memory deallocation functions to free an image and any existing children.
    9994 *
    10095 * @return psImage*: Pointer to psImage.
     
    10297 */
    10398void psImageFree(
    104     psImage *restrict image ///< Free psImage
     99    psImage *restrict image             ///< Free psImage
    105100);
    106101
Note: See TracChangeset for help on using the changeset viewer.