pub enum StreamType {
Show 17 variants
Mpeg2Video,
AvcVideo,
HevcVideo,
Vc1Video,
LpcmAudio,
Ac3Audio,
DtsAudio,
TruehdAudio,
EAc3Audio,
DtsHdAudio,
DtsHdMaAudio,
EAc3SecondaryAudio,
DtsHdSecondaryAudio,
PgsSubtitle,
IgsInteractive,
TextSubtitle,
Other(u8),
}Expand description
One elementary-stream codec class.
Variants§
Mpeg2Video
0x02 ISO/IEC 13818-2 (MPEG-2 video).
AvcVideo
0x1B ITU-T H.264 / ISO/IEC 14496-10 (AVC).
HevcVideo
0x24 ITU-T H.265 / ISO/IEC 23008-2 (HEVC).
Vc1Video
0xEA SMPTE VC-1 (Microsoft Windows Media Video 9).
LpcmAudio
0x80 Linear PCM audio (BD: big-endian, BD-ROM Part 3 §5.4).
Ac3Audio
0x81 Dolby AC-3.
DtsAudio
0x82 DTS.
TruehdAudio
0x83 Dolby TrueHD.
EAc3Audio
0x84 Dolby Digital Plus (E-AC-3).
DtsHdAudio
0x85 DTS-HD High Resolution.
DtsHdMaAudio
0x86 DTS-HD Master Audio.
EAc3SecondaryAudio
0xA1 E-AC-3 secondary audio.
DtsHdSecondaryAudio
0xA2 DTS-HD secondary audio.
PgsSubtitle
0x90 HDMV Presentation Graphic Stream (PGS) subtitles.
IgsInteractive
0x91 HDMV Interactive Graphics Stream (IGS).
TextSubtitle
0x92 HDMV Text Subtitle Stream (TextST).
Other(u8)
Any other value — kept as the raw byte for diagnostics.
Implementations§
Source§impl StreamType
impl StreamType
Sourcepub fn as_raw(self) -> u8
pub fn as_raw(self) -> u8
Inverse of Self::from_raw.
Sourcepub fn is_subtitle(self) -> bool
pub fn is_subtitle(self) -> bool
true when the stream carries subtitles or interactive graphics.
Trait Implementations§
Source§impl Clone for StreamType
impl Clone for StreamType
Source§fn clone(&self) -> StreamType
fn clone(&self) -> StreamType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamType
Source§impl Debug for StreamType
impl Debug for StreamType
impl Eq for StreamType
Source§impl PartialEq for StreamType
impl PartialEq for StreamType
Source§fn eq(&self, other: &StreamType) -> bool
fn eq(&self, other: &StreamType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamType
Auto Trait Implementations§
impl Freeze for StreamType
impl RefUnwindSafe for StreamType
impl Send for StreamType
impl Sync for StreamType
impl Unpin for StreamType
impl UnsafeUnpin for StreamType
impl UnwindSafe for StreamType
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