IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2006, 5:57:32 PM (20 years ago)
Author:
Paul Price
Message:

Updates for ppMerge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPA.c

    r7017 r7060  
    1212* XXX: Should we implement non-linear cell->chip transforms?
    1313*
    14 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2006-05-01 01:55:43 $
     14*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2006-05-04 03:57:32 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    173173}
    174174
     175void pmCellFreeData(pmCell *cell)
     176{
     177    pmCellFreeReadouts(cell);
     178    if (cell->hdu) {
     179        psFree(cell->hdu->images);
     180    }
     181}
     182
     183void 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
     193void 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}
    175202
    176203pmReadout *pmReadoutAlloc(pmCell *cell)
Note: See TracChangeset for help on using the changeset viewer.