- Timestamp:
- Jun 4, 2015, 5:42:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/test/imagecomp.c
r38362 r38366 5 5 int test_compress (int bitpix, char *zcmptype); 6 6 7 // char *cmptype[] = {"NONE", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL}; 8 // char *cmptype[] = {"NONE", "GZIP_1", "RICE_1", "RICE_ONE", NULL}; 9 // int bitpix[] = {8, 16, 32, -32, -64, 0}; 10 11 // char *cmptype[] = {"NONE", "GZIP_1", NULL}; 12 // char *cmptype[] = {"PLIO_1", NULL}; 13 // int bitpix[] = {8, 16, 32, 0}; 14 15 char *cmptype[] = {"GZIP_2", NULL}; 16 int bitpix[] = {-32, 0}; 7 // char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL}; 8 char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "RICE_1", "RICE_ONE", NULL}; 9 int bitpix[] = {8, 16, 32, -32, -64, 0}; 17 10 18 11 int main (int argc, char **argv) { … … 25 18 for (i = 0; cmptype[i]; i++) { 26 19 for (j = 0; bitpix[j]; j++) { 20 if (!strcasecmp (cmptype[i], "RICE_1") && (bitpix[j] < 0)) continue; 21 if (!strcasecmp (cmptype[i], "RICE_ONE") && (bitpix[j] < 0)) continue; 27 22 test_compress (bitpix[j], cmptype[i]); 28 23 } 29 24 } 30 31 // test_compress ( 16, "NONE");32 // test_compress ( 32, "NONE");33 // test_compress (-32, "NONE");34 // test_compress (-64, "NONE");35 //36 // test_compress ( 8, "GZIP_1");37 // test_compress ( 16, "GZIP_1");38 // test_compress ( 32, "GZIP_1");39 // test_compress (-32, "GZIP_1");40 // test_compress (-64, "GZIP_1");41 42 25 exit (0); 43 26 }
Note:
See TracChangeset
for help on using the changeset viewer.
