Skip to content

Commit fb1c5d9

Browse files
authored
Merge pull request #559 from Blosc/openzl_plugin
Add openzl_plugin support
2 parents 3b611dd + 59d1881 commit fb1c5d9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/blosc2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class Codec(Enum):
5959
OPENHTJ2K = 36
6060
#: Needs to be installed with ``pip install blosc2-grok``
6161
GROK = 37
62+
#: Needs to be installed with ``pip install blosc2-openzl``
63+
OPENZL = 38
6264

6365

6466
class Filter(Enum):

src/blosc2/blosc2_ext.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ cdef extern from "blosc2.h":
256256
void* schunk
257257
blosc2_postfilter_fn postfilter
258258
blosc2_postfilter_params *postparams
259+
int32_t typesize
259260

260261
cdef const blosc2_dparams BLOSC2_DPARAMS_DEFAULTS
261262

@@ -1001,6 +1002,7 @@ cdef create_dparams_from_kwargs(blosc2_dparams *dparams, kwargs, blosc2_cparams*
10011002
dparams.postparams = NULL
10021003
# TODO: support the next ones in the future
10031004
#dparams.schunk = kwargs.get('schunk', blosc2.dparams_dflts['schunk'])
1005+
#dparams.typesize = typesize = kwargs.get('typesize', blosc2.dparams_dflts['typesize'])
10041006
_check_dparams(dparams, cparams)
10051007

10061008
def decompress2(src, dst=None, **kwargs):

0 commit comments

Comments
 (0)