diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-08-31 22:13:13 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-08-31 22:13:13 (GMT) |
commit | c396fb7c06ef29be94a606e130cfd5e5b95cbfb2 (patch) | |
tree | d614314678ebd095dd7569d1f3f78a7f1f1e11fc /tools/h5repack | |
parent | 71e345cd4ecad162854a8f3621693f6ef9bac641 (diff) | |
download | hdf5-c396fb7c06ef29be94a606e130cfd5e5b95cbfb2.zip hdf5-c396fb7c06ef29be94a606e130cfd5e5b95cbfb2.tar.gz hdf5-c396fb7c06ef29be94a606e130cfd5e5b95cbfb2.tar.bz2 |
[svn-r11327] Purpose:
Updating the filter based on H5Pset_scaleoffset API change.
Description:
Still more changes are needed for the filter for floating-point.
Solution:
Platforms tested:
Misc. update:
Diffstat (limited to 'tools/h5repack')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index 0b5ff2b..1eea971 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -389,7 +389,10 @@ int apply_filters(const char* name, /* object name from traverse list */ 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,2)<0) + /* The following line needs to be changed in the future, + H5_SO_INT needs to be passed as a parameter, it can + be either H5_SO_FLOAT_DSCALE or H5_SO_INT. KY, 2005/8/31 */ + if (H5Pset_scaleoffset(dcpl_id,H5_SO_INT,aggression)<0) return -1; break; } /* switch */ |