pub struct H264Config {
pub width: u32,
pub height: u32,
pub coded_width: u32,
pub coded_height: u32,
pub level_idc: u8,
pub qp: i32,
pub entropy: EntropyMode,
pub deblock: bool,
pub aq_strength: f32,
}Expand description
Fixed configuration for the encoder.
Fields§
§width: u32§height: u32§coded_width: u32§coded_height: u32§level_idc: u8§qp: i32§entropy: EntropyModeEntropy coder for the compressed path. I_PCM always uses CAVLC.
deblock: boolRun the in-loop deblocking filter. On by default for the compressed
path; the I_PCM path codes at qP = 0 where every threshold is zero
and the filter is a no-op either way.
aq_strength: f32Adaptive-quantization strength, in QP steps per octave of macroblock
variance. 0.0 disables it and pins every macroblock to the slice QP.
Off by default: measured on photographic content it costs 0.15-0.35 VMAF
at matched size (see docs/codec-benchmark.md). Negative values invert
the assignment — more bits on detail rather than less — which is the
control that measurement needs.
Implementations§
Trait Implementations§
Source§impl Clone for H264Config
impl Clone for H264Config
impl Copy for H264Config
Auto Trait Implementations§
impl Forget for H264Config
impl Freeze for H264Config
impl Move for H264Config
impl RefUnwindSafe for H264Config
impl Send for H264Config
impl Sync for H264Config
impl Unpin for H264Config
impl UnsafeUnpin for H264Config
impl UnwindSafe for H264Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more