Backend enum

Which subsystem performed (or could perform) the work.

The raw values are the ANYCODEC_BACKEND_* constants of the C ABI. The WebCodecs entry is the one that never appears in a native report: on the web it is the only implementation, and it lives in the Dart runtime rather than in the Rust core.

Inheritance
Available extensions

Values

mediaCodec → const Backend

Android AMediaCodec.

const Backend(0, 'mediacodec')
mediaFoundation → const Backend

Windows Media Foundation.

const Backend(1, 'mediafoundation')
videoToolbox → const Backend

Apple VideoToolbox.

const Backend(2, 'videotoolbox')
audioToolbox → const Backend

Apple AudioToolbox.

const Backend(3, 'audiotoolbox')
gStreamer → const Backend

Linux GStreamer.

const Backend(4, 'gstreamer')
webCodecs → const Backend

Browser WebCodecs.

const Backend(5, 'webcodecs')
rust → const Backend

Pure-Rust software codec.

const Backend(6, 'rust')
ffmpeg → const Backend

Runtime-loaded libavcodec.

const Backend(7, 'ffmpeg')
external → const Backend

Application-supplied backend.

const Backend(8, 'external')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isHardwareCapable → bool
true when this backend can run on dedicated hardware.
no setter
isPlatform → bool
true for the platform media frameworks (as opposed to Backend.rust, Backend.ffmpeg and Backend.external).
no setter
isSoftware → bool
true when this backend is a software fallback rather than a platform framework.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
raw → int
The ANYCODEC_BACKEND_* value used by the C ABI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String
Stable lower-case token, identical to the Rust BackendKind::name.
final

Methods

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

fromRaw(int raw) → Backend?
The backend whose ABI identifier is raw, or null when unknown.

Constants

values → const List<Backend>
A constant List of the values in this enum, in order of their declaration.