Skip to content

Commit fc31b97

Browse files
committed
Add typesize
1 parent 02f9cce commit fc31b97

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ else()
5050
include(FetchContent)
5151
FetchContent_Declare(blosc2
5252
GIT_REPOSITORY https://github.com/Blosc/c-blosc2
53-
GIT_TAG 5a2b0ed9c4d801230c118fbc5811817055b5a3f5 # v2.22.0
53+
GIT_TAG 8795082b1ec76ee29b4bfbd53ccfca8710273ba1 # openzl_plugin
5454
)
5555
FetchContent_MakeAvailable(blosc2)
5656
include_directories("${blosc2_SOURCE_DIR}/include")

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
@@ -252,6 +252,7 @@ cdef extern from "blosc2.h":
252252
void* schunk
253253
blosc2_postfilter_fn postfilter
254254
blosc2_postfilter_params *postparams
255+
int32_t typesize
255256

256257
cdef const blosc2_dparams BLOSC2_DPARAMS_DEFAULTS
257258

@@ -888,6 +889,7 @@ cdef create_dparams_from_kwargs(blosc2_dparams *dparams, kwargs, blosc2_cparams*
888889
dparams.postparams = NULL
889890
# TODO: support the next ones in the future
890891
#dparams.schunk = kwargs.get('schunk', blosc2.dparams_dflts['schunk'])
892+
#dparams.typesize = typesize = kwargs.get('typesize', blosc2.dparams_dflts['typesize'])
891893
_check_dparams(dparams, cparams)
892894

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

0 commit comments

Comments
 (0)