Changeset 8934
- Timestamp:
- Sep 25, 2006, 10:16:13 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageParseCamera.c
r8751 r8934 59 59 // the following files are output targets 60 60 pmFPAfile *output = pmFPAfileDefineOutput (config, input->fpa, "PPIMAGE.OUTPUT"); 61 if (!output) { 62 psError(PS_ERR_IO, false, _("Unable to generate output file from PPIMAGE.OUTPUT")); 63 psFree(options); 64 return NULL; 65 } 61 66 pmFPAfile *byChip = pmFPAfileDefineNewCamera (config, "PPIMAGE.OUTPUT.CHIP"); 67 if (!byChip) { 68 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.OUTPUT.CHIP")); 69 psFree(options); 70 return NULL; 71 } 62 72 pmFPAfile *byFPA1 = pmFPAfileDefineNewCamera (config, "PPIMAGE.OUTPUT.FPA1"); 73 if (!byFPA1) { 74 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.OUTPUT.FPA1")); 75 psFree(options); 76 return NULL; 77 } 63 78 pmFPAfile *byFPA2 = pmFPAfileDefineNewCamera (config, "PPIMAGE.OUTPUT.FPA2"); 79 if (!byFPA2) { 80 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.OUTPUT.FPA2")); 81 psFree(options); 82 return NULL; 83 } 64 84 65 85 // save any of these files? … … 74 94 // define the binned target files (which may just be carriers for some camera configurations) 75 95 pmFPAfile *bin1 = pmFPAfileDefineFromFPA (config, byChip->fpa, options->xBin1, options->yBin1, "PPIMAGE.BIN1"); 96 if (!bin1) { 97 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.BIN1")); 98 psFree(options); 99 return NULL; 100 } 101 76 102 pmFPAfile *bin2 = pmFPAfileDefineFromFPA (config, byChip->fpa, options->xBin2, options->yBin2, "PPIMAGE.BIN2"); 103 if (!bin2) { 104 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.BIN2")); 105 psFree(options); 106 return NULL; 107 } 77 108 78 109 // bin1 and bin2 are used as carriers: input for byFPA1, byFPA2 … … 81 112 82 113 pmFPAfile *jpg1 = pmFPAfileDefineOutput (config, byFPA1->fpa, "PPIMAGE.JPEG1"); 114 if (!jpg1) { 115 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.JPEG1")); 116 psFree(options); 117 return NULL; 118 } 83 119 pmFPAfile *jpg2 = pmFPAfileDefineOutput (config, byFPA2->fpa, "PPIMAGE.JPEG2"); 120 if (!jpg2) { 121 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.JPEG2")); 122 psFree(options); 123 return NULL; 124 } 84 125 85 126 // XXX we could potentially not define these pmFPAfiles if no output is requested...
Note:
See TracChangeset
for help on using the changeset viewer.
