Expand description
A mechanical Rust port of libwebp v1.6.0, the WebP reference implementation.
The modules mirror the upstream source tree: one module per upstream C file,
with the same name, and translated functions carry // upstream: references
to the C function they translate. See docs/PORTING.md for the porting
contract; a module that holds only its provenance header has not been
ported yet, and each module’s documentation names its deviations from
upstream.
Ordinary builds compile and link no C. The C ABI export in abi is the
only module that may contain unsafe code (ADR 0004 and ADR 0005). The safe
Rust API in api wraps the translation for Rust callers (ADR 0006).
Modules§
- abi
- C ABI export of libwebp’s public headers.
- api
- Safe Rust API over the translation, separate from the C ABI in
crate::abi. - dec
- Translation of libwebp’s
src/decdirectory. - demux
- Translation of libwebp’s
src/demuxdirectory. - dsp
- Translation of libwebp’s
src/dspdirectory. - enc
- Translation of libwebp’s
src/encdirectory. - mux
- Translation of libwebp’s
src/muxdirectory. - sharpyuv
- Translation of libwebp’s top-level
sharpyuvdirectory. - utils
- Translation of libwebp’s
src/utilsdirectory. - webp
- Translation of libwebp’s public headers in
src/webp.