pub enum Hardware {
Prefer,
Require,
Off,
}Expand description
Whether a codec may, must, or must not use dedicated hardware — for decoding and for encoding alike.
Hardware is faster, cooler, and kinder to a laptop battery; software is predictable, identical from one GPU vendor to the next, and the way round a hardware codec that is busy or misbehaving. Either way the codec is the operating system’s for H.264 — Apple’s software H.264 encoder is still Apple’s, licence and all.
Variants§
Prefer
Hardware where the machine has it, software where it does not.
Require
Hardware or nothing: a clear refusal rather than a quiet slow path.
Off
Software throughout.
Trait Implementations§
impl Copy for Hardware
impl Eq for Hardware
impl StructuralPartialEq for Hardware
Auto Trait Implementations§
impl Freeze for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnsafeUnpin for Hardware
impl UnwindSafe for Hardware
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