pub enum AudioCodec {
Aac,
Mp3,
Opus,
Vorbis,
Flac,
Alac,
Pcm(PcmFormat),
Ac3,
Eac3,
Dts,
Other(FourCc),
}Expand description
An audio codec, as the container declares it.
Variants§
Aac
AAC; codec_private is the AudioSpecificConfig.
Mp3
MPEG-1/2 Layer III; no codec_private.
Opus
Opus; codec_private is the OpusHead (identification header).
Vorbis
Vorbis; codec_private holds the three headers, Xiph-laced as Matroska stores them.
Flac
FLAC; codec_private is fLaC followed by the metadata blocks (at least STREAMINFO).
Alac
Apple Lossless; codec_private is the ALACSpecificConfig (magic cookie).
Pcm(PcmFormat)
Uncompressed PCM.
Ac3
AC-3; no codec_private.
Eac3
E-AC-3; no codec_private.
Dts
DTS; no codec_private.
Other(FourCc)
Anything else, by its four-character code or Matroska codec ID’s first four bytes.
Trait Implementations§
Source§impl Clone for AudioCodec
impl Clone for AudioCodec
impl Copy for AudioCodec
Source§impl Debug for AudioCodec
impl Debug for AudioCodec
impl Eq for AudioCodec
Source§impl PartialEq for AudioCodec
impl PartialEq for AudioCodec
impl StructuralPartialEq for AudioCodec
Auto Trait Implementations§
impl Forget for AudioCodec
impl Freeze for AudioCodec
impl Move for AudioCodec
impl RefUnwindSafe for AudioCodec
impl Send for AudioCodec
impl Sync for AudioCodec
impl Unpin for AudioCodec
impl UnsafeUnpin for AudioCodec
impl UnwindSafe for AudioCodec
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