Changeset 8823 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Sep 18, 2006, 11:20:24 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r8815 r8823 74 74 psArray *sourceReadouts = source->readouts; // The source readouts 75 75 int numReadouts = sourceReadouts->n; // Number of readouts copied 76 77 // Copy the value for a concept 78 #define COPY_CONCEPT(TARGET, SOURCE, NAME, TYPE) \ 79 psMetadataItem *targetItem = psMetadataLookup(TARGET, NAME); \ 80 psMetadataItem *sourceItem = psMetadataLookup(SOURCE, NAME); \ 81 targetItem->data.TYPE = sourceItem->data.TYPE; 76 82 77 83 // Need to check/change CELL.XPARITY and CELL.YPARITY … … 87 93 xFlip = true; 88 94 } 95 } else 96 { 97 // Use the source parity 98 COPY_CONCEPT(target->concepts, source->concepts, "CELL.XPARITY", S32); 89 99 } 90 100 int yParityTarget = psMetadataLookupS32(&mdok, target->concepts, "CELL.YPARITY"); // Target y parity … … 95 105 yFlip = true; 96 106 } 107 } else 108 { 109 // Use the source parity 110 COPY_CONCEPT(target->concepts, source->concepts, "CELL.YPARITY", S32); 97 111 } 98 112 psTrace("psModules.camera", 3, "xFlip: %d; yFlip: %d\n", xFlip, yFlip);
Note:
See TracChangeset
for help on using the changeset viewer.
