Expand description
This crate provides provides functionality for encoding and decoding images from or into the webp format. It is implemented as a safe wrapper around the libwebp-sys crate. Currently only a subset of the features supported by libwebp are available. The simple encoding and decoding apis are implemented which use the default configuration of libwebp.
Structs§
- Anim
Decoder - Anim
Encoder - Anim
Frame - Bitstream
Features - A wrapper around libwebp-sys::WebPBitstreamFeatures which allows to get information about the image.
- Decode
Anim Image - Decoder
- A decoder for WebP images. It uses the default configuration of libwebp. Currently, animated images are not supported.
- Encoder
- An encoder for WebP images. It uses the default configuration of libwebp.
- WebP
Config - WebP
Image - This struct represents a decoded image. Its data contents can be accessed through the Deref and DerefMut traits. It is also possible to create an image::DynamicImage from this struct.
- WebP
Memory - This struct represents a safe wrapper around memory owned by libwebp. Its data contents can be accessed through the Deref and DerefMut traits.
Enums§
- Anim
Encode Error - Bitstream
Format - The format of the image bitstream which is either lossy, lossless or something else.
- Pixel
Layout - Describes the pixel layout (the order of the color channels) of an image.
- WebP
Encoding Error