Expand description
Thin glue over the codec public API, shared by every binary.
Both decode and encode route through the umbrella webpkit crate: decode
inspects the container and handles either VP8L (lossless) or VP8 (lossy)
input, and a single EncodeMode selects the encoder.
Enums§
- Encode
Mode - Which codec (and its knobs)
encodeshould use.
Functions§
- decode
- Decode any still WebP file — lossless (
VP8L) or lossy (VP8) — into anImagewith the requested outputlayout, dispatching on the container. - encode
- Encode an
Imageinto a complete WebP file — lossless or lossy permode— embedding exactly the givenmetadata(an emptyMetadatayields a bareVP8L/VP8file).