pub struct DecoderOptions {
pub max_frames_in_flight: usize,
pub low_latency: bool,
pub require_hardware: bool,
}Expand description
Runtime policy shared by platform decoders.
Fields§
§max_frames_in_flight: usizeMaximum encoded frames submitted but not yet completed.
low_latency: boolPrefer decoder latency over frame reordering and throughput.
require_hardware: boolRequire hardware where the platform can enforce that distinction.
WebCodecs only exposes a hardware preference, and Android API 26 does not classify the system-selected codec through the NDK API. Those backends request the hardware path but cannot prove which codec the operating system selected.
Trait Implementations§
Source§impl Clone for DecoderOptions
impl Clone for DecoderOptions
Source§fn clone(&self) -> DecoderOptions
fn clone(&self) -> DecoderOptions
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 moreimpl Copy for DecoderOptions
Source§impl Debug for DecoderOptions
impl Debug for DecoderOptions
Source§impl Default for DecoderOptions
impl Default for DecoderOptions
impl Eq for DecoderOptions
Source§impl PartialEq for DecoderOptions
impl PartialEq for DecoderOptions
impl StructuralPartialEq for DecoderOptions
Auto Trait Implementations§
impl Freeze for DecoderOptions
impl RefUnwindSafe for DecoderOptions
impl Send for DecoderOptions
impl Sync for DecoderOptions
impl Unpin for DecoderOptions
impl UnsafeUnpin for DecoderOptions
impl UnwindSafe for DecoderOptions
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