IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29354


Ignore:
Timestamp:
Oct 7, 2010, 8:29:09 PM (16 years ago)
Author:
eugene
Message:

overloaded variable name

File:
1 edited

Legend:

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

    r29313 r29354  
    219219    }
    220220
    221     psImageJpegOptions *options = psImageJpegOptionsAlloc();
    222     psImageJpegColormapSet(options, colormapName);
     221    psImageJpegOptions *jpegOptions = psImageJpegOptionsAlloc();
     222    psImageJpegColormapSet(jpegOptions, colormapName);
    223223
    224224    // 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;
    227227
    228228    // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function
    229229
    230     if (!psImageJpeg(options, readout->image, NULL, file->filename)) {
     230    if (!psImageJpeg(jpegOptions, readout->image, NULL, file->filename)) {
    231231        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.