- Timestamp:
- Jun 3, 2015, 7:00:55 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_compress_data.c
r38355 r38356 65 65 } 66 66 67 if (!strcasecmp(cmptype, "RICE_1") ) {67 if (!strcasecmp(cmptype, "RICE_1") || !strcasecmp(cmptype, "RICE_ONE")) { 68 68 int i, blocksize; 69 69 // look for the BLOCKSIZE … … 83 83 // fprintf (stderr, "%d comp bytes; %d uncomp 'pixels', totals: %d %d\n", Nzdata, Npix, Ninsum, Noutsum); 84 84 85 char buffer[1000]; 86 int k; 87 85 88 switch (rawpix_size) { 86 89 case 4: … … 90 93 91 94 case 2: 95 // Nout is the number of bytes in the compressed buffer 92 96 Nout = fits_rcomp_short ((short *) rawdata, Nrawpix, (unsigned char *) zdata, *Nzdata, blocksize); 97 98 if (0) { 99 fprintf (stderr, "Nout: %d, Nrawpix: %d\n", Nout, Nrawpix); 100 fprintf (stderr, "cmp inp: "); 101 for (k = 0; k < Nout; k++) { fprintf (stderr, "0x%02hhx ", zdata[k]); } 102 fprintf (stderr, "\n"); 103 } 104 105 status = fits_rdecomp_short ((unsigned char *) zdata, Nout, (unsigned short *) buffer, Nrawpix, blocksize); 106 myAssert (!status, "failed to rdecomp"); 93 107 break; 94 108
Note:
See TracChangeset
for help on using the changeset viewer.
