IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 29, 2015, 5:24:53 PM (11 years ago)
Author:
eugene
Message:

table compression is internally consistent (tables can be generated and compressed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/matrix/F_uncompress_data.c

    r38329 r38334  
    2626int gfits_uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen);
    2727
    28 static int pass = 0;
    29 
    3028int gfits_uncompress_data (char *zdata, int Nzdata, char *cmptype, char **optname, char **optvalue, int Nopt, char *outdata, int *Nout, int out_pixsize) {
    3129
     
    3331  static int Ninsum = 0;
    3432  static int Noutsum = 0;
     33
     34  // do not actually uncompress : this is used for testing
     35  if (!strcasecmp(cmptype, "NONE")) {
     36    memcpy (outdata, zdata, Nzdata);
     37    *Nout = Nzdata / out_pixsize;
     38    return (TRUE);
     39  }
    3540
    3641  if (!strcasecmp(cmptype, "GZIP_1")) {
     
    4045    // XXX maybe not anymore
    4146    // gfits_gz_stripheader ((unsigned char *)zdata, &Nzdata);
    42 
    43     if (pass == 0) {
    44       int i;
    45       for (i = 0; i < 32; i++) {
    46         fprintf (stderr, "0x%02hhx ", zdata[i]);
    47       }
    48       fprintf (stderr, "\n");
    49       pass = 1;
    50     }
    5147
    5248    // uncompress does not require us to know the expected number of pixel; it tells us the number
Note: See TracChangeset for help on using the changeset viewer.