Expand description
Compatibility wrapper for callback-based decode flows used by wml2.
This module intentionally mirrors the shape of the wml2 draw-side API so
the WebP codec core can stay in webp-rust while callers keep a thin
adapter around their own image buffer and metadata model.
Structs§
- Callback
Response - Response returned by compatibility callbacks.
- Decode
Options - Decoder call options.
- Draw
Options - Draw options placeholder kept for shape compatibility.
- Image
Rect - Destination rectangle for a frame.
- Init
Options - Decoder initialization options.
- Next
Options - Per-frame transition options.
- RGBA
- RGBA color value used by animation initialization.
- Terminate
Options - Termination options placeholder kept for shape compatibility.
- Verbose
Options - Verbose options placeholder kept for shape compatibility.
Enums§
- DataMap
- Minimal metadata value type used by the compatibility wrapper.
- Next
Blend - Blend mode for an animation frame.
- Next
Dispose - Disposal mode for an animation frame.
- Next
Option - Frame transition commands.
- Response
Command - Callback response command.
Traits§
- Draw
Callback - Receives decoded image data from compatibility decode entry points.
Functions§
- decode
- Decodes a WebP image using a callback-based interface compatible with
wml2’s draw-side flow.
Type Aliases§
- Metadata
- Metadata map used by the compatibility wrapper.