Skip to main content

Crate webp

Crate webp 

Source
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/dec directory.
demux
Translation of libwebp’s src/demux directory.
dsp
Translation of libwebp’s src/dsp directory.
enc
Translation of libwebp’s src/enc directory.
mux
Translation of libwebp’s src/mux directory.
sharpyuv
Translation of libwebp’s top-level sharpyuv directory.
utils
Translation of libwebp’s src/utils directory.
webp
Translation of libwebp’s public headers in src/webp.