pub enum Acceleration {
Software,
Hardware,
}Expand description
Whether an element’s path is hardware-accelerated. This is independent of
where the output frames land (CapabilityDescriptor::output_memory): an
ffmpeg VA-API decoder is hardware yet downloads to System, while a CPU
decoder is software and System. Auto-plug can prefer / avoid hardware per
request (throughput vs power) separately from the memory domain.
Variants§
Software
CPU / pure-software path (the default).
Hardware
Fixed-function / GPU / platform hardware decode or encode.
Trait Implementations§
Source§impl Clone for Acceleration
impl Clone for Acceleration
Source§fn clone(&self) -> Acceleration
fn clone(&self) -> Acceleration
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 Acceleration
Source§impl Debug for Acceleration
impl Debug for Acceleration
Source§impl Default for Acceleration
impl Default for Acceleration
Source§fn default() -> Acceleration
fn default() -> Acceleration
Returns the “default value” for a type. Read more
impl Eq for Acceleration
Source§impl PartialEq for Acceleration
impl PartialEq for Acceleration
impl StructuralPartialEq for Acceleration
Auto Trait Implementations§
impl Freeze for Acceleration
impl RefUnwindSafe for Acceleration
impl Send for Acceleration
impl Sync for Acceleration
impl Unpin for Acceleration
impl UnsafeUnpin for Acceleration
impl UnwindSafe for Acceleration
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