IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2007, 12:09:06 AM (19 years ago)
Author:
eugene
Message:

working on decompress

File:
1 edited

Legend:

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

    r15649 r15656  
    2626  static int Noutsum = 0;
    2727
    28   if (!strcasecmp(cmptype, "GZIP")) {
    29     unsigned long tNout = *Nout;
     28  if (!strcasecmp(cmptype, "GZIP_1")) {
     29    unsigned long tNout = *Nout * out_pixsize;
    3030    // uncompress does not require us to know the expected number of pixel; it tells us the number
    3131    status = uncompress ((Bytef *) outdata, &tNout, (Bytef *) zdata, Nzdata);
     
    3838  }
    3939
    40   if (!strcasecmp(cmptype, "RICE") || !strcasecmp(cmptype, "RICE_1")) {
     40  if (!strcasecmp(cmptype, "RICE_1")) {
    4141    int i, blocksize;
    4242    // look for the BLOCKSIZE
     
    6969  }
    7070 
    71   if (!strcasecmp(cmptype, "PLIO")) {
     71  if (!strcasecmp(cmptype, "PLIO_1")) {
    7272    int Npix;
    73     Npix = pl_l2pi ((short *) zdata, 0, (int *) outdata, *Nout);
     73    Npix = pl_l2pi ((short *) zdata, 1, (int *) outdata, *Nout);
    7474    if (Npix != *Nout) {
    7575      fprintf (stderr, "error in plio decompression\n");
     
    7979  }
    8080
    81   if (!strcasecmp(cmptype, "HCOMPRESS")) {
     81  if (!strcasecmp(cmptype, "HCOMPRESS_1")) {
    8282    int Nx, Ny, scale;
    8383    status = 0;
Note: See TracChangeset for help on using the changeset viewer.