Skip to content

Add HTJ2K plugin - #405

Merged
t20100 merged 8 commits into
mainfrom
add_jp2k_ht
Aug 26, 2026
Merged

Add HTJ2K plugin#405
t20100 merged 8 commits into
mainfrom
add_jp2k_ht

Conversation

@payno

@payno payno commented Aug 24, 2026

Copy link
Copy Markdown
Member

Attempt to add the 'ht-jp2k' plugin.

@payno payno self-assigned this Aug 24, 2026
Comment thread src/hdf5plugin/__init__.py Outdated
Comment on lines +45 to +54
@@ -50,6 +51,7 @@
FciDecomp,
Sperr,
Zfp,
Zhtj2k,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not really sure about the names to be used. Please feel free to propose something better.

Comment thread src/hdf5plugin/_filters.py Outdated
ZFP_ID = 32013
"""ZFP filter ID"""

ZHT_JP2K_ID = 32033

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From last information I had. I hope this is up to date.

Comment thread src/hdf5plugin/_filters.py Outdated
return cls(minbits=minbits, maxbits=maxbits, maxprec=maxprec, minexp=minexp)


class Zhtj2k(FilterBase):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As not parameter can be provided at the moment I think there is no much more to do. Maybe a better docstring ?

Comment thread setup.py Outdated
h5z_htj2k_dir = "lib/h5z-htj2k"
openjph_include_dir = f"{h5z_htj2k_dir}/vendored/OpenJPH/src/core/openjph"

extra_compile_args = ["-O3", "-std=c++17"]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t20100
t20100 force-pushed the add_jp2k_ht branch 2 times, most recently from 62a2be9 to 888e3f6 Compare August 25, 2026 15:24
@t20100 t20100 changed the title Add HT-JP2K plugin Add HTJ2K plugin Aug 25, 2026
@t20100

t20100 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Changed a few things:

  • updated to h5z-htj2k v0.1.0
  • added H5T_NATIVE_INT16_g to hdf_dl.c
  • changed the test in `test/test.py to make it read an already existing file
  • added an entry in the sphinx doc

Still need to fix a build issue on macos: error: invalid argument '-std=c++14' not allowed with 'C'

@payno
payno requested a review from t20100 August 26, 2026 06:39
@t20100
t20100 merged commit 391fa41 into main Aug 26, 2026
11 of 12 checks passed
@t20100
t20100 deleted the add_jp2k_ht branch August 26, 2026 07:51
@t20100 t20100 added this to the 7.1.0 milestone Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants