#[repr(transparent)]pub struct AVMediaType(pub i32);
Expand description
Represents the different media types supported by FFmpeg.
See FFmpeg’s AVMediaType
in the official documentation:
https://ffmpeg.org/doxygen/trunk/group__lavu__misc.html#ga9a84bba4713dfced21a1a56163be1f48
Tuple Fields§
§0: i32
Implementations§
Source§impl AVMediaType
impl AVMediaType
Sourcepub const Unknown: Self
pub const Unknown: Self
Unknown media type. Used when the type cannot be determined.
Corresponds to AVMEDIA_TYPE_UNKNOWN
.
Sourcepub const Video: Self
pub const Video: Self
Video media type. Used for visual content such as movies or streams.
Corresponds to AVMEDIA_TYPE_VIDEO
.
Sourcepub const Audio: Self
pub const Audio: Self
Audio media type. Represents sound or music data.
Corresponds to AVMEDIA_TYPE_AUDIO
.
Sourcepub const Data: Self
pub const Data: Self
Data media type. Typically used for supplementary or non-media data.
Corresponds to AVMEDIA_TYPE_DATA
.
Sourcepub const Subtitle: Self
pub const Subtitle: Self
Subtitle media type. Represents textual or graphical subtitles.
Corresponds to AVMEDIA_TYPE_SUBTITLE
.
Sourcepub const Attachment: Self
pub const Attachment: Self
Attachment media type. Used for files attached to a media container (e.g., fonts for subtitles).
Corresponds to AVMEDIA_TYPE_ATTACHMENT
.
Trait Implementations§
Source§impl Clone for AVMediaType
impl Clone for AVMediaType
Source§fn clone(&self) -> AVMediaType
fn clone(&self) -> AVMediaType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more