Changeset 22701
- Timestamp:
- Feb 26, 2009, 3:03:02 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsCopy.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsCopy.c
r22699 r22701 26 26 psMetadata *source, // Source metadata container 27 27 psMetadata *specs, // Concept specifications 28 psMetadata *cameraFormat, // Camera format configuration 28 29 const pmFPA *fpa, // FPA of interest 29 30 const pmChip *chip, // Chip of interest, or NULL … … 36 37 assert(specs); 37 38 assert(dontCopyConcepts); 38 39 pmHDU *hdu = pmHDUGetLowest(fpa, chip, cell); // The HDU at the lowest level40 if (!hdu) {41 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for cell");42 return false;43 }44 psMetadata *cameraFormat = hdu->format; // The camera format45 39 46 40 psMetadataIterator *iter = psMetadataIteratorAlloc(source, PS_LIST_HEAD, NULL); … … 86 80 87 81 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications 82 if (!target->hdu) { 83 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for FPA"); 84 return false; 85 } 88 86 89 87 // Copy FPA concepts 90 if (!copyConcepts(target->concepts, source->concepts, specs, source, NULL, NULL, dontCopyConceptsFPA)) { 88 if (!copyConcepts(target->concepts, source->concepts, specs, target->hdu->format, 89 source, NULL, NULL, dontCopyConceptsFPA)) { 91 90 return false; 92 91 } … … 123 122 124 123 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 124 pmHDU *hdu = pmHDUFromChip(target); // Header data unit 125 if (!hdu) { 126 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for chip"); 127 return false; 128 } 125 129 126 130 // Copy chip concepts 127 if (!copyConcepts(target->concepts, source->concepts, specs, source->parent, source, NULL,128 dontCopyConceptsChip)) {131 if (!copyConcepts(target->concepts, source->concepts, specs, hdu->format, 132 source->parent, source, NULL, dontCopyConceptsChip)) { 129 133 return false; 130 134 } … … 162 166 163 167 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 168 pmHDU *hdu = pmHDUFromCell(target); // Header data unit 169 if (!hdu) { 170 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for cell"); 171 return false; 172 } 164 173 165 return copyConcepts(target->concepts, source->concepts, specs, source->parent->parent,166 source->parent , source, dontCopyConceptsCell);174 return copyConcepts(target->concepts, source->concepts, specs, hdu->format, 175 source->parent->parent, source->parent, source, dontCopyConceptsCell); 167 176 }
Note:
See TracChangeset
for help on using the changeset viewer.
