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

Enable g2int and int outputs for jpeg decoding with OpenJPEG #591

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

AlysonStahl-NOAA
Copy link
Contributor

@AlysonStahl-NOAA AlysonStahl-NOAA commented Mar 8, 2025

Fixes NOAA-EMC/NCEPLIBS-g2#825 (I think it was opened there in error)
Fixes NOAA-EMC/wgrib2#345

This capability already exists for Jasper decoding.

This PR creates a static function int_dec_jpeg2000() which now performs the jpeg decoding, but accepts the variable out_is_g2int. The function dec_jpeg2000() now calls int_dec_jpeg2000() with out_is_g2int = 1.

@AlysonStahl-NOAA AlysonStahl-NOAA marked this pull request as ready for review March 8, 2025 02:19
@AlysonStahl-NOAA AlysonStahl-NOAA requested review from DusanJovic-NOAA and edwardhartnett and removed request for DusanJovic-NOAA March 8, 2025 02:27
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.

Errors in unpk_grib() with JPEG packing problems with wgrib2 using OpenJPEG.
2 participants