pub enum H264Preset {
Ultrafast,
Superfast,
Veryfast,
Faster,
Fast,
Medium,
Slow,
Slower,
Veryslow,
Placebo,
}Expand description
libx264 encoding speed/quality preset.
Slower presets produce higher quality at the same bitrate but take longer to encode. Not supported by hardware encoders (NVENC, QSV, etc.) — the option is skipped with a warning when the encoder does not recognise it.
Variants§
Ultrafast
Fastest encoding, lowest quality.
Superfast
Very fast encoding.
Veryfast
Fast encoding.
Faster
Faster than default.
Fast
Slightly faster than default.
Medium
Default preset — balanced speed and quality.
Slow
Slower encoding, better quality.
Slower
Noticeably slower, noticeably better quality.
Veryslow
Very slow, near-optimal quality.
Placebo
Slowest, maximum compression (not recommended for production).
Trait Implementations§
Source§impl Clone for H264Preset
impl Clone for H264Preset
Source§fn clone(&self) -> H264Preset
fn clone(&self) -> H264Preset
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 H264Preset
impl Debug for H264Preset
Source§impl PartialEq for H264Preset
impl PartialEq for H264Preset
impl Copy for H264Preset
impl Eq for H264Preset
impl StructuralPartialEq for H264Preset
Auto Trait Implementations§
impl Freeze for H264Preset
impl RefUnwindSafe for H264Preset
impl Send for H264Preset
impl Sync for H264Preset
impl Unpin for H264Preset
impl UnsafeUnpin for H264Preset
impl UnwindSafe for H264Preset
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