Struct ac_ffmpeg::codec::CodecParameters
source · pub struct CodecParameters { /* private fields */ }
Expand description
Codec parameters.
Implementations§
source§impl CodecParameters
impl CodecParameters
sourcepub fn is_audio_codec(&self) -> bool
pub fn is_audio_codec(&self) -> bool
Check if these codec parameters are for an audio codec.
sourcepub fn is_video_codec(&self) -> bool
pub fn is_video_codec(&self) -> bool
Check if these codec parameters are for a video codec.
sourcepub fn is_subtitle_codec(&self) -> bool
pub fn is_subtitle_codec(&self) -> bool
Check if these codec parameters are for a subtitle codec.
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 as_audio_codec_parameters(&self) -> Option<&AudioCodecParameters>
pub fn as_audio_codec_parameters(&self) -> Option<&AudioCodecParameters>
Get reference to audio codec parameters (if possible).
sourcepub fn as_video_codec_parameters(&self) -> Option<&VideoCodecParameters>
pub fn as_video_codec_parameters(&self) -> Option<&VideoCodecParameters>
Get reference to video codec parameters (if possible).
sourcepub fn as_subtitle_codec_parameters(&self) -> Option<&SubtitleCodecParameters>
pub fn as_subtitle_codec_parameters(&self) -> Option<&SubtitleCodecParameters>
Get reference to subtitle codec parameters (if possible).
sourcepub fn into_audio_codec_parameters(self) -> Option<AudioCodecParameters>
pub fn into_audio_codec_parameters(self) -> Option<AudioCodecParameters>
Convert this object into audio codec parameters (if possible).
sourcepub fn into_video_codec_parameters(self) -> Option<VideoCodecParameters>
pub fn into_video_codec_parameters(self) -> Option<VideoCodecParameters>
Convert this object into video codec parameters (if possible).
sourcepub fn into_subtitle_codec_parameters(self) -> Option<SubtitleCodecParameters>
pub fn into_subtitle_codec_parameters(self) -> Option<SubtitleCodecParameters>
Convert this object into subtitle codec parameters (if possible).
Trait Implementations§
source§impl Clone for CodecParameters
impl Clone for CodecParameters
source§fn clone(&self) -> CodecParameters
fn clone(&self) -> CodecParameters
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 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.
source§impl From<SubtitleCodecParameters> for CodecParameters
impl From<SubtitleCodecParameters> for CodecParameters
source§fn from(params: SubtitleCodecParameters) -> Self
fn from(params: SubtitleCodecParameters) -> Self
Converts to this type from the input type.
source§impl From<VideoCodecParameters> for CodecParameters
impl From<VideoCodecParameters> for CodecParameters
source§fn from(params: VideoCodecParameters) -> Self
fn from(params: VideoCodecParameters) -> Self
Converts to this type from the input type.