Changeset 22704
- Timestamp:
- Feb 26, 2009, 3:45:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsCopy.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsCopy.c
r22703 r22704 81 81 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications 82 82 83 pmHDU *hdu = pmHDUGetFirst(target); // HDU with camera format 84 if (!hdu) { 85 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for FPA"); 86 return false; 87 } 83 pmHDU *hdu = target->hdu; // Header data unit 84 psMetadata *format = hdu ? hdu->format : NULL; // Camera format 88 85 89 86 // Copy FPA concepts 90 if (!copyConcepts(target->concepts, source->concepts, specs, target->hdu->format,87 if (!copyConcepts(target->concepts, source->concepts, specs, format, 91 88 source, NULL, NULL, dontCopyConceptsFPA)) { 92 89 return false; … … 125 122 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 126 123 pmHDU *hdu = pmHDUFromChip(target); // Header data unit 127 if (!hdu) { 128 hdu = pmHDUGetFirst(target->parent); 129 if (!hdu) { 130 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for chip"); 131 return false; 132 } 133 } 124 psMetadata *format = hdu ? hdu->format : NULL; // Camera format 134 125 135 126 // Copy chip concepts 136 if (!copyConcepts(target->concepts, source->concepts, specs, hdu->format,127 if (!copyConcepts(target->concepts, source->concepts, specs, format, 137 128 source->parent, source, NULL, dontCopyConceptsChip)) { 138 129 return false; … … 172 163 psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 173 164 pmHDU *hdu = pmHDUFromCell(target); // Header data unit 174 if (!hdu) { 175 hdu = pmHDUGetFirst(target->parent->parent); 176 if (!hdu) { 177 psError(PS_ERR_UNKNOWN, true, "Can't find HDU for cell"); 178 return false; 179 } 180 } 165 psMetadata *format = hdu ? hdu->format : NULL; // Camera format 181 166 182 return copyConcepts(target->concepts, source->concepts, specs, hdu->format,167 return copyConcepts(target->concepts, source->concepts, specs, format, 183 168 source->parent->parent, source->parent, source, dontCopyConceptsCell); 184 169 }
Note:
See TracChangeset
for help on using the changeset viewer.
