pub struct RateControl { /* private fields */ }Expand description
Frame-level average-bitrate controller.
Implementations§
Source§impl RateControl
impl RateControl
Sourcepub fn new(bitrate: u32, framerate: f32, qp: u8) -> Self
pub fn new(bitrate: u32, framerate: f32, qp: u8) -> Self
Builds a controller for bitrate bits/sec at framerate fps, with qp
as the base/fallback quality. QP is clamped to a sane window around it.
Trait Implementations§
Source§impl Clone for RateControl
impl Clone for RateControl
Source§fn clone(&self) -> RateControl
fn clone(&self) -> RateControl
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 moreAuto Trait Implementations§
impl Freeze for RateControl
impl RefUnwindSafe for RateControl
impl Send for RateControl
impl Sync for RateControl
impl Unpin for RateControl
impl UnsafeUnpin for RateControl
impl UnwindSafe for RateControl
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