pub enum HardwareEncodeBackend {
Vulkan,
VideoToolbox,
D3D12Va,
}Expand description
The native API a hardware encode session drives.
Variants§
Vulkan
FFmpeg’s Vulkan video encoders on the renderer’s Vulkan device.
VideoToolbox
FFmpeg’s VideoToolbox encoders reading IOSurfaces the renderer’s Metal device draws.
D3D12Va
FFmpeg’s D3D12 Video encoders on the renderer’s D3D12 device.
Implementations§
Source§impl HardwareEncodeBackend
impl HardwareEncodeBackend
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Stable identifier used by capability reports and export results.
Sourcepub fn of_gpu_frames_only_encoder(encoder: &str) -> Option<Self>
pub fn of_gpu_frames_only_encoder(encoder: &str) -> Option<Self>
The backend of encoder when it is one of this OS’s encoders that take GPU frames only
(h264_vulkan on Linux, h264_d3d12va on Windows).
Sourcepub const fn device_name(self) -> &'static str
pub const fn device_name(self) -> &'static str
The shared device its sessions open on, as messages name it.
Trait Implementations§
Source§impl Clone for HardwareEncodeBackend
impl Clone for HardwareEncodeBackend
impl Copy for HardwareEncodeBackend
Source§impl Debug for HardwareEncodeBackend
impl Debug for HardwareEncodeBackend
impl Eq for HardwareEncodeBackend
Source§impl PartialEq for HardwareEncodeBackend
impl PartialEq for HardwareEncodeBackend
impl StructuralPartialEq for HardwareEncodeBackend
Auto Trait Implementations§
impl Forget for HardwareEncodeBackend
impl Freeze for HardwareEncodeBackend
impl Move for HardwareEncodeBackend
impl RefUnwindSafe for HardwareEncodeBackend
impl Send for HardwareEncodeBackend
impl Sync for HardwareEncodeBackend
impl Unpin for HardwareEncodeBackend
impl UnsafeUnpin for HardwareEncodeBackend
impl UnwindSafe for HardwareEncodeBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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