Skip to main content

Crate djvu_iw44

Crate djvu_iw44 

Source
Expand description

IW44 wavelet image decoder — pure-Rust clean-room implementation (phase 2c).

Implements the IW44 progressive wavelet codec used by DjVu BG44, FG44, and TH44 chunks. Each BG44 chunk may carry one or more slices; the ZP coder state persists across all chunks so that progressive refinement works correctly.

§Key public types

  • Iw44Image — progressive decoder; call Iw44Image::decode_chunk for each BG44/FG44/TH44 chunk, then Iw44Image::to_rgb to obtain an RGB pixmap.
  • Iw44Error — typed error enum (re-exported from this crate).

§Architecture

YCbCr planes are kept separate (y: Vec<i16>, cb: Vec<i16>, cr: Vec<i16>) until to_rgb() is called. This allows future SIMD processing on each plane independently. No interleaved buffers exist inside this module.

Structs§

Iw44Image
Progressive IW44 wavelet image decoder.

Enums§

Iw44Error
IW44 wavelet image decoding errors.