Changeset 15656 for trunk/Ohana/src/libfits/matrix/F_uncompress_data.c
- Timestamp:
- Nov 20, 2007, 12:09:06 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/matrix/F_uncompress_data.c
r15649 r15656 26 26 static int Noutsum = 0; 27 27 28 if (!strcasecmp(cmptype, "GZIP ")) {29 unsigned long tNout = *Nout ;28 if (!strcasecmp(cmptype, "GZIP_1")) { 29 unsigned long tNout = *Nout * out_pixsize; 30 30 // uncompress does not require us to know the expected number of pixel; it tells us the number 31 31 status = uncompress ((Bytef *) outdata, &tNout, (Bytef *) zdata, Nzdata); … … 38 38 } 39 39 40 if (!strcasecmp(cmptype, "RICE ") || !strcasecmp(cmptype, "RICE_1")) {40 if (!strcasecmp(cmptype, "RICE_1")) { 41 41 int i, blocksize; 42 42 // look for the BLOCKSIZE … … 69 69 } 70 70 71 if (!strcasecmp(cmptype, "PLIO ")) {71 if (!strcasecmp(cmptype, "PLIO_1")) { 72 72 int Npix; 73 Npix = pl_l2pi ((short *) zdata, 0, (int *) outdata, *Nout);73 Npix = pl_l2pi ((short *) zdata, 1, (int *) outdata, *Nout); 74 74 if (Npix != *Nout) { 75 75 fprintf (stderr, "error in plio decompression\n"); … … 79 79 } 80 80 81 if (!strcasecmp(cmptype, "HCOMPRESS ")) {81 if (!strcasecmp(cmptype, "HCOMPRESS_1")) { 82 82 int Nx, Ny, scale; 83 83 status = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
