IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 26, 2005, 9:49:41 AM (21 years ago)
Author:
eugene
Message:

mods to keep up-to-date with psLib changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psLibUtils.c

    r5048 r5134  
    88// XXX EAM : these utility functions should be added back into PSLib
    99
     10# if (0) // now in psLib (v8)
    1011static psHash *timers = NULL;
    11 
    12 bool psTimerClear (char *name) {
    13 
    14   bool status;
    15 
    16   if (name == NULL) return false;
    17 
    18   status = psHashRemove (timers, name);
    19   return (status);
    20 }
    21 
    22 void psTimerFree () {
    23 
    24   psFree (timers);
    25   p_psTimeFinalize();
    26   return;
    27 }
    2812
    2913// start/restart a named timer
     
    4024}
    4125
     26bool psTimerClear (char *name) {
     27
     28  bool status;
     29
     30  if (name == NULL) return false;
     31
     32  status = psHashRemove (timers, name);
     33  return (status);
     34}
     35
    4236// get current elapsed time on named timer
    4337psF64 psTimerMark (char *name) {
     
    6054}
    6155
     56void psTimerFree () {
     57
     58  psFree (timers);
     59  p_psTimeFinalize();
     60  return;
     61}
     62# endif
     63
     64# if (0)
    6265// find the location of the specified argument
    6366int psArgumentGet (int argc, char **argv, char *arg) {
     
    8790    return (N);
    8891}
     92# endif
    8993
    9094// we have log levels 1 (Error), 2 (Warning), 3 (Info), 4 (Details), 5 (Minutiae)
     
    276280}           
    277281
     282# if (0)
     283// now in psLib (v8)
    278284// count number of pixels with given mask value
    279285int psImageCountPixelMask (psImage *mask, psU8 value)
     
    290296    return (Npixels);
    291297}
     298# endif
    292299
    293300// define a square region centered on the given coordinate
     
    438445# endif
    439446
     447# if (0)
    440448psVector *psVectorCreate (double lower, double upper, double delta, psElemType type) {
    441449
     
    450458  return (out);
    451459}
     460# endif
    452461
    453462// XXX EAM a utility function
Note: See TracChangeset for help on using the changeset viewer.