AvifDecoder class
Decodes AVIF through the platform's own AVIF decoder (Android 12+, iOS 16+, macOS 13+) — no bundled codec. The native side returns a PNG-encoded first frame, which piksel's engine codec then decodes, so alpha and colour handling match every other format.
On older OS versions (or any decode failure) the pipeline degrades to piksel's normal error path rather than crashing.
Constructors
- AvifDecoder()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
RequestContext ctx, FetchResult fetch) → Future< DecodeResult> -
handles(
FetchResult fetch) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isSupported(
) → Future< bool> - Whether the running OS can decode AVIF. Useful to decide up-front whether to register this decoder at all.