IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2009, 12:45:31 PM (17 years ago)
Author:
eugene
Message:

handle images compressed with CFITSIO gzip compression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/matrix/F_compress_M.c

    r20652 r23724  
    248248    // XXX not certain this is the correct place to do the swap (or if zdata_pixsize is
    249249    // the correct size to guide the swap)
    250     if (!gfits_byteswap_zdata (zdata, Nzdata, zdata_pixsize)) return (FALSE);
     250
     251    if (strcasecmp(cmptype, "GZIP_1")) {
     252      if (!gfits_byteswap_zdata (zdata, Nzdata, zdata_pixsize)) return (FALSE);
     253    }
    251254
    252255    // gfits_uncompress_data uncompresses from zdata to the temporary output buffer which must be allocated
     
    496499
    497500  if (!strcasecmp(cmptype, "GZIP_1")) {
    498     return (4);
     501    if (out_bitpix == 8)  return (1);
     502    if (out_bitpix == 16) return (2);
     503    if (out_bitpix == 32) return (4);
     504    if (out_bitpix == -32) return (4);
     505    if (out_bitpix == -64) return (8);
     506    return (1);
    499507  }
    500508  if (!strcasecmp(cmptype, "RICE_1")) {
Note: See TracChangeset for help on using the changeset viewer.