Skip to content

[pixeldata] Add shortcut transcode paths depending on edge cases#634

Merged
Enet4 merged 3 commits intomasterfrom
imp/pixeldata/transcode-shortcut
Mar 10, 2025
Merged

[pixeldata] Add shortcut transcode paths depending on edge cases#634
Enet4 merged 3 commits intomasterfrom
imp/pixeldata/transcode-shortcut

Conversation

@Enet4
Copy link
Copy Markdown
Owner

@Enet4 Enet4 commented Feb 14, 2025

Summary

  • Let JPEG XL encoders grab pixel data in JPEG baseline directly, and let JPEG XL recompression decoder decode to JPEG baseline directly.
    • It can be beneficial to said encoders and decoders
    • It will still fall back to decoding and encoding if the pixel data writer raises a NotNative error
  • Refactor transcoder code a bit to reduce redundancy

- let JPEG XL encoders grab pixel data in JPEG baseline directly,
  which can be beneficial to said encoders
- refactor transcoder a bit to reduce redundancy
@Enet4 Enet4 added enhancement A-lib Area: library C-pixeldata Crate: dicom-pixeldata C-transcode labels Feb 14, 2025
- add also JPEG XL recompression to JPEG, since it can be a special lossless conversion
- use update_meta so that the information group length is updated
@Enet4 Enet4 merged commit 854f247 into master Mar 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library C-pixeldata Crate: dicom-pixeldata C-transcode enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant