Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LZ4 compression/decompression #41

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

rharkes
Copy link
Contributor

@rharkes rharkes commented Sep 10, 2024

I've tried to add LZ4 compression in a similar way as was done before for Zstd decompression. However, LZ4 does not tell how large the decompressed data will be. So this is a required parameter in CodecOptions. But I'm not sure how to best enforce it.

The reason I'd like to have LZ4 decompression is that it is used by the imaris fileformat, but it cannot be opened by bioformats at the moment.

Copy link
Member

@melissalinkert melissalinkert left a comment

Choose a reason for hiding this comment

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

Thanks for this, @rharkes.

Before we more carefully consider this for inclusion, could you please submit a contributor license agreement as described in https://ome-contributing.readthedocs.io/en/latest/cla.html?

src/main/java/ome/codecs/LZ4Codec.java Show resolved Hide resolved
src/test/java/ome/codecs/LZ4CodecTest.java Show resolved Hide resolved
@melissalinkert
Copy link
Member

Added include label so we can verify that this doesn't impact tests (Friday or later, as I was too slow for Thursday's build).

Copy link
Member

@melissalinkert melissalinkert left a comment

Choose a reason for hiding this comment

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

Thanks again, @rharkes. Merging this in preparation for a release of ome-codecs.

@melissalinkert melissalinkert merged commit d08e608 into ome:master Nov 26, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants