Changeset 13274 for trunk/psModules/src/camera/pmFPA_JPEG.c
- Timestamp:
- May 4, 2007, 4:37:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPA_JPEG.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPA_JPEG.c
r12890 r13274 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 4-18 19:42:37$7 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-05 02:37:02 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include <stdio.h> 23 23 #include <string.h> 24 #include <strings.h> /* for strn?casecmp */24 #include <strings.h> /* for strn?casecmp */ 25 25 #include <pslib.h> 26 26 … … 206 206 } 207 207 208 209 208 if (!isfinite(min) || !isfinite(max)) { 210 209 psLogMsg("jpeg", PS_LOG_WARN, "The stretch parameters are not both finite, writing blank jpeg\n"); … … 213 212 } 214 213 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 219 214 psImageJpegColormap *map = psImageJpegColormapSet (NULL, colormapName); 220 215 if (!map) { … … 222 217 } 223 218 224 psImageJpeg (map, readout->image, newName, min, max); 225 226 psFree(name); 227 psFree(newName); 219 psImageJpeg (map, readout->image, file->filename, min, max); 228 220 229 221 psFree(map);
Note:
See TracChangeset
for help on using the changeset viewer.
