| 1 |
/* |
| 2 |
* Dynamically loaded filter plugin for HDF5 LZF filter. |
| 3 |
* |
| 4 |
* This file is part of Bitshuffle |
| 5 |
* Author: Kiyoshi Masui <[email protected]> |
| 6 |
* Website: https://www.github.com/kiyo-masui/bitshuffle |
| 7 |
* Created: 2014 |
| 8 |
* |
| 9 |
* See LICENSE file for details about copyright and rights to use. |
| 10 |
* |
| 11 |
*/ |
| 12 |
|
| 13 |
|
| 14 |
#define H5Z_class_t_vers 2 |
| 15 |
#include "lzf_filter.h" |
| 16 |
#include "H5PLextern.h" |
| 17 |
|
| 18 |
#include <stdint.h> |
| 19 |
|
| 20 |
|
| 21 |
size_t lzf_filter(unsigned flags, size_t cd_nelmts, |
| 22 |
const unsigned cd_values[], size_t nbytes, |
| 23 |
size_t *buf_size, void **buf); |
| 24 |
|
| 25 |
|
| 26 |
herr_t lzf_set_local(hid_t dcpl, hid_t type, hid_t space); |
| 27 |
|
| 28 |
|
| 29 |
H5Z_class_t lzf_H5Filter[1] = {{ |
| 30 |
H5Z_CLASS_T_VERS, |
| 31 |
(H5Z_filter_t)(H5PY_FILTER_LZF), |
| 32 |
1, 1, |
| 33 |
"lzf", |
| 34 |
NULL, |
| 35 |
(H5Z_set_local_func_t)(lzf_set_local), |
| 36 |
(H5Z_func_t)(lzf_filter) |
| 37 |
}}; |
| 38 |
|
| 39 |
|
| 40 |
H5PL_type_t H5PLget_plugin_type(void) {return H5PL_TYPE_FILTER;} |
| 41 |
const void* H5PLget_plugin_info(void) {return lzf_H5Filter;} |