Expand description
§Overview
This crate provides a high-level Rust wrapper for decoding and encoding WebP animations. Underlying WebP format processing is handled by C-based libwebp library by Google, which is interfaced through Rust libwebp-sys2 crate
§Usage
Have a look at Decoder and Encoder for use-case specific examples.
Modules§
Structs§
- Anim
Params - Animation parameters
- Decoder
- A decoder for webp animation data
- Decoder
Iterator - An iterator that produces decoded
Frame’s from webp data - Decoder
Options - An options struct for
Decoder - Encoder
- An encoder for creating webp animation
- Encoder
Options - An options struct for
Encoderinstance - Encoding
Config - Encoding configuration. Can be set for
Encoderglobally or per frame - Frame
- An animation frame containing data and metadata produced by
Decoder - Lossy
Encoding Config - Parameters related to lossy compression only
- WebP
Data - A safe wrapper for WebP bytedata. Consider as
&[u8](implementsDeref)
Enums§
- Color
Mode - Color Mode that configures the output type of
DecoderFrame’s - Encoding
Type - Encoding type
- Error
- Error type produced by
webp_animationcode