Changeset 28272
- Timestamp:
- Jun 9, 2010, 1:00:14 PM (16 years ago)
- Location:
- trunk/psModules/src/config
- Files:
-
- 2 edited
-
pmConfigMask.c (modified) (1 diff)
-
pmConfigMask.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigMask.c
r25828 r28272 8 8 9 9 #include "pmConfigMask.h" 10 11 // Structure to hold the properties of a mask value 12 typedef struct { 13 char *badMaskName; // name for "bad" (i.e., mask me please) pixels 14 char *fallbackName; // Fallback name in case a bad mask name is not defined 15 psImageMaskType defaultMaskValue; // Default value in case a bad mask name and its fallback are not defined 16 bool isBad; // include this value as part of the MASK.VALUE entry (generically bad) 17 } pmConfigMaskInfo; 10 18 11 19 static pmConfigMaskInfo masks[] = { -
trunk/psModules/src/config/pmConfigMask.h
r21183 r28272 20 20 /// @{ 21 21 22 // structure to hold the properties of a mask value23 typedef struct {24 char *badMaskName; // name for "bad" (i.e., mask me please) pixels25 char *fallbackName; // Fallback name in case a bad mask name is not defined26 psImageMaskType defaultMaskValue; // Default value in case a bad mask name and its fallback are not defined27 bool isBad; // include this value as part of the MASK.VALUE entry (generically bad)28 } pmConfigMaskInfo;29 30 22 // pmConfigMaskSetInMetadata examines named mask values and set the bits for maskValue and 31 23 // markValue. Ensures that the below-named mask values are set, and calculates the mask value … … 33 25 // name is not found, or the default values if the fallback name is not found. 34 26 bool pmConfigMaskSetInMetadata(psImageMaskType *outMaskValue, // Value of MASK.VALUE, returned 35 psImageMaskType *outMarkValue, // Value of MARK.VALUE, returned36 psMetadata *source // Source of mask bits27 psImageMaskType *outMarkValue, // Value of MARK.VALUE, returned 28 psMetadata *source // Source of mask bits 37 29 ); 38 30 … … 40 32 // Get a mask value by name(s) 41 33 psImageMaskType pmConfigMaskGetFromMetadata(psMetadata *source, // Source of masks 42 const char *masks // Mask values to get34 const char *masks // Mask values to get 43 35 ); 44 36 45 37 46 // lookup an image mask value by name from a psMetadata, without requiring the entry to 38 // lookup an image mask value by name from a psMetadata, without requiring the entry to 47 39 // be of type psImageMaskType, but verifying that it will fit in psImageMaskType 48 40 psImageMaskType psMetadataLookupImageMaskFromGeneric (bool *status, const psMetadata *md, const char *name); … … 50 42 // Remove from the header keywords starting with the provided string 51 43 int pmConfigMaskRemoveHeaderKeywords(psMetadata *header, // Header from which to remove keywords 52 const char *start // Remove keywords that start with this string44 const char *start // Remove keywords that start with this string 53 45 ); 54 46
Note:
See TracChangeset
for help on using the changeset viewer.
