CodecCapability class final

What is available for one codec in one direction.

Constructors

CodecCapability({required Codec codec, required CodecDirection direction, required List<BackendCapability> backends})
Builds a capability entry.
const

Properties

availableBackends → List<BackendCapability>
The backends that can be constructed right now.
no setter
backends → List<BackendCapability>
Every backend registered for this codec and direction, best first, available or not. Always non-empty for the twelve production codecs: an empty list would mean the codec is not implemented at all.
final
best → BackendCapability?
The best available backend, or null when nothing can run.
no setter
codec → Codec
The codec this entry describes.
final
direction → CodecDirection
Whether this entry is about encoders or decoders.
final
hardwareAccelerated → bool
true when at least one available backend is known to use dedicated hardware.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasSoftwareFallback → bool
true when at least one available backend is a software fallback.
no setter
isAvailable → bool
true when at least one backend can run right now.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary → String
One-line rendering used by AnyCodec.capabilityReport and the example app.
no setter
unavailableBackends → List<BackendCapability>
The backends that cannot be constructed right now, with their reasons.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited