1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
---|
2 | * Copyright by The HDF Group. * |
---|
3 | * Copyright by the Board of Trustees of the University of Illinois. * |
---|
4 | * All rights reserved. * |
---|
5 | * * |
---|
6 | * This file is part of HDF5. The full HDF5 copyright notice, including * |
---|
7 | * terms governing use, modification, and redistribution, is contained in * |
---|
8 | * the files COPYING and Copyright.html. COPYING can be found at the root * |
---|
9 | * of the source code distribution tree; Copyright.html can be found at the * |
---|
10 | * root level of an installed copy of the electronic HDF5 document set and * |
---|
11 | * is linked from the top-level documents page. It can also be found at * |
---|
12 | * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * |
---|
13 | * access to either file, you may request a copy from help@hdfgroup.org. * |
---|
14 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
---|
15 | |
---|
16 | #ifndef H5Z_PACKAGE |
---|
17 | #error "Do not include this file outside the H5Z package!" |
---|
18 | #endif |
---|
19 | |
---|
20 | #ifndef _H5Zpkg_H |
---|
21 | #define _H5Zpkg_H |
---|
22 | |
---|
23 | /* Include private header file */ |
---|
24 | #include "H5Zprivate.h" /* Filter functions */ |
---|
25 | |
---|
26 | |
---|
27 | /* The initial version of the format */ |
---|
28 | #define H5O_PLINE_VERSION_1 1 |
---|
29 | |
---|
30 | /* This version encodes the message fields more efficiently */ |
---|
31 | /* (Drops the reserved bytes, doesn't align the name and doesn't encode the |
---|
32 | * filter name at all if it's a filter provided by the library) |
---|
33 | */ |
---|
34 | #define H5O_PLINE_VERSION_2 2 |
---|
35 | |
---|
36 | /* The latest version of the format. Look through the 'encode' and 'size' |
---|
37 | * callbacks for places to change when updating this. */ |
---|
38 | #define H5O_PLINE_VERSION_LATEST H5O_PLINE_VERSION_2 |
---|
39 | |
---|
40 | |
---|
41 | #ifdef H5_HAVE_FILTER_DEFLATE |
---|
42 | /* |
---|
43 | * Deflate filter |
---|
44 | */ |
---|
45 | H5_DLLVAR const H5Z_class_t H5Z_DEFLATE[1]; |
---|
46 | #endif /* H5_HAVE_FILTER_DEFLATE */ |
---|
47 | |
---|
48 | #ifdef H5_HAVE_FILTER_SHUFFLE |
---|
49 | /* |
---|
50 | * Shuffle filter |
---|
51 | */ |
---|
52 | H5_DLLVAR const H5Z_class_t H5Z_SHUFFLE[1]; |
---|
53 | #endif /* H5_HAVE_FILTER_SHUFFLE */ |
---|
54 | |
---|
55 | #ifdef H5_HAVE_FILTER_FLETCHER32 |
---|
56 | /* |
---|
57 | * Fletcher32 filter |
---|
58 | */ |
---|
59 | H5_DLLVAR const H5Z_class_t H5Z_FLETCHER32[1]; |
---|
60 | #endif /* H5_HAVE_FILTER_FLETCHER32 */ |
---|
61 | |
---|
62 | #ifdef H5_HAVE_FILTER_SZIP |
---|
63 | /* |
---|
64 | * szip filter |
---|
65 | */ |
---|
66 | H5_DLLVAR H5Z_class_t H5Z_SZIP[1]; |
---|
67 | #endif /* H5_HAVE_FILTER_SZIP */ |
---|
68 | |
---|
69 | #ifdef H5_HAVE_FILTER_NBIT |
---|
70 | /* |
---|
71 | * nbit filter |
---|
72 | */ |
---|
73 | H5_DLLVAR H5Z_class_t H5Z_NBIT[1]; |
---|
74 | #endif /* H5_HAVE_FILTER_NBIT */ |
---|
75 | |
---|
76 | #ifdef H5_HAVE_FILTER_SCALEOFFSET |
---|
77 | /* |
---|
78 | * scaleoffset filter |
---|
79 | */ |
---|
80 | H5_DLLVAR H5Z_class_t H5Z_SCALEOFFSET[1]; |
---|
81 | #endif /* H5_HAVE_FILTER_SCALEOFFSET */ |
---|
82 | |
---|
83 | /* Package-local function prototypes */ |
---|
84 | H5_DLL void H5Z_update_class_vers(H5Z_class_t * old_vers, H5Z_class_t * curr_vers); |
---|
85 | |
---|
86 | #endif /* _H5Zpkg_H */ |
---|
87 | |
---|