Skip to content

Add HT-JP2K plugin - #405

Open
payno wants to merge 7 commits into
mainfrom
add_jp2k_ht
Open

Add HT-JP2K plugin#405
payno wants to merge 7 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 doc/information.rst
* `HDF5-ZFP plugin <https://github.com/LLNL/H5Z-ZFP>`_ (v1.1.1) using ZFP.
* `ZStd plugin <https://github.com/HDFGroup/hdf5_plugins/tree/master/ZSTD>`_
(commit `5573db8 <https://github.com/HDFGroup/hdf5_plugins/tree/5573db8f9706e1df262752a9247e90a3d4bd57bd/ZSTD>`_) using ZStd.
* `ZhtJ2k plugin <https://github.com/silx-kit/h5z-htj2k>` (v x.x.x) using `High-Trhoughput JPEG 2000 <https://jpeg.org/jpeg2000/htj2k.html>`

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.

To be completed during the first release.

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.

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.

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
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.

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.

1 participant