- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules/src/camera/pmFPARead.c
r23594 r24244 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 … … 253 251 int readdir = psMetadataLookupS32(&mdok, cell->concepts, "CELL.READDIR"); // Read direction 254 252 if (!mdok || readdir == 0 || (readdir != 1 && readdir != 2)) { 255 psError(PS_ERR_IO, true, "CELL.READDIR is not set to -1 or +1.\n");253 psError(PS_ERR_IO, true, "CELL.READDIR is not set to 1 or 2.\n"); 256 254 return false; 257 255 } … … 592 590 } 593 591 594 // Determine the number of scans to read 595 int lastScan = readoutSetLastScan(readout, type, thisScan + numScans); 592 int origThisScan = thisScan; // Original value of thisScan (starting point for read) 596 593 if (thisScan == 0) { 597 594 overlap = 0; … … 601 598 thisScan = 0; 602 599 } 603 readoutSetThisScan(readout, type, thisScan);604 600 605 601 // Calculate limits, adjust readout->row0,col0 … … 620 616 } 621 617 } 618 int lastScan = origThisScan + numScans; // Last scan to read 619 620 readoutSetThisScan(readout, type, thisScan); 621 readoutSetLastScan(readout, type, lastScan); 622 622 623 623 // Blow away existing data.
Note:
See TracChangeset
for help on using the changeset viewer.
