pub struct CapabilityReport {
pub schema: &'static str,
pub version: u32,
pub runtime: Runtime,
pub gpu: GpuReport,
pub color: ColorReport,
pub playback: PlaybackReport,
pub decode: Value,
pub encode: Value,
pub features: BTreeMap<String, Feature>,
}Expand description
What a runtime can do.
Fields§
§schema: &'static str§version: u32§runtime: RuntimeWhere the engine runs.
gpu: GpuReportThe GPU it renders with.
color: ColorReportHow it handles color.
playback: PlaybackReportHow its real-time playback behaves.
decode: ValueHow the runtime decodes video: a host-specific description, or
null when decoding is not the runtime’s (the browser’s page does
it).
encode: ValueWhat the runtime encodes: container, codecs, encoders; null when
it is only known at export.
features: BTreeMap<String, Feature>Named features, each available or not, with why not.
Implementations§
Source§impl CapabilityReport
impl CapabilityReport
Sourcepub fn new(runtime: Runtime, renderer: &Renderer) -> Self
pub fn new(runtime: Runtime, renderer: &Renderer) -> Self
The report of renderer running on runtime, with no decode, encode,
or features yet: the host adds its own.
Sourcepub fn cpu(runtime: Runtime, renderer: &CpuRenderer) -> Self
pub fn cpu(runtime: Runtime, renderer: &CpuRenderer) -> Self
The report of renderer, the CPU renderer, running on runtime: its
“GPU” is the CPU, tier A, storing half floats as the GPU’s usual
intermediate.
Sourcepub fn with_feature(self, name: &str, feature: Feature) -> Self
pub fn with_feature(self, name: &str, feature: Feature) -> Self
Records a feature.
Trait Implementations§
Source§impl Clone for CapabilityReport
impl Clone for CapabilityReport
Source§impl Debug for CapabilityReport
impl Debug for CapabilityReport
Source§impl PartialEq for CapabilityReport
impl PartialEq for CapabilityReport
Source§impl Serialize for CapabilityReport
impl Serialize for CapabilityReport
impl StructuralPartialEq for CapabilityReport
Auto Trait Implementations§
impl Freeze for CapabilityReport
impl RefUnwindSafe for CapabilityReport
impl Send for CapabilityReport
impl Sync for CapabilityReport
impl Unpin for CapabilityReport
impl UnsafeUnpin for CapabilityReport
impl UnwindSafe for CapabilityReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more