Struct ac_ffmpeg::codec::AudioCodecParameters
source · pub struct AudioCodecParameters { /* private fields */ }
Expand description
Audio codec parameters.
Implementations§
source§impl AudioCodecParameters
impl AudioCodecParameters
sourcepub fn builder(codec: &str) -> Result<AudioCodecParametersBuilder, Error>
pub fn builder(codec: &str) -> Result<AudioCodecParametersBuilder, Error>
Get builder for audio codec parameters.
sourcepub fn decoder_name(&self) -> Option<&'static str>
pub fn decoder_name(&self) -> Option<&'static str>
Get name of the decoder that is able to decode this codec or None if the decoder is not available.
sourcepub fn encoder_name(&self) -> Option<&'static str>
pub fn encoder_name(&self) -> Option<&'static str>
Get name of the encoder that is able to produce encoding of this codec or None if the encoder is not available.
sourcepub fn sample_format(&self) -> SampleFormat
pub fn sample_format(&self) -> SampleFormat
Get frame sample format.
sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Get sampling rate.
sourcepub fn channel_layout(&self) -> &ChannelLayoutRef
pub fn channel_layout(&self) -> &ChannelLayoutRef
Get channel layout.
Trait Implementations§
source§impl Clone for AudioCodecParameters
impl Clone for AudioCodecParameters
source§fn clone(&self) -> AudioCodecParameters
fn clone(&self) -> AudioCodecParameters
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 From<AudioCodecParameters> for AudioCodecParametersBuilder
impl From<AudioCodecParameters> for AudioCodecParametersBuilder
source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.
source§impl From<AudioCodecParameters> for CodecParameters
impl From<AudioCodecParameters> for CodecParameters
source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.