pub enum HwAccelType {
None,
Nvenc,
Qsv,
Amd,
VideoToolbox,
Vulkan,
D3d11,
Vaapi,
Vdpau,
}Expand description
Hardware acceleration types supported.
Variants§
None
No hardware acceleration.
Nvenc
NVIDIA NVENC (CUDA).
Qsv
Intel Quick Sync Video.
Amd
AMD VCE/VCN.
VideoToolbox
Apple VideoToolbox.
Vulkan
Vulkan acceleration.
D3d11
Direct3D 11.
Vaapi
VAAPI (Linux).
Vdpau
VDPAU (Linux, legacy).
Implementations§
Source§impl HwAccelType
impl HwAccelType
Sourcepub fn platform_name(self) -> &'static str
pub fn platform_name(self) -> &'static str
Gets the platform name.
Sourcepub fn is_available(self) -> bool
pub fn is_available(self) -> bool
Checks if this acceleration type is available on the current platform.
Sourcepub fn supported_codecs(self) -> Vec<&'static str>
pub fn supported_codecs(self) -> Vec<&'static str>
Gets supported codecs for this acceleration type.
Sourcepub fn encoder_name(self, codec: &str) -> Option<String>
pub fn encoder_name(self, codec: &str) -> Option<String>
Gets the encoder name for a given codec.
Trait Implementations§
Source§impl Clone for HwAccelType
impl Clone for HwAccelType
Source§fn clone(&self) -> HwAccelType
fn clone(&self) -> HwAccelType
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 HwAccelType
impl Debug for HwAccelType
Source§impl<'de> Deserialize<'de> for HwAccelType
impl<'de> Deserialize<'de> for HwAccelType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HwAccelType
impl PartialEq for HwAccelType
Source§impl Serialize for HwAccelType
impl Serialize for HwAccelType
impl Copy for HwAccelType
impl Eq for HwAccelType
impl StructuralPartialEq for HwAccelType
Auto Trait Implementations§
impl Freeze for HwAccelType
impl RefUnwindSafe for HwAccelType
impl Send for HwAccelType
impl Sync for HwAccelType
impl Unpin for HwAccelType
impl UnsafeUnpin for HwAccelType
impl UnwindSafe for HwAccelType
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