NexusCPP
3.5.0
include
nexuscpp
lz4
h5zlz4.h
Go to the documentation of this file.
1
/*
2
License for Dectris lz4-hdf5 filter plugin
3
Copyright (C) 2011-2013, Dectris Ltd.
4
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
5
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are
8
met:
9
10
* Redistributions of source code must retain the above copyright
11
notice, this list of conditions and the following disclaimer.
12
* Redistributions in binary form must reproduce the above
13
copyright notice, this list of conditions and the following disclaimer
14
in the documentation and/or other materials provided with the
15
distribution.
16
17
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29
You can contact the author at :
30
Dectris homepage : http://www.dectris.com
31
*/
32
33
#include <stdio.h>
34
#include <stdlib.h>
35
#include <string.h>
36
37
#include <H5PLextern.h>
38
39
#define LZ4_FILTER 32004
40
41
size_t
lz4_filter
(
unsigned
int
flags,
size_t
cd_nelmts,
42
const
unsigned
int
cd_values[],
size_t
nbytes,
43
size_t
*buf_size,
void
**buf);
44
45
const
H5Z_class2_t
H5Z_LZ4
[1] = {{
46
H5Z_CLASS_T_VERS,
/* H5Z_class_t version */
47
(H5Z_filter_t)
LZ4_FILTER
,
/* Filter id number */
48
1,
/* encoder_present flag (set to true) */
49
1,
/* decoder_present flag (set to true) */
50
"HDF5 lz4 filter; see http://www.hdfgroup.org/services/contributions.html"
,
51
/* Filter name for debugging */
52
NULL,
/* The "can apply" callback */
53
NULL,
/* The "set local" callback */
54
(H5Z_func_t)
lz4_filter
,
/* The actual filter function */
55
}};
H5Z_LZ4
const H5Z_class2_t H5Z_LZ4[1]
Definition:
h5zlz4.h:45
lz4_filter
size_t lz4_filter(unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[], size_t nbytes, size_t *buf_size, void **buf)
LZ4_FILTER
#define LZ4_FILTER
Definition:
h5zlz4.h:39
Generated on Tue Jan 31 2023 11:23:26 for NexusCPP by
1.8.13