Changeset 19960 for trunk/psLib/src/imageops/psImageMap.h
- Timestamp:
- Oct 7, 2008, 12:23:06 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageMap.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageMap.h
r15841 r19960 7 7 * @author Eugene Magnier, IfA 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 200 7-12-15 01:20:03$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-10-07 22:23:06 $ 11 11 * 12 12 * Copyright 2007 Institute for Astronomy, University of Hawaii … … 41 41 } psImageMap; 42 42 43 // Assertion for psImageMap 44 #define PS_ASSERT_IMAGE_MAP_NON_NULL(MAP, RVAL) \ 45 if (!(MAP) || !(MAP)->binning || !(MAP)->map || !(MAP)->error) { \ 46 psError(PS_ERR_UNEXPECTED_NULL, true, "Image map %s or its contents is NULL.", #MAP); \ 47 return RVAL; \ 48 } \ 49 PS_ASSERT_IMAGE_NON_NULL((MAP)->map, RVAL); \ 50 PS_ASSERT_IMAGE_NON_NULL((MAP)->error, RVAL); \ 51 PS_ASSERT_IMAGE_TYPE((MAP)->map, PS_TYPE_F32, RVAL); \ 52 PS_ASSERT_IMAGE_TYPE((MAP)->error, PS_TYPE_F32, RVAL); \ 53 PS_ASSERT_IMAGES_SIZE_EQUAL((MAP)->map, (MAP)->error, RVAL); 54 55 // Assertion for statistics in psImageMap 56 #define PS_ASSERT_IMAGE_MAP_STATS(MAP, RVAL) \ 57 if (!(MAP)->stats) { \ 58 psError(PS_ERR_UNEXPECTED_NULL, true, "Image map %s statistics is unset.", #MAP); \ 59 return RVAL; \ 60 } 61 62 43 63 psImageMap *psImageMapAlloc(const psImage *field, psImageBinning *binning, psStats *stats) PS_ATTR_MALLOC; 44 64 bool psMemCheckImageMap(psPtr ptr);
Note:
See TracChangeset
for help on using the changeset viewer.
