Changeset 29379 for trunk/pstamp/src/ppstampParseCamera.c
- Timestamp:
- Oct 12, 2010, 2:24:48 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/src/ppstampParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/ppstampParseCamera.c
r24966 r29379 8 8 9 9 // Set up the ppstamp output Image file 10 bool setupOutput(pmConfig *config, pmFPAfile *input, bool doMask, bool doWeight)10 bool setupOutput(pmConfig *config, pmFPAfile *input, psString stage, bool doMask, bool doWeight) 11 11 { 12 pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT"); 12 pmFPAfile *output; 13 14 if (!stage || (strcmp(stage, "diff") != 0)) { 15 output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT"); 16 } else { 17 // need special filerule for diff stage image to allow for negative values 18 output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT.DIFF"); 19 } 20 if (!output) { 21 psError(PS_ERR_UNKNOWN, false, "Unable to setup output."); 22 return false; 23 } 24 13 25 output->save = true; 14 26 … … 29 41 // something else that I'm missing? 30 42 31 bool ppstampParseCamera(pmConfig *config )43 bool ppstampParseCamera(pmConfig *config, ppstampOptions *options) 32 44 { 33 45 bool status = false; … … 83 95 84 96 // Set up the output target 85 if (!setupOutput(config, input, doMask, doWeight)) {97 if (!setupOutput(config, input, options->stage, doMask, doWeight)) { 86 98 psError(PS_ERR_UNKNOWN, false, "Unable to setup output."); 87 99 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
