Changeset 29354
- Timestamp:
- Oct 7, 2010, 8:29:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c
r29313 r29354 219 219 } 220 220 221 psImageJpegOptions * options = psImageJpegOptionsAlloc();222 psImageJpegColormapSet( options, colormapName);221 psImageJpegOptions *jpegOptions = psImageJpegOptionsAlloc(); 222 psImageJpegColormapSet(jpegOptions, colormapName); 223 223 224 224 // default options are: no flip in X or Y, scale bar on bottom 225 options->min = min;226 options->max = max;225 jpegOptions->min = min; 226 jpegOptions->max = max; 227 227 228 228 // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function 229 229 230 if (!psImageJpeg( options, readout->image, NULL, file->filename)) {230 if (!psImageJpeg(jpegOptions, readout->image, NULL, file->filename)) { 231 231 psError(PS_ERR_UNKNOWN, false, "Unable to write JPEG image"); 232 psFree( map);233 return false; 234 } 235 236 psFree( map);237 return true; 238 } 232 psFree(jpegOptions); 233 return false; 234 } 235 236 psFree(jpegOptions); 237 return true; 238 }
Note:
See TracChangeset
for help on using the changeset viewer.
