diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-12-30 17:01:30 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-12-30 17:01:30 (GMT) |
commit | 95da5842dfd4caaca02460a6ff1ffa22b8b9a312 (patch) | |
tree | 8c79bb560360fb52ff9de3e6ef5e27a3909d0f2e /tools/h5repack/h5repack_filters.c | |
parent | be59bde1f8b9c75aa04482ac46e31fa6fac3c250 (diff) | |
download | hdf5-95da5842dfd4caaca02460a6ff1ffa22b8b9a312.zip hdf5-95da5842dfd4caaca02460a6ff1ffa22b8b9a312.tar.gz hdf5-95da5842dfd4caaca02460a6ff1ffa22b8b9a312.tar.bz2 |
[svn-r7996] Purpose:
h5repack new features
Description:
added support for shuffle and checksum filters
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index 6c88b51..09e2e75 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -50,8 +50,6 @@ int apply_filter(hid_t dcpl_id, unsigned aggression; /* the deflate level */ unsigned szip_options_mask=H5_SZIP_NN_OPTION_MASK; unsigned szip_pixels_per_block; - - /* get information about filters */ if ((nfilters = H5Pget_nfilters(dcpl_id))<0) @@ -139,7 +137,26 @@ int apply_filter(hid_t dcpl_id, } break; + + case H5Z_FILTER_SHUFFLE: + + if(H5Pset_chunk(dcpl_id, obj->chunk.rank, obj->chunk.chunk_lengths)<0) + return -1; + if (H5Pset_shuffle(dcpl_id)<0) + return -1; + + break; + + case H5Z_FILTER_FLETCHER32: + + if(H5Pset_chunk(dcpl_id, obj->chunk.rank, obj->chunk.chunk_lengths)<0) + return -1; + if (H5Pset_fletcher32(dcpl_id)<0) + return -1; + + break; + default: break; |