pub enum Backend {
VideoToolbox,
Vaapi,
Cuda,
D3d11va,
}Expand description
Hardware decoding backend.
hwdecode only manages hardware decoders — software fallback is
out of scope. If no backend in [probe_order] for the current platform
can decode a stream, crate::VideoDecoder::open returns
crate::Error::AllBackendsFailed and the caller decides how to fall
back (e.g. by opening an ffmpeg::decoder::Video directly).
Variants§
VideoToolbox
Apple VideoToolbox (macOS, iOS, iPadOS, tvOS, visionOS).
Vaapi
Linux Video Acceleration API (Intel / AMD GPUs).
Cuda
NVIDIA NVDEC via CUDA (Linux / Windows on NVIDIA hardware).
D3d11va
Microsoft Direct3D 11 Video Acceleration (Windows).
Implementations§
Source§impl Backend
impl Backend
Sourcepub const fn is_video_toolbox(&self) -> bool
pub const fn is_video_toolbox(&self) -> bool
Returns true if this value is of type VideoToolbox. Returns false otherwise
Sourcepub const fn is_vaapi(&self) -> bool
pub const fn is_vaapi(&self) -> bool
Returns true if this value is of type Vaapi. Returns false otherwise
Sourcepub const fn is_cuda(&self) -> bool
pub const fn is_cuda(&self) -> bool
Returns true if this value is of type Cuda. Returns false otherwise
Sourcepub const fn is_d_3_d_11_va(&self) -> bool
pub const fn is_d_3_d_11_va(&self) -> bool
Returns true if this value is of type D3d11va. Returns false otherwise