Changeset 38402
- Timestamp:
- Jun 6, 2015, 7:53:42 AM (11 years ago)
- Location:
- branches/eam_branches/ohana.20150429/src/libdvo
- Files:
-
- 3 edited
-
include/dvo.h (modified) (1 diff)
-
src/dvo_catalog.c (modified) (2 diffs)
-
src/dvo_catalog_split.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libdvo/include/dvo.h
r38351 r38402 13 13 14 14 /* DVO table modes */ 15 typedef enum {DVO_COMPRESS_NONE = 0, DVO_COMPRESS_ GZIP_1} DVOCatCompress; //15 typedef enum {DVO_COMPRESS_NONE = 0, DVO_COMPRESS_AUTO, DVO_COMPRESS_GZIP_1, DVO_COMPRESS_GZIP_2, DVO_COMPRESS_RICE_1} DVOCatCompress; // 16 16 17 17 /* DVO table formats */ -
branches/eam_branches/ohana.20150429/src/libdvo/src/dvo_catalog.c
r38351 r38402 75 75 /* set the specified CATMODE */ 76 76 if (!strcasecmp (catcompress, "NONE")) return (DVO_COMPRESS_NONE); 77 if (!strcasecmp (catcompress, "AUTO")) return (DVO_COMPRESS_AUTO); 77 78 if (!strcasecmp (catcompress, "GZIP_1")) return (DVO_COMPRESS_GZIP_1); 79 if (!strcasecmp (catcompress, "GZIP_2")) return (DVO_COMPRESS_GZIP_2); 80 if (!strcasecmp (catcompress, "RICE_1")) return (DVO_COMPRESS_RICE_1); 78 81 return (DVO_COMPRESS_NONE); 79 82 } … … 87 90 strcpy (compress_string, "NONE"); 88 91 break; 89 case DVO_COMPRESS_GZIP_1: 92 case DVO_COMPRESS_AUTO: 93 strcpy (compress_string, "AUTO"); 94 break; 95 case DVO_COMPRESS_GZIP_1: 90 96 strcpy (compress_string, "GZIP_1"); 97 break; 98 case DVO_COMPRESS_GZIP_2: 99 strcpy (compress_string, "GZIP_2"); 100 break; 101 case DVO_COMPRESS_RICE_1: 102 strcpy (compress_string, "RICE_1"); 91 103 break; 92 104 default: -
branches/eam_branches/ohana.20150429/src/libdvo/src/dvo_catalog_split.c
r38354 r38402 122 122 if (!gfits_compress_table (ftable, &cmptable, 10, compressMode)) { 123 123 fprintf (stderr, "compression failure\n"); 124 return (FALSE); 125 } 126 if (!gfits_modify (cmptable.header, "DVO_CMP", "%s", 1, compressMode)) { 127 fprintf (stderr, "can't save compression mode\n"); 124 128 return (FALSE); 125 129 } … … 251 255 return FALSE; 252 256 } 253 catalog->catcompress = DVO_COMPRESS_GZIP_1; // if any table is compressed, set all to a compress state? 257 258 char compressMode[80]; 259 if (!gfits_scan (ftable->header, "DVO_CMP", "%s", 1, compressMode)) { 260 strcpy (compressMode, "AUTO"); 261 } 262 catalog->catcompress = dvo_catalog_catcompress (compressMode); // if any table is compressed, set all to a compress state? 254 263 255 264 // free the buffers
Note:
See TracChangeset
for help on using the changeset viewer.
