Skip to content

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

Merged
edwardhartnett merged 7 commits intoNOAA-EMC:developfrom
AlysonStahl-NOAA:as_jpegunpk
Mar 12, 2025
Merged

Enable g2int and int outputs for jpeg decoding with OpenJPEG#591
edwardhartnett merged 7 commits intoNOAA-EMC:developfrom
AlysonStahl-NOAA:as_jpegunpk

Conversation

@AlysonStahl-NOAA
Copy link
Copy Markdown
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
Comment thread src/decenc_openjpeg.c
@edwardhartnett edwardhartnett merged commit 476105c into NOAA-EMC:develop Mar 12, 2025
50 of 53 checks passed
@edwardhartnett
Copy link
Copy Markdown
Contributor

Do we need to do a release now? If so, @AlysonStahl-NOAA please add an issue...

@AlysonStahl-NOAA
Copy link
Copy Markdown
Contributor Author

Yes, just opened one

@AlysonStahl-NOAA AlysonStahl-NOAA deleted the as_jpegunpk branch March 12, 2025 16:33
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.

4 participants