pub struct H264Options {
pub profile: H264Profile,
pub level: Option<u32>,
pub bframes: u32,
pub gop_size: u32,
pub refs: u32,
pub preset: Option<H264Preset>,
pub tune: Option<H264Tune>,
}Expand description
H.264 (AVC) per-codec options.
Fields§
§profile: H264ProfileEncoding profile.
level: Option<u32>Encoding level as an integer (e.g. 31 = 3.1, 40 = 4.0, 51 = 5.1).
None leaves the encoder default.
bframes: u32Maximum consecutive B-frames (0–16).
gop_size: u32GOP size: number of frames between keyframes.
refs: u32Number of reference frames.
preset: Option<H264Preset>libx264 encoding speed/quality preset.
Overrides the global Preset when set. None falls
back to whatever the builder’s .preset() selector chose.
Hardware encoders do not support libx264 presets — the option is
silently skipped with a warn! log when unsupported.
tune: Option<H264Tune>libx264 perceptual tuning parameter.
None leaves the encoder default. Hardware encoders ignore this
option (logged as a warning and skipped).
Trait Implementations§
Source§impl Clone for H264Options
impl Clone for H264Options
Source§fn clone(&self) -> H264Options
fn clone(&self) -> H264Options
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 H264Options
impl Debug for H264Options
Auto Trait Implementations§
impl Freeze for H264Options
impl RefUnwindSafe for H264Options
impl Send for H264Options
impl Sync for H264Options
impl Unpin for H264Options
impl UnsafeUnpin for H264Options
impl UnwindSafe for H264Options
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