diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-08-19 19:09:13 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-08-19 19:09:13 (GMT) |
commit | 8f6f6fee060ff172befafacd68f5236b11ca2776 (patch) | |
tree | 190d63d53a8db97641021747a320dbbb1c93cc25 /tools/h5repack/h5repack.c | |
parent | 2f7d90c0da893606e8225261aec91949d51efd4a (diff) | |
download | hdf5-8f6f6fee060ff172befafacd68f5236b11ca2776.zip hdf5-8f6f6fee060ff172befafacd68f5236b11ca2776.tar.gz hdf5-8f6f6fee060ff172befafacd68f5236b11ca2776.tar.bz2 |
[svn-r9121] Purpose:
new feature
Description:
added a check that the chunk size must be smaller than pixels per block in SZIP request
prints a message and exits, if not met
Solution:
Platforms tested:
linux
aix
solaris
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r-- | tools/h5repack/h5repack.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c index c0cc918..14779c5 100644 --- a/tools/h5repack/h5repack.c +++ b/tools/h5repack/h5repack.c @@ -336,55 +336,6 @@ static int check_options(pack_opt_t *options) has_cp=1; -#if defined (CHECK_SZIP) - - /*check for invalid combination of options */ - switch (pack.filter[j].filtn) - { - default: - break; - case H5Z_FILTER_SZIP: - { - - unsigned szip_options_mask=H5_SZIP_NN_OPTION_MASK; - unsigned szip_pixels_per_block; - - szip_pixels_per_block=pack.filter[j].cd_values[0]; - - if (pack.filter[j].szip_coding==0) - szip_options_mask=H5_SZIP_NN_OPTION_MASK; - else - szip_options_mask=H5_SZIP_EC_OPTION_MASK; - - /* check szip parameters */ - if ( pack.chunk.rank!=-1 /* - it means a layout was not input, so there is no - case to try to check it - */ - && check_szip(0, /* do not test size */ - pack.chunk.rank, - pack.chunk.chunk_lengths, - szip_options_mask, - &szip_pixels_per_block, - options)==0) - { - /* Return: 1=can apply the filter - 0=cannot apply the filter - Reset this object filter info - */ - - options->op_tbl->objs[i].filter[j].filtn=-1; - options->op_tbl->objs[i].chunk.rank=-1; - printf(" Object <%s> cannot be filtered\n",name); - - - } - - } - break; - } /* switch */ - -#endif } /* j */ } /* i */ |