pub enum D3d11NvencCodec {
H264,
H265,
}Available on Windows and crate feature
d3d11 only.Expand description
Which NVENC encoder to open. Both are hardware encoders on the GPU’s
dedicated encode block, so neither carries the GPL/licensing question
crate::elements::VideoCodec’s software encoders document — but both
still have to actually exist in the linked ffmpeg build, and
D3d11NvencEncoder::new fails with
D3d11NvencEncoderError::CodecNotFound (not a panic) if they don’t.
AV1 is deliberately absent: av1_nvenc exists in ffmpeg, but NVENC’s
AV1 encode block only shipped with Ada (RTX 40) and later, so offering
it here would mean a variant that fails at open on a large share of
otherwise-working GPUs. Add it when there is a real requirement and a
machine to verify it on.
Variants§
Trait Implementations§
Source§impl Clone for D3d11NvencCodec
impl Clone for D3d11NvencCodec
Source§fn clone(&self) -> D3d11NvencCodec
fn clone(&self) -> D3d11NvencCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for D3d11NvencCodec
Source§impl Debug for D3d11NvencCodec
impl Debug for D3d11NvencCodec
impl Eq for D3d11NvencCodec
Source§impl PartialEq for D3d11NvencCodec
impl PartialEq for D3d11NvencCodec
impl StructuralPartialEq for D3d11NvencCodec
Auto Trait Implementations§
impl Freeze for D3d11NvencCodec
impl RefUnwindSafe for D3d11NvencCodec
impl Send for D3d11NvencCodec
impl Sync for D3d11NvencCodec
impl Unpin for D3d11NvencCodec
impl UnsafeUnpin for D3d11NvencCodec
impl UnwindSafe for D3d11NvencCodec
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