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

openjpeg: add support for setting lossless mode #1071

Closed
wants to merge 1 commit into from

Conversation

bradh
Copy link
Contributor

@bradh bradh commented Dec 21, 2023

Lossless (reversible) is the default in OpenJPEG, and previously we silently ignored setting that on or off.

This moves the compression parameters into the encoder context, and allows setting it.

In my tests, reversible was actually smaller (and matched the pre-PR size). Possibly that is just a function of the test image input though.

@bradh bradh mentioned this pull request Dec 21, 2023
farindk pushed a commit that referenced this pull request Jan 16, 2024
@farindk
Copy link
Contributor

farindk commented Jan 16, 2024

Thanks. I've also split this into two commits.

@farindk farindk closed this Jan 16, 2024
@bradh bradh deleted the j2k_lossy branch January 16, 2024 11:06
bradh added a commit to bradh/libheif that referenced this pull request Jan 16, 2024
This was in strukturag#1071, but appears to have been dropped during the split of that PR.
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