Changeset 33757
- Timestamp:
- Apr 10, 2012, 4:35:23 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCamera.c
r33755 r33757 210 210 211 211 // Check an FPA level to ensure the camera format and PHU are consistent across all input files 212 #define CHECK_LEVEL(HDU, CHIP, CELL) { \ 213 if (HDU) { \ 214 if (!phuView) { \ 215 phuView = pmFPAviewAlloc(0); \ 216 phuView->chip = CHIP; \ 217 phuView->cell = CELL; \ 218 } else if ((phuView->chip != (CHIP)) && (phuView->cell != (CELL))) { \ 219 psError(PS_ERR_UNKNOWN, true, "Differing PHU for input %d", i); \ 220 psFree(phuView); \ 221 return false; \ 222 } \ 223 if (!format) { \ 224 format = (HDU)->format; \ 225 } else if (format != (HDU)->format) { \ 226 psError(PS_ERR_UNKNOWN, true, "Camera format %d doesn't match: %p vs %p on %s %s", \ 227 i, format, (HDU)->format, (HDU)->extname, psMetadataLookupStr(NULL,(HDU)->header,"FILENAME")); \ 228 psFree(phuView); \ 229 return false; \ 230 } \ 231 continue; \ 232 } \ 233 } 234 // CZW: 2012-04-10 Version of above to allow different camera formats to be processed together. 212 235 /* #define CHECK_LEVEL(HDU, CHIP, CELL) { \ */ 213 236 /* if (HDU) { \ */ … … 224 247 /* format = (HDU)->format; \ */ 225 248 /* } else if (format != (HDU)->format) { \ */ 226 /* psError(PS_ERR_UNKNOWN, true, "Camera format %d doesn't match: %p vs %p on %s %s", \ */227 /* i, format, (HDU)->format, (HDU)->extname, psMetadataLookupStr(NULL,(HDU)->header,"FILENAME")); \ */228 /* psFree(phuView); \ */229 /* return false; \ */230 249 /* } \ */ 231 250 /* continue; \ */ 232 251 /* } \ */ 233 252 /* } */ 234 #define CHECK_LEVEL(HDU, CHIP, CELL) { \235 if (HDU) { \236 if (!phuView) { \237 phuView = pmFPAviewAlloc(0); \238 phuView->chip = CHIP; \239 phuView->cell = CELL; \240 } else if ((phuView->chip != (CHIP)) && (phuView->cell != (CELL))) { \241 psError(PS_ERR_UNKNOWN, true, "Differing PHU for input %d", i); \242 psFree(phuView); \243 return false; \244 } \245 if (!format) { \246 format = (HDU)->format; \247 } else if (format != (HDU)->format) { \248 } \249 continue; \250 } \251 }252 253 253 254 psMetadata *format = NULL; ///< Camera format
Note:
See TracChangeset
for help on using the changeset viewer.
