Changeset 24058
- Timestamp:
- May 4, 2009, 2:52:00 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r24007 r24058 64 64 65 65 // Set the "thisXXXScan" value in the readout for the appropriate image type 66 static intreadoutSetThisScan(pmReadout *readout, // Readout of interest66 static void readoutSetThisScan(pmReadout *readout, // Readout of interest 67 67 fpaReadType type, // Type of image 68 68 int thisScan // Starting scan number … … 72 72 case FPA_READ_TYPE_IMAGE: 73 73 readout->thisImageScan = thisScan; 74 return readout->lastImageScan;74 return; 75 75 case FPA_READ_TYPE_MASK: 76 76 readout->thisMaskScan = thisScan; 77 return readout->lastMaskScan;77 return; 78 78 case FPA_READ_TYPE_VARIANCE: 79 79 readout->thisVarianceScan = thisScan; 80 return readout->lastVarianceScan;80 return; 81 81 default: 82 82 psAbort("Unknown read type: %x\n", type); 83 83 } 84 return false;85 84 } 86 85 … … 103 102 104 103 // Set the "lastXXXScan" value in the readout for the appropriate image type 105 static intreadoutSetLastScan(pmReadout *readout, // Readout of interest104 static void readoutSetLastScan(pmReadout *readout, // Readout of interest 106 105 fpaReadType type, // Type of image 107 106 int lastScan // Last scan number … … 111 110 case FPA_READ_TYPE_IMAGE: 112 111 readout->lastImageScan = lastScan; 113 return readout->lastImageScan;112 return; 114 113 case FPA_READ_TYPE_MASK: 115 114 readout->lastMaskScan = lastScan; 116 return readout->lastMaskScan;115 return; 117 116 case FPA_READ_TYPE_VARIANCE: 118 117 readout->lastVarianceScan = lastScan; 119 return readout->lastVarianceScan;118 return; 120 119 default: 121 120 psAbort("Unknown read type: %x\n", type); 122 121 } 123 return false;124 122 } 125 123 … … 592 590 } 593 591 592 int origThisScan = thisScan; // Original value of thisScan (starting point for read) 594 593 if (thisScan == 0) { 595 594 overlap = 0; … … 617 616 } 618 617 } 619 620 // Determine the number of scans to read 621 int lastScan = readoutSetLastScan(readout, type, thisScan + numScans); 618 int lastScan = origThisScan + numScans; // Last scan to read 619 622 620 readoutSetThisScan(readout, type, thisScan); 621 readoutSetLastScan(readout, type, lastScan); 623 622 624 623 // Blow away existing data.
Note:
See TracChangeset
for help on using the changeset viewer.
