Expand description
Inspect, decode, resize, and encode animated WebP images.
The crate exposes lightweight frame-duration metadata inspection, sequential
full-canvas RGBA decoding, reusable animation-frame resizing, and sequential
animated-WebP encoding. AnimationDecoder::frame_durations reads stored
durations without decoding pixels or advancing the decoder, while
AnimationDecoder::reset reuses a decoder from the start of its sequence.
Frame durations are passed through without playback-time normalization.
The high-level transcode_animated_webp function composes those stages for
one stored animation sequence. Applications that need different resource,
compression, or output-selection policies can use the lower-level types
directly.
Re-exports§
pub use codec::decode::AnimationDecoder;pub use codec::decode::DecodeError;pub use codec::decode::DecodeLimits;pub use codec::encode::AnimationEncoder;pub use codec::encode::AnimationEncoderOptions;pub use codec::encode::AnimationMuxOverrides;pub use codec::encode::EncodeError;pub use codec::encode::EncoderConfigOverrides;pub use inspect::InspectError;pub use inspect::InspectLimits;pub use inspect::WebpKind;pub use inspect::inspect;pub use inspect::is_animated_webp_fast;pub use model::AnimationFrame;pub use model::AnimationInfo;pub use model::BackgroundColor;pub use model::CanvasSize;pub use model::LoopCount;pub use model::StaticWebpInfo;pub use resize::ResizeError;pub use resize::ResizeFilter;pub use resize::ResizeOptions;pub use resize::ResizePlan;pub use resize::ResizeWorkspace;pub use transcode::AnimationTranscodeOptions;pub use transcode::TranscodeError;pub use transcode::TranscodedAnimation;pub use transcode::transcode_animated_webp;
Modules§
- codec
- Lower-level WebP animation decoder and encoder primitives. Lower-level WebP animation codec primitives.
- inspect
- WebP container classification and metadata inspection.
- model
- Shared data types describing canvases, frames, and animation metadata.
- resize
- Reusable aspect-ratio-preserving RGBA resize plans and workspaces.
- transcode
- The sequential decode-resize-encode convenience pipeline.