summaryrefslogtreecommitdiffstats
path: root/src/H5Zpublic.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-11-13 16:35:11 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-11-13 16:35:11 (GMT)
commit55de236da8c16b94f6c8bec17cadc3ca69daed90 (patch)
treea2f70b7aa2ff865492edd7725ca9e6e0b54b3814 /src/H5Zpublic.h
parent9646b2464cff1ed996517fe9c30b046a76739b23 (diff)
downloadhdf5-55de236da8c16b94f6c8bec17cadc3ca69daed90.zip
hdf5-55de236da8c16b94f6c8bec17cadc3ca69daed90.tar.gz
hdf5-55de236da8c16b94f6c8bec17cadc3ca69daed90.tar.bz2
[svn-r6087]
Purpose: Adding internal shuffle filter Description: With the combination of shuffling filter with general compression algorithm, the compression ratio may be improved without adding much encoding and decoding time for many real NASA datasets(especially floating data) and other application datasets(See techNotes). Solution: SHuffle the bytes within the data to utilize the locality. Platforms tested: arabica , eirene, modi4 Misc. update: Update MANIFEST if you add or remove any file. Update release_docs/RELEASE for bug fixes, new features, etc. Update applicable document files too.
Diffstat (limited to 'src/H5Zpublic.h')
-rw-r--r--src/H5Zpublic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Zpublic.h b/src/H5Zpublic.h
index 466fbb6..46f74a3 100644
--- a/src/H5Zpublic.h
+++ b/src/H5Zpublic.h
@@ -19,6 +19,7 @@ typedef int H5Z_filter_t;
#define H5Z_FILTER_ERROR (-1) /*no filter */
#define H5Z_FILTER_NONE 0 /*reserved indefinitely */
#define H5Z_FILTER_DEFLATE 1 /*deflation like gzip */
+#define H5Z_FILTER_SHUFFLE 2 /* shuffle the data */
#define H5Z_FILTER_MAX 65535 /*maximum filter id */
/* Flags for filter definition */
@@ -59,6 +60,9 @@ size_t H5Z_filter_deflate(unsigned flags, size_t cd_nelmts,
const unsigned cd_values[], size_t nbytes,
size_t *buf_size, void **buf);
+size_t H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts,
+ const unsigned cd_values[], size_t nbytes,
+ size_t *buf_size, void **buf);
#ifdef __cplusplus
}
#endif