pub enum HardwareDecoderKind {
VideoToolbox,
MediaCodec,
Vaapi,
Dxva,
WebCodecs,
SoftwareFallback,
}Expand description
Target hardware or software video decode backend identifier.
Variants§
VideoToolbox
Apple VideoToolbox (CVPixelBuffer -> Metal zero-copy texture).
MediaCodec
Android MediaCodec (AHardwareBuffer / SurfaceTexture -> Vulkan/GLES zero-copy).
Vaapi
Linux VA-API / V4L2 (DMA-BUF -> Vulkan/GLES zero-copy).
Dxva
Windows DXVA / D3D11VA (ID3D11Texture2D shared handle -> D3D12/Vulkan zero-copy).
WebCodecs
Browser WebCodecs (VideoFrame -> WebGPU/WebGL zero-copy).
SoftwareFallback
Pure-Rust CPU software decoder writing into a bounded reusable VideoFramePool.
Trait Implementations§
Source§impl Clone for HardwareDecoderKind
impl Clone for HardwareDecoderKind
impl Copy for HardwareDecoderKind
Source§impl Debug for HardwareDecoderKind
impl Debug for HardwareDecoderKind
Source§impl Default for HardwareDecoderKind
impl Default for HardwareDecoderKind
Source§impl<'de> Deserialize<'de> for HardwareDecoderKind
impl<'de> Deserialize<'de> for HardwareDecoderKind
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
impl Eq for HardwareDecoderKind
Source§impl Hash for HardwareDecoderKind
impl Hash for HardwareDecoderKind
Source§impl PartialEq for HardwareDecoderKind
impl PartialEq for HardwareDecoderKind
Source§impl Serialize for HardwareDecoderKind
impl Serialize for HardwareDecoderKind
impl StructuralPartialEq for HardwareDecoderKind
Auto Trait Implementations§
impl Forget for HardwareDecoderKind
impl Freeze for HardwareDecoderKind
impl Move for HardwareDecoderKind
impl RefUnwindSafe for HardwareDecoderKind
impl Send for HardwareDecoderKind
impl Sync for HardwareDecoderKind
impl Unpin for HardwareDecoderKind
impl UnsafeUnpin for HardwareDecoderKind
impl UnwindSafe for HardwareDecoderKind
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