#[non_exhaustive]pub enum EncodeBackend {
VideoToolbox,
Nvenc,
Vaapi,
Native,
}Expand description
Which encoder an Mp4Encoder is using.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VideoToolbox
Apple’s hardware HEVC encoder. macOS with the videotoolbox feature.
Nvenc
An NVIDIA GPU’s NVENC engine. Linux and Windows with the nvidia
feature, on a machine with the driver.
Vaapi
A VA driver’s HEVC encoder (AMD, Intel). Linux with the vaapi
feature, on a machine with libva and a driver that encodes.
Native
threers’ own all-intra HEVC encoder: pure Rust, every platform, and
spread across cores with the parallel feature.
Implementations§
Source§impl EncodeBackend
impl EncodeBackend
Sourcepub const HARDWARE: [EncodeBackend; 3]
pub const HARDWARE: [EncodeBackend; 3]
The hardware backends, in the order Mp4Encoder::new tries them.
Sourcepub fn preferred() -> EncodeBackend
pub fn preferred() -> EncodeBackend
The backend Mp4Encoder::new tries first.
Trait Implementations§
Source§impl Clone for EncodeBackend
impl Clone for EncodeBackend
impl Copy for EncodeBackend
Source§impl Debug for EncodeBackend
impl Debug for EncodeBackend
impl Eq for EncodeBackend
Source§impl PartialEq for EncodeBackend
impl PartialEq for EncodeBackend
impl StructuralPartialEq for EncodeBackend
Auto Trait Implementations§
impl Forget for EncodeBackend
impl Freeze for EncodeBackend
impl Move for EncodeBackend
impl RefUnwindSafe for EncodeBackend
impl Send for EncodeBackend
impl Sync for EncodeBackend
impl Unpin for EncodeBackend
impl UnsafeUnpin for EncodeBackend
impl UnwindSafe for EncodeBackend
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 more