diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-06 18:29:53 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-06 18:29:53 (GMT) |
commit | 9d01b26a9302bdff93e20f1a6e55cb473a79d174 (patch) | |
tree | 369846ca1de752d4f48de3f21f16c2cf0b0fd174 /tools/h5repack/h5repack_filters.c | |
parent | 8b2932bf607dc758221bc1041b4946a01fbf6413 (diff) | |
download | hdf5-9d01b26a9302bdff93e20f1a6e55cb473a79d174.zip hdf5-9d01b26a9302bdff93e20f1a6e55cb473a79d174.tar.gz hdf5-9d01b26a9302bdff93e20f1a6e55cb473a79d174.tar.bz2 |
[svn-r12205] Purpose:
new feature
Description:
added the printout of the compression ratio for filters in h5repack, after the filter name, obtained with H5Dget_storage_size, before and after applying the filter
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r-- | tools/h5repack/h5repack_filters.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c index a96d5be..1cd6955 100644 --- a/tools/h5repack/h5repack_filters.c +++ b/tools/h5repack/h5repack_filters.c @@ -194,16 +194,11 @@ int apply_filters(const char* name, /* object name from traverse list */ pack_opt_t *options) /* repack options */ { int nfilters; /* number of filters in DCPL */ - hsize_t nelmts; /* number of elements in dataset */ - size_t size; /* size of datatype in bytes */ hsize_t chsize[64]; /* chunk size in elements */ H5D_layout_t layout; int i; pack_info_t obj; - if (rank==0) - goto out; - /*------------------------------------------------------------------------- * initialize the assigment object *------------------------------------------------------------------------- @@ -220,20 +215,6 @@ int apply_filters(const char* name, /* object name from traverse list */ /* get information about input filters */ if ((nfilters = H5Pget_nfilters(dcpl_id))<0) return -1; - - /* check for datasets too small */ - if ((size=H5Tget_size(type_id))==0) - return 0; - nelmts=1; - for (i=0; i<rank; i++) - nelmts*=dims[i]; - if (nelmts*size < options->threshold ) - { - if (nfilters && options->verbose) - printf("Warning: Filter not applied to <%s>. Dataset smaller than <%d> bytes\n", - name,(int)options->threshold); - return 0; - } /*------------------------------------------------------------------------- * check if we have filters in the pipeline @@ -420,10 +401,6 @@ int apply_filters(const char* name, /* object name from traverse list */ return 0; -out: - if (options->verbose) - printf("Warning: Filter could not be applied to <%s>\n",name); - return 0; } |