IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7631


Ignore:
Timestamp:
Jun 22, 2006, 10:04:13 AM (20 years ago)
Author:
magnier
Message:

adding pmSourceFreePixels

Location:
trunk/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r7604 r7631  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-06-22 20:04:13 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737    psFree(tmp->blends);
    3838    psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     39}
     40
     41void pmSourceFreePixels(pmSource *source)
     42{
     43
     44    if (!source)
     45        return;
     46
     47    psFree (source->pixels);
     48    psFree (source->weight);
     49    psFree (source->mask);
     50
     51    source->pixels = NULL;
     52    source->weight = NULL;
     53    source->mask = NULL;
     54    return;
    3955}
    4056
  • trunk/psModules/src/objects/pmSource.h

    r7311 r7631  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-06-03 01:02:08 $
     5 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-06-22 20:04:13 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    115115pmSource  *pmSourceAlloc();
    116116
     117// free just the pixels for a source, keeping derived data
     118void pmSourceFreePixels(pmSource *source);
     119
    117120bool pmIsSource(const psPtr ptr);
    118121
Note: See TracChangeset for help on using the changeset viewer.