Primary crate
The public crate is j2k. Lower-level crates exist for native codec internals, shared contracts, JPEG input, and GPU acceleration.
cargo add j2k
The public crate is j2k. Lower-level crates exist for native codec internals, shared contracts, JPEG input, and GPU acceleration.
cargo add j2k
J2K exposes safe Rust APIs for decode, encode, component planes, row streaming, tile-batch decode, scaled region decode, native wavelet-band extraction, scratch pools, backend requests, and compressed-payload passthrough checks.
Raw J2K/J2C support covers Part 1 still-image codestream parse, inspect, decode, encode, signed samples, high-bit samples, component counts, ROI, progression, tile parts, packet markers, and precinct/layer behavior tracked by the support matrix.
JP2 still-image wrapping covers IHDR, COLR, BPCC, PCLR, CMAP, CDEF, ICC preservation paths, and codestream-brand validation for standard Part 1 still-image files.
JPX and JPEG 2000 Part 2 extensions are not supported, except where ordinary JP2/JPH decoding needs them.
GPU acceleration, Metal JPEG2000 Rust, CUDA JPEG2000 Rust, and HTJ2K Rust.