Expand description
Safe JPEG-XR decode, encode, and transcode API backed by a faithful Rust translation of JXRLib.
Structs§
Enums§
- BitDepth
- Channel
Order - Color
Format - Encoder
Color Format - Error
- Pixel
Interpretation - Sample
Format - WmpError
- Crate-wide error type: the idiomatic replacement for BOTH C error families — the
glue/stream
WMP_err*codes (ERR/int,windowsmediaphoto.h) and the codecERR_CODEstatus (ICERR_OK/ICERR_ERROR). Every function whose original C returned one of those integer codes returnsResult<T, WmpError>: success (WMP_errSuccess/ICERR_OK, both0) maps toOk(...), and each failure code maps to the matching variant. The generic codec failureICERR_ERROR(==WMP_errFail, both-1) isWmpError::Fail; where the cause is known, a more specific variant is used.
Functions§
- decode_
bytes - Decodes an already-loaded JPEG-XR buffer without copying the input bytes.
- decode_
file - decode_
reader - encode_
to_ path - encode_
to_ vec - encode_
to_ writer - transcode_
bytes_ to_ vec - transcode_
file_ to_ path - transcode_
reader_ to_ writer