diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 13:15:18 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 13:15:18 (GMT) |
commit | ac48a23e2b72b03d60d4fdf10957ed31beb5b70d (patch) | |
tree | ffa3319c694f416086419118f3fc3bc3b1e6fca1 /src/H5Zpublic.h | |
parent | 892cc41777c9a104e49ad6d9bac21f085dba6b95 (diff) | |
download | hdf5-ac48a23e2b72b03d60d4fdf10957ed31beb5b70d.zip hdf5-ac48a23e2b72b03d60d4fdf10957ed31beb5b70d.tar.gz hdf5-ac48a23e2b72b03d60d4fdf10957ed31beb5b70d.tar.bz2 |
[svn-r6114] Purpose:
Code Cleanup & New Feature
Description:
H5config.h.in:
Removed H5_HAVE_COMPRESSION & H5_HAVE_FILTER_GZIP flags.
Added H5_HAVE_FILTER_DEFLATE flag.
H5Z.c:
H5Zprivate.h:
H5Zpublic.h:
Switched from using H5_HAVE_COMPRESSION flag in favor of
H5_HAVE_FILTER_DEFLATE.
Added H5Zunregister & H5Zfilter_avail API functions.
Changed a numeric constant (256) to a symbolic constant
(H5Z_FILTER_RESERVED).
Automatically add the shuffling filter to the list of available filters
(when it is enabled).
Moved prototypes for H5Z_filter_deflate & H5Z_filter_shuffle from the
public header into the private header.
H5Zdeflate.c:
Switched from using H5_HAVE_COMPRESSION & H5_HAVE_FILTER_GZIP flags in
favor of H5_HAVE_FILTER_DEFLATE.
Cleaned up formatting & error reporting a bit.
H5Zshuffle.c:
Rewrote shuffling algorithm to be more efficient.
Added error checking & reporting.
Added standard Pablo information.
Added standard function header comment.
Added FUNC_ENTER & FUNC_LEAVE macros.
Platforms tested:
Tested h5committest {arabica (fortran), eirene (fortran, C++)
modi4 (parallel, fortran)}
FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5Zpublic.h')
-rw-r--r-- | src/H5Zpublic.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/H5Zpublic.h b/src/H5Zpublic.h index 46f74a3..0b9a0bf 100644 --- a/src/H5Zpublic.h +++ b/src/H5Zpublic.h @@ -20,6 +20,7 @@ typedef int H5Z_filter_t; #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_RESERVED 256 /*filter ids below this value are reserved */ #define H5Z_FILTER_MAX 65535 /*maximum filter id */ /* Flags for filter definition */ @@ -56,13 +57,11 @@ extern "C" { H5_DLL herr_t H5Zregister(H5Z_filter_t id, const char *comment, H5Z_func_t filter); -size_t H5Z_filter_deflate(unsigned flags, size_t cd_nelmts, - const unsigned cd_values[], size_t nbytes, - size_t *buf_size, void **buf); +H5_DLL herr_t H5Zunregister(H5Z_filter_t id); + +H5_DLL htri_t H5Zfilter_avail(H5Z_filter_t id); + -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 |