- Timestamp:
- May 29, 2015, 5:24:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_uncompress_data.c
r38329 r38334 26 26 int gfits_uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); 27 27 28 static int pass = 0;29 30 28 int gfits_uncompress_data (char *zdata, int Nzdata, char *cmptype, char **optname, char **optvalue, int Nopt, char *outdata, int *Nout, int out_pixsize) { 31 29 … … 33 31 static int Ninsum = 0; 34 32 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 } 35 40 36 41 if (!strcasecmp(cmptype, "GZIP_1")) { … … 40 45 // XXX maybe not anymore 41 46 // 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 }51 47 52 48 // 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.
