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.
Auto Trait Implementations§
impl Freeze for CodecParameters
impl RefUnwindSafe for CodecParameters
impl Send for CodecParameters
impl Sync for CodecParameters
impl Unpin 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