IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29313


Ignore:
Timestamp:
Oct 4, 2010, 2:49:06 PM (16 years ago)
Author:
eugene
Message:

modified to match updated jpeg APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c

    r23259 r29313  
    219219    }
    220220
    221     psImageJpegColormap *map = psImageJpegColormapSet(NULL, colormapName);
    222     if (!map) {
    223         map = psImageJpegColormapSet(NULL, "-greyscale");
    224     }
    225 
    226     if (!psImageJpeg(map, readout->image, file->filename, min, max)) {
     221    psImageJpegOptions *options = psImageJpegOptionsAlloc();
     222    psImageJpegColormapSet(options, colormapName);
     223
     224    // default options are: no flip in X or Y, scale bar on bottom
     225    options->min = min;
     226    options->max = max;
     227
     228    // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function
     229
     230    if (!psImageJpeg(options, readout->image, NULL, file->filename)) {
    227231        psError(PS_ERR_UNKNOWN, false, "Unable to write JPEG image");
    228232        psFree(map);
Note: See TracChangeset for help on using the changeset viewer.