pub enum HardwareAccelerationMode {
Auto,
Software,
Specific(HardwareDeviceType),
}Expand description
Hardware acceleration mode for video decoding.
Used with ExtractOptions::with_hardware_acceleration
to control whether and how hardware decoding is attempted.
§Example
use unbundle::{ExtractOptions, FrameRange, MediaFile};
#[cfg(feature = "hardware")]
use unbundle::HardwareAccelerationMode;
let config = ExtractOptions::new();
#[cfg(feature = "hardware")]
let config = config.with_hardware_acceleration(HardwareAccelerationMode::Auto);Variants§
Auto
Automatically detect the best available hardware decoder. Falls back to software decoding if no hardware is available.
Software
Force software decoding — no hardware acceleration.
Specific(HardwareDeviceType)
Use a specific hardware device type. Falls back to software if the requested device is not available.
Trait Implementations§
Source§impl Clone for HardwareAccelerationMode
impl Clone for HardwareAccelerationMode
Source§fn clone(&self) -> HardwareAccelerationMode
fn clone(&self) -> HardwareAccelerationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareAccelerationMode
impl Debug for HardwareAccelerationMode
Source§impl Default for HardwareAccelerationMode
impl Default for HardwareAccelerationMode
Source§fn default() -> HardwareAccelerationMode
fn default() -> HardwareAccelerationMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for HardwareAccelerationMode
impl PartialEq for HardwareAccelerationMode
impl Copy for HardwareAccelerationMode
impl Eq for HardwareAccelerationMode
impl StructuralPartialEq for HardwareAccelerationMode
Auto Trait Implementations§
impl Freeze for HardwareAccelerationMode
impl RefUnwindSafe for HardwareAccelerationMode
impl Send for HardwareAccelerationMode
impl Sync for HardwareAccelerationMode
impl Unpin for HardwareAccelerationMode
impl UnwindSafe for HardwareAccelerationMode
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().