Changeset 7060 for trunk/psModules/src/camera/pmFPA.c
- Timestamp:
- May 3, 2006, 5:57:32 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPA.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPA.c
r7017 r7060 12 12 * XXX: Should we implement non-linear cell->chip transforms? 13 13 * 14 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-05-0 1 01:55:43$14 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-05-04 03:57:32 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 173 173 } 174 174 175 void pmCellFreeData(pmCell *cell) 176 { 177 pmCellFreeReadouts(cell); 178 if (cell->hdu) { 179 psFree(cell->hdu->images); 180 } 181 } 182 183 void pmChipFreeData(pmChip *chip) 184 { 185 for (int i = 0; i < chip->cells->n; i++) { 186 pmCellFreeData(chip->cells->data[i]); 187 } 188 if (chip->hdu) { 189 psFree(chip->hdu->images); 190 } 191 } 192 193 void pmFPAFreeData(pmFPA *fpa) 194 { 195 for (int i = 0; i < fpa->chips->n; i++) { 196 pmChipFreeData(fpa->chips->data[i]); 197 } 198 if (fpa->hdu) { 199 psFree(fpa->hdu->images); 200 } 201 } 175 202 176 203 pmReadout *pmReadoutAlloc(pmCell *cell)
Note:
See TracChangeset
for help on using the changeset viewer.
