pub struct DecoderConfig {
pub codec: CodecId,
pub width: u32,
pub height: u32,
pub threads: u32,
pub flags: DecoderFlags,
}Expand description
The configuration for a new decoder. You must pass this to
Decoder::new().
Fields§
§codec: CodecIdThe codec to initialize in the decoder.
width: u32The initial width of the decoder in pixels. Please note that VPx streams can change resolution dynamically, so this is only an initial hint to the decoder and you should look at the decoded images to follow a potential resolution change.
height: u32The initial height of the decoder in pixels. Please note that VPx streams can change resolution dynamically, so this is only an initial hint to the decoder and you should look at the decoded images to follow a potential resolution change.
threads: u32Maximum number of threads to use, default 1. Zero is ignored and treated as 1.
flags: DecoderFlagsFlags to set on the decoder.
Implementations§
Trait Implementations§
Source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
Source§fn clone(&self) -> DecoderConfig
fn clone(&self) -> DecoderConfig
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 moreSource§impl Debug for DecoderConfig
impl Debug for DecoderConfig
Source§impl Hash for DecoderConfig
impl Hash for DecoderConfig
Source§impl Ord for DecoderConfig
impl Ord for DecoderConfig
Source§fn cmp(&self, other: &DecoderConfig) -> Ordering
fn cmp(&self, other: &DecoderConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DecoderConfig
impl PartialEq for DecoderConfig
Source§impl PartialOrd for DecoderConfig
impl PartialOrd for DecoderConfig
impl Copy for DecoderConfig
impl Eq for DecoderConfig
impl StructuralPartialEq for DecoderConfig
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl Send for DecoderConfig
impl Sync for DecoderConfig
impl Unpin for DecoderConfig
impl UnwindSafe for DecoderConfig
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