pub struct SimpleRateControlConfig {
pub mode: SimpleRateControlMode,
pub fps: f32,
pub resolution: (u32, u32),
pub keyframe_interval: u32,
pub b_frames: u8,
pub scene_change_sensitivity: u8,
}Expand description
Configuration for SimpleRateController.
Fields§
§mode: SimpleRateControlModeRate control algorithm and its parameters.
fps: f32Frames per second of the encoded video.
resolution: (u32, u32)Encoded picture resolution as (width, height) in pixels.
keyframe_interval: u32IDR / keyframe interval in frames.
b_frames: u8Number of B-frames between reference frames.
scene_change_sensitivity: u8Scene-change sensitivity (0 = disabled, 100 = most sensitive).
Implementations§
Trait Implementations§
Source§impl Clone for SimpleRateControlConfig
impl Clone for SimpleRateControlConfig
Source§fn clone(&self) -> SimpleRateControlConfig
fn clone(&self) -> SimpleRateControlConfig
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 moreAuto Trait Implementations§
impl Freeze for SimpleRateControlConfig
impl RefUnwindSafe for SimpleRateControlConfig
impl Send for SimpleRateControlConfig
impl Sync for SimpleRateControlConfig
impl Unpin for SimpleRateControlConfig
impl UnsafeUnpin for SimpleRateControlConfig
impl UnwindSafe for SimpleRateControlConfig
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