summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-09-19 21:12:35 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-09-19 21:12:35 (GMT)
commitdca5ad5754071a785c1977c0252e49b7ff3f4721 (patch)
treeade2fafa0d05d2ce2249c4fd9864432ae092d8f9 /tools/h5repack/h5repack.h
parent465f9be6e3f818d20c650976a14d7698063cad00 (diff)
downloadhdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.zip
hdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.tar.gz
hdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.tar.bz2
[svn-r11443] Purpose:
new features Description: added support for the scale/offset filter there is a new filter symbol 'SOFF' -f SOFF=<scale_factor,scale_type> scale_factor = integer scale_type = 'IN' or 'DS' Solution: Platforms tested: Linux SunOS Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack.h')
-rw-r--r--tools/h5repack/h5repack.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h
index 0ced373..dab4ece 100644
--- a/tools/h5repack/h5repack.h
+++ b/tools/h5repack/h5repack.h
@@ -30,7 +30,6 @@
#define MAX_NC_NAME 256 /* max length of a name */
#define MAX_VAR_DIMS 32 /* max per variable dimensions */
-
/*-------------------------------------------------------------------------
* data structures for command line options
*-------------------------------------------------------------------------
@@ -44,11 +43,13 @@ typedef struct {
/*
the type of filter and additional parameter
type can be one of the filters
- H5Z_FILTER_NONE 0, uncompress if compressed
- H5Z_FILTER_DEFLATE 1 , deflation like gzip
- H5Z_FILTER_SHUFFLE 2 , shuffle the data
- H5Z_FILTER_FLETCHER32 3 , letcher32 checksum of EDC
- H5Z_FILTER_SZIP 4 , szip compression
+ H5Z_FILTER_NONE 0, uncompress if compressed
+ H5Z_FILTER_DEFLATE 1 , deflation like gzip
+ H5Z_FILTER_SHUFFLE 2 , shuffle the data
+ H5Z_FILTER_FLETCHER32 3 , letcher32 checksum of EDC
+ H5Z_FILTER_SZIP 4 , szip compression
+ H5Z_FILTER_NBIT 5 , nbit compression
+ H5Z_FILTER_SCALEOFFSET 6 , scaleoffset compression
*/
#define CDVALUES 2
@@ -56,11 +57,6 @@ 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 */
@@ -71,7 +67,7 @@ typedef struct {
/* we currently define a maximum value for the filters array,
that corresponds to the current library filters */
-#define H5_REPACK_MAX_NFILTERS 4
+#define H5_REPACK_MAX_NFILTERS 6
/* information for one object, contains PATH, CHUNK info and FILTER info */
typedef struct {