#[non_exhaustive]pub struct Config {
pub kind: Kind,
pub latency_max: Option<Duration>,
pub resize: Option<Size>,
}Expand description
Decoder configuration.
#[non_exhaustive]: build via Config::new (or default()) and set the
optional fields, so future knobs don’t break callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: KindWhich backend to use.
latency_max: Option<Duration>Upper bound on buffering before a stalled group is skipped. None uses
the moq-mux default (skip aggressively); set it to your playout buffer for
a softer skip. Forwarded to the container consumer’s with_latency.
resize: Option<Size>Ask the decoder to emit frames at this size (both dimensions even) instead
of the stream’s native one. Best effort: a hardware decoder with a
built-in scaler (NVDEC) honors it for free, other backends ignore it.
Check each Frame’s dimensions and scale the remainder
yourself.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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