pub struct VidaptiveConfig { /* private fields */ }Expand description
Tunables for a Vidaptive rate-control session.
Build with VidaptiveConfig::builder
Implementations§
Source§impl VidaptiveConfig
impl VidaptiveConfig
Sourcepub fn builder() -> VidaptiveConfigBuilder
pub fn builder() -> VidaptiveConfigBuilder
Start building a validated configuration.
Sourcepub const fn target_service_time(&self) -> Duration
pub const fn target_service_time(&self) -> Duration
Target frame service time P for the α optimizer.
Sourcepub const fn latency_percentile(&self) -> f64
pub const fn latency_percentile(&self) -> f64
Latency percentile λ for service-time control.
Sourcepub const fn optimizer_window(&self) -> Duration
pub const fn optimizer_window(&self) -> Duration
Sliding window D for α updates.
Sourcepub const fn alpha_ewma(&self) -> f64
pub const fn alpha_ewma(&self) -> f64
EWMA smoothing factor for α.
Sourcepub const fn max_video_bitrate(&self) -> u64
pub const fn max_video_bitrate(&self) -> u64
Stop sending filler above this video bitrate (bits per second).
Sourcepub const fn filler_withhold_before_frame(&self) -> Duration
pub const fn filler_withhold_before_frame(&self) -> Duration
Do not send filler within this interval before the next expected frame.
Sourcepub const fn frame_interval(&self) -> Duration
pub const fn frame_interval(&self) -> Duration
Camera frame interval Δ = 1 / f_max.
Trait Implementations§
Source§impl Clone for VidaptiveConfig
impl Clone for VidaptiveConfig
Source§fn clone(&self) -> VidaptiveConfig
fn clone(&self) -> VidaptiveConfig
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 VidaptiveConfig
impl Debug for VidaptiveConfig
Source§impl Default for VidaptiveConfig
impl Default for VidaptiveConfig
Source§impl PartialEq for VidaptiveConfig
impl PartialEq for VidaptiveConfig
Source§fn eq(&self, other: &VidaptiveConfig) -> bool
fn eq(&self, other: &VidaptiveConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VidaptiveConfig
Auto Trait Implementations§
impl Freeze for VidaptiveConfig
impl RefUnwindSafe for VidaptiveConfig
impl Send for VidaptiveConfig
impl Sync for VidaptiveConfig
impl Unpin for VidaptiveConfig
impl UnsafeUnpin for VidaptiveConfig
impl UnwindSafe for VidaptiveConfig
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