pub struct TwoPassAllocatorConfig {
pub target_bitrate_bps: u64,
pub frame_rate: f64,
pub gop_size: u32,
pub max_bitrate_ratio: f32,
pub min_qp: u32,
pub max_qp: u32,
}Expand description
Configuration for the second-pass bitrate allocator.
Fields§
§target_bitrate_bps: u64Target average bitrate in bits per second.
frame_rate: f64Output frame rate (frames per second).
gop_size: u32GOP size (number of frames between key frames).
max_bitrate_ratio: f32Maximum bitrate multiplier relative to average.
A value of 2.0 means the peak bitrate may be up to 2× the average.
min_qp: u32Minimum QP value.
max_qp: u32Maximum QP value.
Trait Implementations§
Source§impl Clone for TwoPassAllocatorConfig
impl Clone for TwoPassAllocatorConfig
Source§fn clone(&self) -> TwoPassAllocatorConfig
fn clone(&self) -> TwoPassAllocatorConfig
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 moreSource§impl Debug for TwoPassAllocatorConfig
impl Debug for TwoPassAllocatorConfig
Auto Trait Implementations§
impl Freeze for TwoPassAllocatorConfig
impl RefUnwindSafe for TwoPassAllocatorConfig
impl Send for TwoPassAllocatorConfig
impl Sync for TwoPassAllocatorConfig
impl Unpin for TwoPassAllocatorConfig
impl UnsafeUnpin for TwoPassAllocatorConfig
impl UnwindSafe for TwoPassAllocatorConfig
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