summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-12-04 19:59:54 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-12-04 19:59:54 (GMT)
commita5ba6ac3977d660d3122387ad470374c0b2bfbc6 (patch)
tree188c330f1f3b5dbbe956e004dcd9f656c12c86ea /tools/h5repack/h5repack.h
parent529d974dffdaab7b3ba03f1f3c0c2c28557934d0 (diff)
downloadhdf5-a5ba6ac3977d660d3122387ad470374c0b2bfbc6.zip
hdf5-a5ba6ac3977d660d3122387ad470374c0b2bfbc6.tar.gz
hdf5-a5ba6ac3977d660d3122387ad470374c0b2bfbc6.tar.bz2
[svn-r14320] Added a function that matches the filters on the dataset's DCPL and in the requested list
Used to verify if the filters requested are present in the output dataset tested: windows, linux, solaris
Diffstat (limited to 'tools/h5repack/h5repack.h')
-rw-r--r--tools/h5repack/h5repack.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h
index 31f4038..018fd5f 100644
--- a/tools/h5repack/h5repack.h
+++ b/tools/h5repack/h5repack.h
@@ -51,11 +51,12 @@ typedef struct {
H5Z_FILTER_SCALEOFFSET 6 , scaleoffset compression
*/
-#define CDVALUES 2
+#define CDVALUES 4 /* SZIP returns 4 values */
typedef struct {
H5Z_filter_t filtn; /* filter identification number */
int cd_values[CDVALUES]; /* filter client data values */
+ size_t cd_nelmts; /* filter client number of values */
} filter_info_t;
/* chunk lengths along each dimension and rank */
@@ -96,23 +97,10 @@ typedef struct {
pack_opttbl_t *op_tbl; /*table with all -c and -f options */
int all_layout; /*apply the layout to all objects */
int all_filter; /*apply the filter to all objects */
-
-#if defined (NOT_ALL)
-
- filter_info_t filter_g; /*global filter INFO for the ALL case */
-
-
-#else
-
- filter_info_t filter_g[H5_REPACK_MAX_NFILTERS]; /*global filter array for the ALL case */
- int n_filter_g; /*number of global filters */
-
-#endif
-
+ filter_info_t filter_g[H5_REPACK_MAX_NFILTERS]; /*global filter array for the ALL case */
+ int n_filter_g; /*number of global filters */
chunk_info_t chunk_g; /*global chunk INFO for the ALL case */
H5D_layout_t layout_g; /*global layout information for the ALL case */
-
-
int verbose; /*verbose mode */
hsize_t threshold; /*minimum size to compress, in bytes */
int use_native; /*use a native type in write */