IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 711


Ignore:
Timestamp:
May 17, 2004, 10:59:34 AM (22 years ago)
Author:
desonia
Message:

added the ps-specific typedefs (psU8, psU16, etc).

Location:
trunk/psLib/src
Files:
4 edited

Legend:

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

    r700 r711  
    77 *  @author Ross Harman, MHPCC
    88 *   
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-15 02:10:27 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-05-17 20:59:34 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444
    4545    union {
    46         uint8_t **ui8;                  ///< unsigned 8-bit integer data.
    47         uint16_t **ui16;                ///< unsigned 16-bit integer data.
    48         uint32_t **ui32;                ///< unsigned 32-bit integer data.
    49         int8_t **i8;                    ///< signed 8-bit integer data.
    50         int16_t **i16;                  ///< signed 16-bit integer data.
    51         int32_t **i32;                  ///< signed 32-bit integer data.
    52         float **f32;                    ///< single-precision float data.
    53         double **f64;                   ///< double-precision float data.
    54         complex float **c32;            ///< single-precision complex data.
     46        psU8    **u8;                   ///< unsigned 8-bit integer data.
     47        psU16   **u16;                  ///< unsigned 16-bit integer data.
     48        psU32   **u32;                  ///< unsigned 32-bit integer data.
     49        psU32   **u64;                  ///< unsigned 64-bit integer data.
     50        psS8    **s8;                   ///< signed 8-bit integer data.
     51        psS16   **s16;                  ///< signed 16-bit integer data.
     52        psS32   **s32;                  ///< signed 32-bit integer data.
     53        psS32   **s64;                  ///< signed 64-bit integer data.
     54        psF32   **f32;                  ///< single-precision float data.
     55        psF64   **f64;                  ///< double-precision float data.
     56        psC32   **c32;                  ///< single-precision complex data.
     57        psC32   **c64;                  ///< double-precision complex data.
    5558        void    **v;                    ///< void pointers to data
    5659    } data;                             ///< Union for data types.
  • trunk/psLib/src/mathtypes/psImage.h

    r700 r711  
    77 *  @author Ross Harman, MHPCC
    88 *   
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-15 02:10:27 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-05-17 20:59:34 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444
    4545    union {
    46         uint8_t **ui8;                  ///< unsigned 8-bit integer data.
    47         uint16_t **ui16;                ///< unsigned 16-bit integer data.
    48         uint32_t **ui32;                ///< unsigned 32-bit integer data.
    49         int8_t **i8;                    ///< signed 8-bit integer data.
    50         int16_t **i16;                  ///< signed 16-bit integer data.
    51         int32_t **i32;                  ///< signed 32-bit integer data.
    52         float **f32;                    ///< single-precision float data.
    53         double **f64;                   ///< double-precision float data.
    54         complex float **c32;            ///< single-precision complex data.
     46        psU8    **u8;                   ///< unsigned 8-bit integer data.
     47        psU16   **u16;                  ///< unsigned 16-bit integer data.
     48        psU32   **u32;                  ///< unsigned 32-bit integer data.
     49        psU32   **u64;                  ///< unsigned 64-bit integer data.
     50        psS8    **s8;                   ///< signed 8-bit integer data.
     51        psS16   **s16;                  ///< signed 16-bit integer data.
     52        psS32   **s32;                  ///< signed 32-bit integer data.
     53        psS32   **s64;                  ///< signed 64-bit integer data.
     54        psF32   **f32;                  ///< single-precision float data.
     55        psF64   **f64;                  ///< double-precision float data.
     56        psC32   **c32;                  ///< single-precision complex data.
     57        psC32   **c64;                  ///< double-precision complex data.
    5558        void    **v;                    ///< void pointers to data
    5659    } data;                             ///< Union for data types.
  • trunk/psLib/src/sys/psType.h

    r693 r711  
    1919 *  @author Ross Harman, MHPCC
    2020 *
    21  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2004-05-15 00:14:56 $
     21 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2004-05-17 20:59:34 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141 *
    4242 */
     43
     44typedef uint8_t         psU8;           ///< 8-bit unsigned int
     45typedef uint16_t        psU16;          ///< 16-bit unsigned int
     46typedef uint32_t        psU32;          ///< 32-bit unsigned int
     47typedef uint64_t        psU64;          ///< 64-bit unsigned int
     48typedef int8_t          psS8;           ///< 8-bit signed int
     49typedef int16_t         psS16;          ///< 16-bit signed int
     50typedef int32_t         psS32;          ///< 32-bit signed int
     51typedef int64_t         psS64;          ///< 64-bit signed int
     52typedef float           psF32;          ///< 32-bit floating point
     53typedef double          psF64;          ///< 64-bit floating point
     54typedef complex float   psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
     55typedef complex double  psC64;          ///< complex with 64-bit floating point Real and Imagary numbers
     56
    4357typedef enum {
    44     PS_TYPE_INT8 = 0x101,              ///< Character.
    45     PS_TYPE_INT16 = 0x102,             ///< Short integer.
    46     PS_TYPE_INT32 = 0x104,             ///< Integer.
    47     PS_TYPE_INT64 = 0x108,             ///< Long integer.
    48     PS_TYPE_UINT8 = 0x301,             ///< Unsigned character.
    49     PS_TYPE_UINT16 = 0x302,            ///< Unsigned short integer.
    50     PS_TYPE_UINT32 = 0x304,            ///< Unsigned integer.
    51     PS_TYPE_UINT64 = 0x308,            ///< Unsigned long integer.
    52     PS_TYPE_FLOAT = 0x404,             ///< Single-precision Floating point.
    53     PS_TYPE_DOUBLE = 0x408,            ///< Double-precision floating point.
    54     PS_TYPE_COMPLEX_FLOAT = 0x808,     ///< Complex numbers consisting of single-precision floating point.
    55     PS_TYPE_COMPLEX_DOUBLE = 0x810,    ///< Complex numbers consisting of double-precision floating point.
    56     PS_TYPE_PTR = 0x00,               ///< Something else that's not supported for arithmetic.}
     58    PS_TYPE_INT8             = 0x101,   ///< Character.
     59    PS_TYPE_INT16            = 0x102,   ///< Short integer.
     60    PS_TYPE_INT32            = 0x104,   ///< Integer.
     61    PS_TYPE_INT64            = 0x108,   ///< Long integer.
     62    PS_TYPE_UINT8            = 0x301,   ///< Unsigned character.
     63    PS_TYPE_UINT16           = 0x302,   ///< Unsigned short integer.
     64    PS_TYPE_UINT32           = 0x304,   ///< Unsigned integer.
     65    PS_TYPE_UINT64           = 0x308,   ///< Unsigned long integer.
     66    PS_TYPE_FLOAT            = 0x404,   ///< Single-precision Floating point.
     67    PS_TYPE_DOUBLE           = 0x408,   ///< Double-precision floating point.
     68    PS_TYPE_COMPLEX_FLOAT    = 0x808,   ///< Complex numbers consisting of single-precision floating point.
     69    PS_TYPE_COMPLEX_DOUBLE   = 0x810,   ///< Complex numbers consisting of double-precision floating point.
     70    PS_TYPE_PTR              = 0x000,   ///< Something else that's not supported for arithmetic.
    5771} psElemType;
    5872
     
    6175#define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400)
    6276#define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800)
    63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) )
     77#define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) )
    6478
    6579/** Dimensions of a data type.
    6680 *
    67  * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 
     81 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType
    6882struct. *
    6983 */
  • trunk/psLib/src/sysUtils/psType.h

    r693 r711  
    1919 *  @author Ross Harman, MHPCC
    2020 *
    21  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2004-05-15 00:14:56 $
     21 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2004-05-17 20:59:34 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141 *
    4242 */
     43
     44typedef uint8_t         psU8;           ///< 8-bit unsigned int
     45typedef uint16_t        psU16;          ///< 16-bit unsigned int
     46typedef uint32_t        psU32;          ///< 32-bit unsigned int
     47typedef uint64_t        psU64;          ///< 64-bit unsigned int
     48typedef int8_t          psS8;           ///< 8-bit signed int
     49typedef int16_t         psS16;          ///< 16-bit signed int
     50typedef int32_t         psS32;          ///< 32-bit signed int
     51typedef int64_t         psS64;          ///< 64-bit signed int
     52typedef float           psF32;          ///< 32-bit floating point
     53typedef double          psF64;          ///< 64-bit floating point
     54typedef complex float   psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
     55typedef complex double  psC64;          ///< complex with 64-bit floating point Real and Imagary numbers
     56
    4357typedef enum {
    44     PS_TYPE_INT8 = 0x101,              ///< Character.
    45     PS_TYPE_INT16 = 0x102,             ///< Short integer.
    46     PS_TYPE_INT32 = 0x104,             ///< Integer.
    47     PS_TYPE_INT64 = 0x108,             ///< Long integer.
    48     PS_TYPE_UINT8 = 0x301,             ///< Unsigned character.
    49     PS_TYPE_UINT16 = 0x302,            ///< Unsigned short integer.
    50     PS_TYPE_UINT32 = 0x304,            ///< Unsigned integer.
    51     PS_TYPE_UINT64 = 0x308,            ///< Unsigned long integer.
    52     PS_TYPE_FLOAT = 0x404,             ///< Single-precision Floating point.
    53     PS_TYPE_DOUBLE = 0x408,            ///< Double-precision floating point.
    54     PS_TYPE_COMPLEX_FLOAT = 0x808,     ///< Complex numbers consisting of single-precision floating point.
    55     PS_TYPE_COMPLEX_DOUBLE = 0x810,    ///< Complex numbers consisting of double-precision floating point.
    56     PS_TYPE_PTR = 0x00,               ///< Something else that's not supported for arithmetic.}
     58    PS_TYPE_INT8             = 0x101,   ///< Character.
     59    PS_TYPE_INT16            = 0x102,   ///< Short integer.
     60    PS_TYPE_INT32            = 0x104,   ///< Integer.
     61    PS_TYPE_INT64            = 0x108,   ///< Long integer.
     62    PS_TYPE_UINT8            = 0x301,   ///< Unsigned character.
     63    PS_TYPE_UINT16           = 0x302,   ///< Unsigned short integer.
     64    PS_TYPE_UINT32           = 0x304,   ///< Unsigned integer.
     65    PS_TYPE_UINT64           = 0x308,   ///< Unsigned long integer.
     66    PS_TYPE_FLOAT            = 0x404,   ///< Single-precision Floating point.
     67    PS_TYPE_DOUBLE           = 0x408,   ///< Double-precision floating point.
     68    PS_TYPE_COMPLEX_FLOAT    = 0x808,   ///< Complex numbers consisting of single-precision floating point.
     69    PS_TYPE_COMPLEX_DOUBLE   = 0x810,   ///< Complex numbers consisting of double-precision floating point.
     70    PS_TYPE_PTR              = 0x000,   ///< Something else that's not supported for arithmetic.
    5771} psElemType;
    5872
     
    6175#define IS_PSELEMTYPE_REAL(x) (x & 0x400 == 0x400)
    6276#define IS_PSELEMTYPE_COMPLEX(x) (x & 0x800 == 0x800)
    63 #define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) : (x & 0xFF) )
     77#define PSELEMTYPE_SIZEOF(x) ( (x==PS_TYPE_PTR) ? sizeof(void*) :(x & 0xFF) )
    6478
    6579/** Dimensions of a data type.
    6680 *
    67  * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType 
     81 * The dimensions of containers used by psLib are defined within this enum. This enum is used by the psType
    6882struct. *
    6983 */
Note: See TracChangeset for help on using the changeset viewer.