Skip to content

jpeg: decoder parity stack (post-#590)#1

Closed
hjanuschka wants to merge 9 commits into
feature/jbrd-box-supportfrom
jpeg-decoder-after-590-stack
Closed

jpeg: decoder parity stack (post-#590)#1
hjanuschka wants to merge 9 commits into
feature/jbrd-box-supportfrom
jpeg-decoder-after-590-stack

Conversation

@hjanuschka

@hjanuschka hjanuschka commented Dec 27, 2025

Copy link
Copy Markdown
Owner

Stacked on libjxl#590 (base: feature/jbrd-box-support).\n\n- Adds standalone JPEG decoder + regression fixtures\n- Progressive scan handling\n- SIMD YCbCr/BGRA and IDCT parity\n- Libjpeg-turbo parity references (scaled + 12-bit)\n\nTests: cargo test -p jxl --features jpeg-reconstruction test_libjpeg_turbo_ -- --nocapture\n\nNotes:\n- Idea related to https://github.com/libjxl/jxl-rs/issues/513\n- This PR is exploratory; not yet sure whether it should be kept or killed

- Implement JpegDecoder for baseline and progressive JPEG decoding
- Add accessor methods: width(), height(), num_components(), is_progressive(), metadata()
- Add extract_metadata() for CXX bridge compatibility
- Add 12 JPEG test files for various formats (grayscale, RGB, progressive, subsampling)
- Add 11 integration tests for JPEG file parsing
- Add extended types for libjpeg-turbo parity (JpegBitDepth, JpegColorSpace, IdctScale)
- Fix shift overflow in JpegBitDepth::max_value()
@hjanuschka hjanuschka closed this Dec 27, 2025
hjanuschka added a commit that referenced this pull request Mar 11, 2026
Kodak #1 now matched (0.0 dB gap), Kodak libjxl#8 within 0.1 dB.
3/7 images better or equal PSNR vs libjxl Squirrel/e3.
hjanuschka added a commit that referenced this pull request Mar 14, 2026
Kodak #1 now matched (0.0 dB gap), Kodak libjxl#8 within 0.1 dB.
3/7 images better or equal PSNR vs libjxl Squirrel/e3.
hjanuschka added a commit that referenced this pull request Apr 28, 2026
Kodak #1 now matched (0.0 dB gap), Kodak libjxl#8 within 0.1 dB.
3/7 images better or equal PSNR vs libjxl Squirrel/e3.
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.

1 participant