pub struct CodecCapability {
pub codec: VideoCodec,
pub supported: bool,
pub hardware_accelerated: bool,
pub hardware_acceleration_known: bool,
}Expand description
Runtime support reported for one codec.
Fields§
§codec: VideoCodecCodec being described.
supported: boolThe platform can create a decoder for this codec.
hardware_accelerated: boolA hardware decoder is advertised for this codec.
hardware_acceleration_known: boolWhether hardware_accelerated is a definite platform report.
Android API 26 and WebCodecs can express a preference but cannot expose a reliable hardware/software classification, so this is false there.
Trait Implementations§
Source§impl Clone for CodecCapability
impl Clone for CodecCapability
Source§fn clone(&self) -> CodecCapability
fn clone(&self) -> CodecCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodecCapability
Source§impl Debug for CodecCapability
impl Debug for CodecCapability
impl Eq for CodecCapability
Source§impl PartialEq for CodecCapability
impl PartialEq for CodecCapability
impl StructuralPartialEq for CodecCapability
Auto Trait Implementations§
impl Freeze for CodecCapability
impl RefUnwindSafe for CodecCapability
impl Send for CodecCapability
impl Sync for CodecCapability
impl Unpin for CodecCapability
impl UnsafeUnpin for CodecCapability
impl UnwindSafe for CodecCapability
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