Skip to main content

Module compat

Module compat 

Source
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§

CallbackResponse
Response returned by compatibility callbacks.
DecodeOptions
Decoder call options.
DrawOptions
Draw options placeholder kept for shape compatibility.
ImageRect
Destination rectangle for a frame.
InitOptions
Decoder initialization options.
NextOptions
Per-frame transition options.
RGBA
RGBA color value used by animation initialization.
TerminateOptions
Termination options placeholder kept for shape compatibility.
VerboseOptions
Verbose options placeholder kept for shape compatibility.

Enums§

DataMap
Minimal metadata value type used by the compatibility wrapper.
NextBlend
Blend mode for an animation frame.
NextDispose
Disposal mode for an animation frame.
NextOption
Frame transition commands.
ResponseCommand
Callback response command.

Traits§

DrawCallback
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.