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 WrapperDecompressImageEx API that supports use_16bit_dc_estimate #54

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

gbrovman
Copy link
Contributor

C++ version has a bug where it uses 16 bit math in the SIMD path and 32 bit math in the scalar path depending on the compiler options. This PR adds a new WrapperDecompressImageEx API that supports use_16bit_dc_estimate argument.
If use_16bit_dc_estimate=true, the decompression uses a back-compat mode that considers it. The caller should set use_16bit_dc_estimate to true only for images that were compressed by C++ version with relevant compiler options. This approach is preferrable to a previously added retry logic that may miss some cases leading to bad (corrupted) decompression results.

@gbrovman gbrovman requested a review from mcroomp December 21, 2023 21:04
@mcroomp mcroomp merged commit 9b353b4 into main Jan 4, 2024
3 checks passed
@mcroomp mcroomp deleted the AddWrapperDecompressImageEx branch January 4, 2024 08:45
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