diff options
author | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-23 17:52:03 (GMT) |
---|---|---|
committer | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-23 17:52:03 (GMT) |
commit | fedd036348a6fa1f60bc1af3760ff34e2a47adaa (patch) | |
tree | 646943e0abeb7d66f44431cb07a9c2d6f6059e6b /tools/h5repack/h5repack_filters.c | |
parent | 0b83fea12571ae1f05e6465d4afc09948486e17f (diff) | |
download | hdf5-fedd036348a6fa1f60bc1af3760ff34e2a47adaa.zip hdf5-fedd036348a6fa1f60bc1af3760ff34e2a47adaa.tar.gz hdf5-fedd036348a6fa1f60bc1af3760ff34e2a47adaa.tar.bz2 |
[svn-r10067] Purpose:
feature
Description:
h5repack support for scaleoffset compression
Checking in early to help debug the filter.
Solution:
Added messages and command line to handle new scale offset filter.
Note: TESTS ARE DISABLED FOR NOW. The filter is not
complete, repack tests may fail due to know problems.
PLEASE DO NOT MESS WITH THE SCALEOFFSET TESTS AT THIS TIME.
They will be enabled when the filter is ready.
Platforms tested:
verbena,copper,shanti
Misc. update:
MANIFEST
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index c9d6e20..76bfa34 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -288,6 +288,7 @@ int apply_filters(const char* name, /* object name from traverse list */ * H5Z_FILTER_FLETCHER32 3 , fletcher32 checksum of EDC * H5Z_FILTER_SZIP 4 , szip compression * H5Z_FILTER_NBIT 5 , nbit compression + * H5Z_FILTER_SCALEOFFSET 6 , scaleoffset compression *------------------------------------------------------------------------- */ @@ -370,7 +371,7 @@ 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 *------------------------------------------------------------------------- */ @@ -380,6 +381,17 @@ int apply_filters(const char* name, /* object name from traverse list */ if (H5Pset_nbit(dcpl_id)<0) return -1; break; + /*----------- ------------------------------------------------------------- + * H5Z_FILTER_SCALEOFFSET , scale+offset compression + *------------------------------------------------------------------------- + */ + case H5Z_FILTER_SCALEOFFSET: + aggression=obj.filter[i].cd_values[0]; + if(H5Pset_chunk(dcpl_id, obj.chunk.rank, obj.chunk.chunk_lengths)<0) + return -1; + if (H5Pset_scaleoffset(dcpl_id,aggression)<0) + return -1; + break; } /* switch */ }/*i*/ |