- Timestamp:
- Jun 6, 2015, 2:28:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_compress_utils.c
r38399 r38415 173 173 int gfits_cmptype_valid (char *cmptype) { 174 174 175 if (!strcasecmp(cmptype, "NONE")) return TRUE; 175 if (!strcasecmp(cmptype, "NONE")) return TRUE; 176 if (!strcasecmp(cmptype, "NONE_1")) return TRUE; // do not compress, but shuffle a la GZIP_1 176 177 if (!strcasecmp(cmptype, "NONE_2")) return TRUE; // do not compress, but shuffle a la GZIP_2 177 178 if (!strcasecmp(cmptype, "GZIP_1")) return TRUE; … … 192 193 !strcasecmp(cmptype, "GZIP_2") || 193 194 !strcasecmp(cmptype, "NONE_2") || 195 !strcasecmp(cmptype, "NONE_1") || 194 196 !strcasecmp(cmptype, "NONE")) { 195 197 if (out_bitpix == 8) return (1); … … 235 237 236 238 // NONE should be swapped to mimic swapping types 237 if (!strcasecmp(cmptype, "NONE") ) {239 if (!strcasecmp(cmptype, "NONE") || !strcasecmp(cmptype, "NONE_1")) { 238 240 if (out_bitpix == 8) return (1); 239 241 if (out_bitpix == 16) return (2); … … 292 294 if (!strcasecmp(cmptype, "GZIP_1") || 293 295 !strcasecmp(cmptype, "GZIP_2") || 296 !strcasecmp(cmptype, "NONE_1") || 294 297 !strcasecmp(cmptype, "NONE_2") || 295 298 !strcasecmp(cmptype, "NONE")) {
Note:
See TracChangeset
for help on using the changeset viewer.
