IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21077


Ignore:
Timestamp:
Jan 1, 2009, 7:10:39 PM (17 years ago)
Author:
eugene
Message:

use UINTnn_MAX values for PS_NOT_..._MASK macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081230/psLib/src/sys/psType.h

    r21074 r21077  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.62.42.1 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2008-12-30 20:40:00 $
     12*  @version $Revision: 1.62.42.2 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2009-01-02 05:10:39 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    146146#define PS_TYPE_MASK_NAME "psU8"       /**< the data type for mask as a string */
    147147typedef psU8 psMaskType;               ///< the C datatype for a mask image
     148#define PS_NOT_MASK(A)(UINT8_MAX-(A))
     149
     150// alternate versions if needed
     151// #define PS_NOT_MASK(A)(UINT16_MAX-(A))
     152// #define PS_NOT_MASK(A)(UINT32_MAX-(A))
     153// #define PS_NOT_MASK(A)(UINT64_MAX-(A))
    148154
    149155// macros to abstract the vector mask type : these values must be consistent
     
    152158#define PS_TYPE_VECTOR_MASK_NAME "psU8"       /**< the data type for mask as a string */
    153159typedef psU8 psVectorMaskType;                    ///< the C datatype for a mask image
     160#define PS_NOT_VECTOR_MASK(A)(UINT8_MAX-(A))
    154161
    155162// macros to abstract the image mask type : these values must be consistent
     
    158165#define PS_TYPE_IMAGE_MASK_NAME "psU8"       /**< the data type for mask as a string */
    159166typedef psU8 psImageMaskType;               ///< the C datatype for a mask image
     167#define PS_NOT_IMAGE_MASK(A)(UINT8_MAX-(A))
    160168
    161169#define PS_MIN_S8        INT8_MIN      /**< minimum valid psS8 value */
Note: See TracChangeset for help on using the changeset viewer.