pub enum VideoEncoder {
Auto(HardwareCodec),
X264(X264Preset),
Hardware {
codec: HardwareCodec,
preset: HardwarePreset,
},
Custom(ObsVideoEncoderType),
}Expand description
Video encoder configuration
Variants§
Auto(HardwareCodec)
Automatically select an encoder for this codec, preferring hardware and falling back to a software implementation when the current OBS installation has no hardware option.
X264(X264Preset)
x264 software encoder
Hardware
Require a hardware encoder (NVENC/AMF/QSV/etc.); no software fallback is allowed.
Custom(ObsVideoEncoderType)
Custom encoder by type
Trait Implementations§
Source§impl Clone for VideoEncoder
impl Clone for VideoEncoder
Auto Trait Implementations§
impl Forget for VideoEncoder
impl Freeze for VideoEncoder
impl Move for VideoEncoder
impl RefUnwindSafe for VideoEncoder
impl Send for VideoEncoder
impl Sync for VideoEncoder
impl Unpin for VideoEncoder
impl UnsafeUnpin for VideoEncoder
impl UnwindSafe for VideoEncoder
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