Changeset 15972
- Timestamp:
- Jan 2, 2008, 10:33:14 AM (18 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAview.c (modified) (4 diffs)
-
pmFPAview.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAview.c
r15096 r15972 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $6 * @date $Date: 200 7-09-29 01:26:55$5 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-01-02 20:33:14 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 pmFPAviewReset(view); 39 39 return view; 40 } 41 42 bool psMemCheckFPAview(psPtr ptr) 43 { 44 PS_ASSERT_PTR(ptr, false); 45 return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmFPAviewFree); 40 46 } 41 47 … … 146 152 PS_ASSERT_PTR_NON_NULL(view, NULL); 147 153 PS_ASSERT_PTR_NON_NULL(fpa, NULL); 148 149 154 if (view->cell < 0) { 150 155 return NULL; 151 156 } 157 PS_ASSERT_PTR_NON_NULL(fpa->chips, NULL); 152 158 153 159 pmChip *chip = pmFPAviewThisChip (view, fpa); … … 209 215 pmCell *cell = pmFPAviewThisCell (view, fpa); 210 216 PS_ASSERT_PTR_NON_NULL(cell, NULL); 217 PS_ASSERT_PTR_NON_NULL(cell->readouts, NULL); 211 218 212 219 if (view->readout >= cell->readouts->n) { -
trunk/psModules/src/camera/pmFPAview.h
r15093 r15972 4 4 * @author Eugene Magnier, IfA 5 5 * 6 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $7 * @date $Date: 200 7-09-29 01:19:47$6 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-01-02 20:33:14 $ 8 8 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 35 35 36 36 /// Allocator for pmFPAview 37 pmFPAview *pmFPAviewAlloc(int nRows ///< Maximum number of rows per readout segment read, or 0 for all38 );37 pmFPAview *pmFPAviewAlloc(int nRows); ///< Maximum number of rows per readout segment read, or 0 for all 38 bool psMemCheckFPAview(psPtr ptr); 39 39 40 40 /// Reset a view to select all components
Note:
See TracChangeset
for help on using the changeset viewer.
