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.h | |
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.h')
-rw-r--r-- | tools/h5repack/h5repack.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h index 4691a74..5c2c7eb 100644 --- a/tools/h5repack/h5repack.h +++ b/tools/h5repack/h5repack.h @@ -21,11 +21,6 @@ #include "h5diff.h" #include "h5tools.h" -#if 0 -#define CHECK_SZIP -#endif - - #define H5FOPENERROR "unable to open file" #define PFORMAT "%-7s %-7s %-7s\n" /*chunk info, compression info, name*/ @@ -328,59 +323,5 @@ int make_attr(hid_t loc_id, -/*------------------------------------------------------------------------- - * check SZIP parameters - *------------------------------------------------------------------------- - */ - -#if defined (CHECK_SZIP) - -int check_szip_params( unsigned bits_per_pixel, - unsigned pixels_per_block, - unsigned pixels_per_scanline, - hsize_t image_pixels); - -int check_szip(hid_t type_id, /* dataset datatype */ - int rank, /* chunk rank */ - hsize_t *dims, /* chunk dims */ - unsigned szip_options_mask /*IN*/, - unsigned *szip_pixels_per_block /*IN,OUT*/, - pack_opt_t *options); - - - -typedef struct -{ - int compression_mode; - int options_mask; - unsigned bits_per_pixel; - unsigned pixels_per_block; - unsigned pixels_per_scanline; - hsize_t pixels; - -}szip_comp_t; - -/* for SZIP */ -#if !defined (NN_OPTION_MASK) -#define NN_OPTION_MASK 32 -#endif -#if !defined (RAW_OPTION_MASK) -#define RAW_OPTION_MASK 128 -#endif -#if !defined (MAX_BLOCKS_PER_SCANLINE) -#define MAX_BLOCKS_PER_SCANLINE 128 -#endif -#if !defined (MAX_PIXELS_PER_BLOCK) -#define MAX_PIXELS_PER_BLOCK 32 -#endif -#if !defined (MAX_PIXELS_PER_SCANLINE) -#define MAX_PIXELS_PER_SCANLINE (MAX_BLOCKS_PER_SCANLINE)*(MAX_PIXELS_PER_BLOCK) -#endif -#if !defined (NN_MODE) -#define NN_MODE 1 -#endif - -#endif /* CHECK_SZIP */ - #endif /* H5REPACK_H__ */ |