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_filters.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_filters.c')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index 89490e3..c9d6e20 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -287,6 +287,7 @@ int apply_filters(const char* name, /* object name from traverse list */ * H5Z_FILTER_SHUFFLE 2 , shuffle the data * H5Z_FILTER_FLETCHER32 3 , fletcher32 checksum of EDC * H5Z_FILTER_SZIP 4 , szip compression + * H5Z_FILTER_NBIT 5 , nbit compression *------------------------------------------------------------------------- */ @@ -369,6 +370,16 @@ int apply_filters(const char* name, /* object name from traverse list */ if (H5Pset_fletcher32(dcpl_id)<0) return -1; break; + /*------------------------------------------------------------------------- + * H5Z_FILTER_NBIT , NBIT compression + *------------------------------------------------------------------------- + */ + case H5Z_FILTER_NBIT: + if(H5Pset_chunk(dcpl_id, obj.chunk.rank, obj.chunk.chunk_lengths)<0) + return -1; + if (H5Pset_nbit(dcpl_id)<0) + return -1; + break; } /* switch */ }/*i*/ |