pub struct CodecParams {
pub kind: Option<MediaKind>,
pub codec_id: Option<String>,
pub extradata: Option<Vec<u8>>,
pub bit_rate: usize,
pub convergence_window: usize,
pub delay: usize,
}
Expand description
Possible codec parameters.
Fields§
§kind: Option<MediaKind>
Stream information type.
codec_id: Option<String>
Codec id.
extradata: Option<Vec<u8>>
Codec additional data.
bit_rate: usize
Codec bit-rate.
convergence_window: usize
Number of samples the decoder must process before outputting valid data.
delay: usize
Number of samples the codec needs to process before returning data.
Trait Implementations§
Source§impl Clone for CodecParams
impl Clone for CodecParams
Source§fn clone(&self) -> CodecParams
fn clone(&self) -> CodecParams
Returns a copy 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 CodecParams
impl Debug for CodecParams
Source§impl PartialEq for CodecParams
impl PartialEq for CodecParams
impl Eq for CodecParams
impl StructuralPartialEq for CodecParams
Auto Trait Implementations§
impl Freeze for CodecParams
impl RefUnwindSafe for CodecParams
impl Send for CodecParams
impl Sync for CodecParams
impl Unpin for CodecParams
impl UnwindSafe for CodecParams
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