pub struct CodecParamSet { /* private fields */ }Expand description
A collection of CodecParams indexed by stream index, representing
all streams present in a container.
Implementations§
Source§impl CodecParamSet
impl CodecParamSet
Sourcepub fn add(&mut self, p: CodecParams)
pub fn add(&mut self, p: CodecParams)
Adds a CodecParams entry to the set.
Sourcepub fn get(&self, index: usize) -> Option<&CodecParams>
pub fn get(&self, index: usize) -> Option<&CodecParams>
Returns a reference to the params at position index, or None.
Sourcepub fn iter(&self) -> impl Iterator<Item = &CodecParams>
pub fn iter(&self) -> impl Iterator<Item = &CodecParams>
Returns an iterator over all params.
Sourcepub fn video_streams(&self) -> impl Iterator<Item = &CodecParams>
pub fn video_streams(&self) -> impl Iterator<Item = &CodecParams>
Returns an iterator over video stream params.
Sourcepub fn audio_streams(&self) -> impl Iterator<Item = &CodecParams>
pub fn audio_streams(&self) -> impl Iterator<Item = &CodecParams>
Returns an iterator over audio stream params.
Sourcepub fn first_video(&self) -> Option<&CodecParams>
pub fn first_video(&self) -> Option<&CodecParams>
Returns the first video stream, if any.
Sourcepub fn first_audio(&self) -> Option<&CodecParams>
pub fn first_audio(&self) -> Option<&CodecParams>
Returns the first audio stream, if any.
Trait Implementations§
Source§impl Clone for CodecParamSet
impl Clone for CodecParamSet
Source§fn clone(&self) -> CodecParamSet
fn clone(&self) -> CodecParamSet
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 CodecParamSet
impl Debug for CodecParamSet
Source§impl Default for CodecParamSet
impl Default for CodecParamSet
Source§fn default() -> CodecParamSet
fn default() -> CodecParamSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodecParamSet
impl RefUnwindSafe for CodecParamSet
impl Send for CodecParamSet
impl Sync for CodecParamSet
impl Unpin for CodecParamSet
impl UnsafeUnpin for CodecParamSet
impl UnwindSafe for CodecParamSet
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