Changeset 27838 for branches/tap_branches/pswarp/src/pswarpSetMaskBits.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpSetMaskBits.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/pswarp/src/pswarpSetMaskBits.c
r23505 r27838 28 28 // this function sets the required single-image mask bits 29 29 if (!pmConfigMaskSetBits (&maskIn, &markIn, config)) { 30 psError ( PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");30 psError (psErrorCodeLast(), false, "Unable to define the mask bit values"); 31 31 return false; 32 32 } … … 48 48 maskOut |= poorMask; 49 49 50 // the output image includes all of the bits from the input image 51 maskOut |= maskIn; 52 50 53 // search for an unset bit to use for MARK: 51 54 psImageMaskType markOut = 0x00; … … 61 64 } 62 65 if (!markOut) { 63 psError (PS_ERR_UNKNOWN, true, "Unable to define the MARK bit mask: all bits taken!");66 psError(PSWARP_ERR_CONFIG, true, "Unable to define the MARK bit mask: all bits taken!"); 64 67 return false; 65 68 } … … 68 71 psMetadata *warpRecipe = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE); 69 72 if (!warpRecipe) { 70 psError(PS PHOT_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);73 psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE); 71 74 return false; 72 75 } … … 82 85 psMetadata *psphotRecipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 83 86 if (!psphotRecipe) { 84 psError(PS PHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);87 psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE); 85 88 return false; 86 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
