pub struct CodecParameters {Show 17 fields
pub codec_id: CodecId,
pub media_type: MediaType,
pub extradata: Vec<u8>,
pub sample_rate: u32,
pub sample_format: SampleFormat,
pub channel_layout: ChannelLayout,
pub width: u32,
pub height: u32,
pub pixel_format: PixelFormat,
pub bit_rate: i64,
pub time_base: Rational,
pub block_align: u32,
pub bits_per_coded_sample: u32,
pub bits_per_raw_sample: u32,
pub thread_count: u32,
pub codec_tag: u32,
pub options: CodecOptions,
}Expand description
Parameters needed to open a decoder, extracted from stream info.
Fields§
§codec_id: CodecId§media_type: MediaType§extradata: Vec<u8>§sample_rate: u32§sample_format: SampleFormat§channel_layout: ChannelLayout§width: u32§height: u32§pixel_format: PixelFormat§bit_rate: i64§time_base: Rational§block_align: u32§bits_per_coded_sample: u32§bits_per_raw_sample: u32§thread_count: u32Number of threads for decoding. 0 = auto (let the runtime decide).
codec_tag: u32Codec tag (fourcc) for disambiguation when codec_id alone is ambiguous. 0 = unset.
options: CodecOptionsCodec-private options (string key-value pairs).
Implementations§
Trait Implementations§
Source§impl Clone for CodecParameters
impl Clone for CodecParameters
Source§fn clone(&self) -> CodecParameters
fn clone(&self) -> CodecParameters
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 moreAuto Trait Implementations§
impl Freeze for CodecParameters
impl RefUnwindSafe for CodecParameters
impl Send for CodecParameters
impl Sync for CodecParameters
impl Unpin for CodecParameters
impl UnsafeUnpin for CodecParameters
impl UnwindSafe for CodecParameters
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