This adds direct support for decoding pixel data in JPEG 2000, via jpeg2k. jpeg2k lets us pick between linking the reference implementation of OpenJPEG (Cargo feature openjpeg-sys) or a Rust port (Cargo feature openjp2).
A few more changes were made to the Cargo feature set so that downstream crates can be more specific about which via dicom-pixeldata.
For instance, doing cargo install --path toimage would include the Rust port of openjp2, but with the command below, you can build dicom-toimage statically linked with the OpenJPEG reference software.
This adds direct support for decoding pixel data in JPEG 2000, via jpeg2k.
jpeg2k
lets us pick between linking the reference implementation of OpenJPEG (Cargo featureopenjpeg-sys
) or a Rust port (Cargo featureopenjp2
).A few more changes were made to the Cargo feature set so that downstream crates can be more specific about which via
dicom-pixeldata
. For instance, doingcargo install --path toimage
would include the Rust port of openjp2, but with the command below, you can builddicom-toimage
statically linked with the OpenJPEG reference software.Summary
openjp2
andopenjpeg-sys
dicom-pixeldata/native
to default features, so that native implementations can be disabled at will