IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 2:06:06 PM (22 years ago)
Author:
desonia
Message:

another attempt to get astyle to get it right.

File:
1 edited

Legend:

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

    r1406 r1407  
     1
    12/** @file  psImage.h
    23 *
     
    1112 *  @author Ross Harman, MHPCC
    1213 *
    13  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-06 22:34:05 $
     14 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-08-07 00:06:06 $
    1516 *
    1617 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1718 */
    18 # ifndef PS_IMAGE_H
    19 # define PS_IMAGE_H
     19#ifndef PS_IMAGE_H
     20#    define PS_IMAGE_H
    2021
    21 #include <complex.h>
     22#    include <complex.h>
    2223
    23 #include "psType.h"
     24#    include "psType.h"
    2425
    2526/// @addtogroup Image
     
    3940typedef struct psImage
    4041{
    41     const psType type;                  ///< Image data type and dimension.
    42     const unsigned int numCols;         ///< Number of columns in image
    43     const unsigned int numRows;         ///< Number of rows in image.
    44     const int col0;                     ///< Column position relative to parent.
    45     const int row0;                     ///< Row position relative to parent.
     42    const psType type;          // /< Image data type and dimension.
     43    const unsigned int numCols; // /< Number of columns in image
     44    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.
    4647
    4748    union {
    48         psU8    **U8;                   ///< Unsigned 8-bit integer data.
    49         psU16   **U16;                  ///< Unsigned 16-bit integer data.
    50         psU32   **U32;                  ///< Unsigned 32-bit integer data.
    51         psU64   **U64;                  ///< Unsigned 64-bit integer data.
    52         psS8    **S8;                   ///< Signed 8-bit integer data.
    53         psS16   **S16;                  ///< Signed 16-bit integer data.
    54         psS32   **S32;                  ///< Signed 32-bit integer data.
    55         psS64   **S64;                  ///< Signed 64-bit integer data.
    56         psF32   **F32;                  ///< Single-precision float data.
    57         psF64   **F64;                  ///< Double-precision float data.
    58         psC32   **C32;                  ///< Single-precision complex data.
    59         psC64   **C64;                  ///< Double-precision complex data.
    60         psPTR   **PTR;                  ///< Void pointers.
    61         psPTR    *V;                    ///< Pointer to data.
    62     } data;                             ///< Union for data types.
    63     const struct psImage *parent;       ///< Parent, if a subimage.
    64     int nChildren;                      ///< Number of subimages.
    65     struct psImage** children;          ///< Children of this region.
     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.
    6667}
    6768psImage;
    6869
    6970/*****************************************************************************/
     71
    7072/* FUNCTION PROTOTYPES                                                       */
     73
    7174/*****************************************************************************/
    72 
    7375
    7476/** Create an image of the specified size and type.
     
    8082 *
    8183 */
    82 psImage *psImageAlloc(
    83     unsigned int numCols,               ///< Number of rows in image.
    84     unsigned int numRows,               ///< Number of columns in image.
    85     const psElemType type               ///< Type of data for image.
    86 );
     84psImage *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                     );
    8788
    8889/** Resize a given image to the given size/type.
     
    9192 *
    9293 */
    93 psImage* psImageRecycle(
    94     psImage* old,                       ///< the psImage to recycle by resizing image buffer
    95     unsigned int numCols,               ///< the desired number of columns in image
    96     unsigned int numRows,               ///< the desired number of rows in image
    97     const psElemType type               ///< the desired datatype of the image
    98 );
    99 
     94psImage *psImageRecycle(psImage * old,  // /< the psImage to recycle by resizing image buffer
     95                        unsigned int numCols,   // /< the desired number of columns in image
     96                        unsigned int numRows,   // /< the desired number of rows in image
     97                        const psElemType type   // /< the desired datatype of the image
     98                       );
    10099
    101100/** Frees all children of a psImage.
     
    104103 *
    105104 */
    106 int psImageFreeChildren(
    107     psImage* image
    108     /**< psImage in which all children shall be deallocated */
    109 );
     105int psImageFreeChildren(psImage * image
    110106
    111 psF32 psImagePixelInterpolate(
    112     const psImage *input,
    113     float x,
    114     float y,
    115     psF32 unexposedValue,
    116     psImageInterpolateMode mode
    117 );
     107                        /**< psImage in which all children shall be deallocated */
     108                       );
    118109
    119 #define p_psImagePixelInterpolateFcns(TYPE) \
     110psF32 psImagePixelInterpolate(const psImage * input,
     111                              float x, float y, psF32 unexposedValue, psImageInterpolateMode mode);
     112
     113#    define p_psImagePixelInterpolateFcns(TYPE) \
    120114inline psF64 p_psImagePixelInterpolateFLAT_##TYPE( \
    121115        const psImage *input, \
     
    131125                                                     );
    132126
    133 #define p_psImagePixelInterpolateComplexFcns(TYPE) \
     127#    define p_psImagePixelInterpolateComplexFcns(TYPE) \
    134128inline psC64 p_psImagePixelInterpolateFLAT_##TYPE( \
    135129        const psImage *input, \
     
    157151p_psImagePixelInterpolateComplexFcns(C32)
    158152p_psImagePixelInterpolateComplexFcns(C64)
    159 
    160153/// @}
    161 
    162154#endif
Note: See TracChangeset for help on using the changeset viewer.