summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-20 19:20:01 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-20 19:20:01 (GMT)
commitc911905f27df9a23e1f4d2ced33771b7b8f14126 (patch)
tree1cb91ddef3edc083e4682ace1647e969977b3af5 /tools/h5repack/h5repack.h
parentf75ed67d2b624fa4b72207eba13c9f0a34605a47 (diff)
downloadhdf5-c911905f27df9a23e1f4d2ced33771b7b8f14126.zip
hdf5-c911905f27df9a23e1f4d2ced33771b7b8f14126.tar.gz
hdf5-c911905f27df9a23e1f4d2ced33771b7b8f14126.tar.bz2
[svn-r8903] Purpose:
h5diff and h5repack changes Description: h5diff introduced the following four modes of output: Normal mode: print the number of differences found and where they occured Report mode: print the above plus the differences Verbose mode: print the above plus a list of objects and warnings Quiet mode: do not print output (h5diff always returns an exit code of 1 when differences are found) h5repack added an extra parameter for SZIP filter (coding method) the new syntax is -f SZIP=<pixels per block,coding> (pixels per block is a even number in 2-32 and coding method is 'EC' or 'NN') Example of use: ./h5repack -i file1 -o file2 -f SZIP=8,NN -v updated usage messages, test scripts and files accordingly Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack.h')
-rw-r--r--tools/h5repack/h5repack.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h
index db89534..4691a74 100644
--- a/tools/h5repack/h5repack.h
+++ b/tools/h5repack/h5repack.h
@@ -21,7 +21,9 @@
#include "h5diff.h"
#include "h5tools.h"
+#if 0
#define CHECK_SZIP
+#endif
#define H5FOPENERROR "unable to open file"
@@ -58,6 +60,11 @@ typedef struct {
typedef struct {
H5Z_filter_t filtn; /* filter identification number */
int cd_values[CDVALUES]; /* filter client data values */
+ /* extra input for szip, selects the coding method
+ entropy coding method: EC=0
+ nearest neighbor coding method: NN=1
+ */
+ int szip_coding;
} filter_info_t;
/* chunk lengths along each dimension and rank */
@@ -192,17 +199,6 @@ int apply_filters(const char* name, /* object name from traverse list */
int has_filter(hid_t dcpl_id,
H5Z_filter_t filtnin);
-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);
int can_read(const char* name, /* object name from traverse list */
hid_t dcpl_id, /* dataset creation property list */
@@ -337,6 +333,22 @@ int make_attr(hid_t loc_id,
*-------------------------------------------------------------------------
*/
+#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;
@@ -368,6 +380,7 @@ typedef struct
#define NN_MODE 1
#endif
+#endif /* CHECK_SZIP */
#endif /* H5REPACK_H__ */