Changeset 7717 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Jun 27, 2006, 7:12:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r7624 r7717 32 32 } 33 33 34 static pmHDU *find PHU(const pmCell *cell// The cell for which to find the PHU35 )34 static pmHDU *findBlankPHU(const pmCell *cell// The cell for which to find the PHU 35 ) 36 36 { 37 37 assert(cell); 38 38 39 if (cell->hdu && cell->hdu-> phu) {39 if (cell->hdu && cell->hdu->blankPHU) { 40 40 return cell->hdu; 41 41 } 42 42 pmChip *chip = cell->parent; // The parent chip 43 if (chip->hdu && chip->hdu-> phu) {43 if (chip->hdu && chip->hdu->blankPHU) { 44 44 return chip->hdu; 45 45 } 46 46 pmFPA *fpa = chip->parent; // The parent FPA 47 if (fpa->hdu && fpa->hdu-> phu) {47 if (fpa->hdu && fpa->hdu->blankPHU) { 48 48 return fpa->hdu; 49 49 } … … 261 261 } 262 262 // Copy the PHU over as well, if required 263 pmHDU *targetPHU = find PHU(target); // The target PHU263 pmHDU *targetPHU = findBlankPHU(target); // The target PHU 264 264 if (targetPHU && targetPHU != targetHDU && !targetPHU->header) { 265 pmHDU *sourcePHU = find PHU(source); // The source PHU265 pmHDU *sourcePHU = findBlankPHU(source); // The source PHU 266 266 targetPHU->header = psMetadataCopy(targetPHU->header, sourcePHU->header); 267 267 }
Note:
See TracChangeset
for help on using the changeset viewer.
