Changeset 24009
- Timestamp:
- Apr 30, 2009, 10:04:00 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSkycell/src/ppSkycellCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSkycell/src/ppSkycellCamera.c
r23992 r24009 104 104 } 105 105 106 // Now the camera has been determined, we can read the recipe 107 psMetadata *recipe = psMetadataLookupMetadata(NULL, data->config->recipes, PPSKYCELL_RECIPE); // Recipe 108 if (!recipe) { 109 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSKYCELL_RECIPE); 110 return false; 111 } 112 113 psString maskString = psMetadataLookupStr(NULL, recipe, "MASKVAL"); // Mask values 114 data->maskVal = pmConfigMaskGet(maskString, data->config); 115 data->bin1 = psMetadataLookupS32(NULL, recipe, "BIN1"); 116 data->bin2 = psMetadataLookupS32(NULL, recipe, "BIN2"); 117 118 if (data->bin1 <= 0 || data->bin2 <= 0) { 119 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to find legitimate values for BIN1 and BIN2"); 120 return false; 121 } 122 106 123 return true; 107 124 }
Note:
See TracChangeset
for help on using the changeset viewer.
