- Timestamp:
- Nov 26, 2010, 10:47:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/ppImage/src/ppImageOptions.c
r29658 r29851 8 8 { 9 9 psFree(options->overscan); 10 psFree(options->nonLinearData);11 psFree(options->nonLinearSource);10 // psFree(options->nonLinearData); 11 // psFree(options->nonLinearSource); 12 12 } 13 13 … … 130 130 psMetadataItem *dataItem = psMetadataLookup(recipe, "NONLIN.DATA"); 131 131 if (! dataItem) { 132 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to " 133 "find NONLIN.DATA in recipe %s.", RECIPE_NAME); 132 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.DATA in recipe %s.", RECIPE_NAME); 134 133 exit(EXIT_FAILURE); 135 134 } … … 147 146 // This is a menu; we need the key 148 147 case PS_DATA_METADATA: 149 { 150 bool status; 151 options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE"); 152 if (! status || ! options->nonLinearSource) { 153 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but unable to " 154 "find NONLIN.SOURCE in recipe %s.", RECIPE_NAME); 155 exit(EXIT_FAILURE); 156 } 157 } 148 options->nonLinearSource = psMetadataLookupStr(&status, recipe, "NONLIN.SOURCE"); 149 if (! status || ! options->nonLinearSource) { 150 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but unable to find NONLIN.SOURCE in recipe %s.", RECIPE_NAME); 151 exit(EXIT_FAILURE); 152 } 158 153 break; 159 154 default: 160 psLogMsg(__func__, PS_LOG_ERROR, "Non-linearity correction desired, but " 161 "NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME); 155 psLogMsg("ppImage", PS_LOG_ERROR, "Non-linearity correction desired, but NONLIN.DATA is of invalid type in recipe %s.", RECIPE_NAME); 162 156 exit(EXIT_FAILURE); 163 157 }
Note:
See TracChangeset
for help on using the changeset viewer.
