diff options
author | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-15 19:21:39 (GMT) |
---|---|---|
committer | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-15 19:21:39 (GMT) |
commit | 824d0c2da0717b1651440a0350ea87e6b459e84c (patch) | |
tree | 8d9265539354acbab9a414563000ca50b9f9da49 /tools/h5repack/h5repack_parse.c | |
parent | 182c3fe08d9fcb90f84f0e9aeb257109fb4ab3cc (diff) | |
download | hdf5-824d0c2da0717b1651440a0350ea87e6b459e84c.zip hdf5-824d0c2da0717b1651440a0350ea87e6b459e84c.tar.gz hdf5-824d0c2da0717b1651440a0350ea87e6b459e84c.tar.bz2 |
[svn-r10009] Purpose:
feature
Description:
support for nbit compression in h5repack
Solution:
Platforms tested:
verbena,copper,shanti
Misc. update:
manifest
Diffstat (limited to 'tools/h5repack/h5repack_parse.c')
-rw-r--r-- | tools/h5repack/h5repack_parse.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_parse.c b/tools/h5repack/h5repack_parse.c index 8f548b0..9cd9b7d 100644 --- a/tools/h5repack/h5repack_parse.c +++ b/tools/h5repack/h5repack_parse.c @@ -34,6 +34,7 @@ * SZIP, to apply the HDF5 SZIP filter (SZIP compression) * SHUF, to apply the HDF5 shuffle filter * FLET, to apply the HDF5 checksum filter + * NBIT, to apply the HDF5 NBIT filter (NBIT compression) * NONE, to remove the filter * * Examples: @@ -270,6 +271,19 @@ obj_list_t* parse_filter(const char *str, exit(1); } } +/*------------------------------------------------------------------------- + * H5Z_FILTER_NBIT + *------------------------------------------------------------------------- + */ + else if (strcmp(scomp,"NBIT")==0) + { + filt->filtn=H5Z_FILTER_NBIT; + if (m>0){ /*nbit does not have parameter */ + if (obj_list) free(obj_list); + printf("Input Error: Extra parameter in NBIT <%s>\n",str); + exit(1); + } + } else { if (obj_list) free(obj_list); printf("Input Error: Invalid filter type in <%s>\n",str); @@ -341,6 +355,8 @@ const char* get_sfilter(H5Z_filter_t filtn) return "SHUFFLE"; else if (filtn==H5Z_FILTER_FLETCHER32) return "FLETCHER32"; + else if (filtn==H5Z_FILTER_NBIT) + return "NBIT"; else { printf("Input error in filter type\n"); exit(1); |