IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16163


Ignore:
Timestamp:
Jan 18, 2008, 5:34:44 PM (18 years ago)
Author:
Paul Price
Message:

Only attempt to read HCOMPRESS parameters if required. Put free in correct place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080117/psModules/src/camera/pmFPAfileDefine.c

    r16153 r16163  
    316316            tile->data.S32[2] = parseOptionInt(scheme, "TILE.Z", source, 1); // Tiling in z
    317317            int noise = parseOptionInt(scheme, "NOISE", source, 16); // Noise bits
    318             int hscale = parseOptionInt(scheme, "HSCALE", source, 0); // Scaling for HCOMPRESS
    319             int hsmooth = parseOptionInt(scheme, "HSMOOTH", source, 0); // Smoothing for HCOMPRESS
    320             psFree(source);
     318            int hscale = 0, hsmooth = 0;// Scaling and smoothing for HCOMPRESS
     319            if (type == PS_FITS_COMPRESS_HCOMPRESS) {
     320                hscale = parseOptionInt(scheme, "HSCALE", source, 0);
     321                hsmooth = parseOptionInt(scheme, "HSMOOTH", source, 0);
     322            }
    321323
    322324            file->compression = psFitsCompressionAlloc(type, tile, noise, hscale, hsmooth);
    323325            psFree(tile);
    324326        }
     327
     328        psFree(source);
    325329    }
    326330 FITS_OPTIONS_DONE:
Note: See TracChangeset for help on using the changeset viewer.