IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 4:37:02 PM (19 years ago)
Author:
Paul Price
Message:

Don't use pmConfigConvertFilename here --- it's done by pmFPAfileOpen, and only there.

File:
1 edited

Legend:

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

    r12890 r13274  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-04-18 19:42:37 $
     7 *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-05-05 02:37:02 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222#include <stdio.h>
    2323#include <string.h>
    24 #include <strings.h>            /* for strn?casecmp */
     24#include <strings.h>            /* for strn?casecmp */
    2525#include <pslib.h>
    2626
     
    206206    }
    207207
    208 
    209208    if (!isfinite(min) || !isfinite(max)) {
    210209        psLogMsg("jpeg", PS_LOG_WARN, "The stretch parameters are not both finite, writing blank jpeg\n");
     
    213212    }
    214213
    215     psString name = pmFPAfileNameFromRule (file->filerule, file, view);
    216     bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    217     psString newName = pmConfigConvertFilename(name, config, create);
    218 
    219214    psImageJpegColormap *map = psImageJpegColormapSet (NULL, colormapName);
    220215    if (!map) {
     
    222217    }
    223218
    224     psImageJpeg (map, readout->image, newName, min, max);
    225 
    226     psFree(name);
    227     psFree(newName);
     219    psImageJpeg (map, readout->image, file->filename, min, max);
    228220
    229221    psFree(map);
Note: See TracChangeset for help on using the changeset viewer.