Struct mpeg4_audio_const::AudioObjectType
source · pub struct AudioObjectType(/* private fields */);Expand description
Represents an audio object type indicator value.
This type can be constructed from a u8,
assert_eq!(AudioObjectType::AAC_LC, AudioObjectType::try_from(2).unwrap());
assert_eq!(2u8, AudioObjectType::AAC_LC.into());and will accept values that are ‘reserved’ in the spec,
assert_eq!("RESERVED(95)", format!("{:?}", AudioObjectType::try_from(95).unwrap()));but disallows values that can’t legitimately be represented because they are too large
(the maximum representable a-o-t value is 96) and also disallows the ‘escape value’ (value
31 see AOT_ESCAPE_VALUE) which is used as part of the
encoding scheme for the a-o-t field rather than as a distinct field value.
assert_eq!(Err(AudioObjectTypeError::EscapeValue), AudioObjectType::try_from(31));
assert_eq!(Err(AudioObjectTypeError::TooLarge(97)), AudioObjectType::try_from(97));Implementations§
source§impl AudioObjectType
impl AudioObjectType
sourcepub const NULL: AudioObjectType = _
pub const NULL: AudioObjectType = _
Null
sourcepub const AAC_MAIN: AudioObjectType = _
pub const AAC_MAIN: AudioObjectType = _
AAC main
sourcepub const AAC_SSR: AudioObjectType = _
pub const AAC_SSR: AudioObjectType = _
AAC SSR
sourcepub const AAC_LTP: AudioObjectType = _
pub const AAC_LTP: AudioObjectType = _
AAC LTP
sourcepub const TWIN_VQ: AudioObjectType = _
pub const TWIN_VQ: AudioObjectType = _
TwinVQ
sourcepub const CELP: AudioObjectType = _
pub const CELP: AudioObjectType = _
CELP
sourcepub const HVXC: AudioObjectType = _
pub const HVXC: AudioObjectType = _
HVXC
sourcepub const SBR: AudioObjectType = _
pub const SBR: AudioObjectType = _
SBR
sourcepub const AAC_SCALABLE: AudioObjectType = _
pub const AAC_SCALABLE: AudioObjectType = _
AAC Scalable
sourcepub const AAC_LC: AudioObjectType = _
pub const AAC_LC: AudioObjectType = _
AAC LC
sourcepub const TTSI: AudioObjectType = _
pub const TTSI: AudioObjectType = _
TTSI
sourcepub const MAIN_SYNTHETIC: AudioObjectType = _
pub const MAIN_SYNTHETIC: AudioObjectType = _
Main synthetic
sourcepub const WAVETABLE_SYNTHESIS: AudioObjectType = _
pub const WAVETABLE_SYNTHESIS: AudioObjectType = _
Wavetable synthesis
sourcepub const GENERAL_MIDI: AudioObjectType = _
pub const GENERAL_MIDI: AudioObjectType = _
General MIDI
sourcepub const ALGORITHMIC_SYNTHESIS_AND_AUDIO_FX: AudioObjectType = _
pub const ALGORITHMIC_SYNTHESIS_AND_AUDIO_FX: AudioObjectType = _
Algorithmic Synthesis and Audio FX
sourcepub const ER_AAC_LC: AudioObjectType = _
pub const ER_AAC_LC: AudioObjectType = _
ER AAC LC
sourcepub const ER_AAC_LTP: AudioObjectType = _
pub const ER_AAC_LTP: AudioObjectType = _
ER AAC LTP
sourcepub const ER_AAC_SCALABLE: AudioObjectType = _
pub const ER_AAC_SCALABLE: AudioObjectType = _
ER AAC Scalable
sourcepub const ER_TWIN_VQ: AudioObjectType = _
pub const ER_TWIN_VQ: AudioObjectType = _
ER TwinVQ
sourcepub const ER_BSAC: AudioObjectType = _
pub const ER_BSAC: AudioObjectType = _
ER BSAC
sourcepub const ER_AAC_LD: AudioObjectType = _
pub const ER_AAC_LD: AudioObjectType = _
ER AAC LD
sourcepub const ER_CELP: AudioObjectType = _
pub const ER_CELP: AudioObjectType = _
ER CELP
sourcepub const ER_HVXC: AudioObjectType = _
pub const ER_HVXC: AudioObjectType = _
ER HVXC
sourcepub const ER_HILN: AudioObjectType = _
pub const ER_HILN: AudioObjectType = _
ER HILN
sourcepub const ER_PARAMETRIC: AudioObjectType = _
pub const ER_PARAMETRIC: AudioObjectType = _
ER Parametric
sourcepub const SSC: AudioObjectType = _
pub const SSC: AudioObjectType = _
SSC
sourcepub const PS: AudioObjectType = _
pub const PS: AudioObjectType = _
PS
sourcepub const MPEG_SURROUND: AudioObjectType = _
pub const MPEG_SURROUND: AudioObjectType = _
MPEG Surround
sourcepub const LAYER1: AudioObjectType = _
pub const LAYER1: AudioObjectType = _
Layer-1
sourcepub const LAYER3: AudioObjectType = _
pub const LAYER3: AudioObjectType = _
Layer-3
sourcepub const DST: AudioObjectType = _
pub const DST: AudioObjectType = _
DST
sourcepub const ALS: AudioObjectType = _
pub const ALS: AudioObjectType = _
ALS
sourcepub const SLS: AudioObjectType = _
pub const SLS: AudioObjectType = _
SLS
sourcepub const SLS_NON_CORE: AudioObjectType = _
pub const SLS_NON_CORE: AudioObjectType = _
SLS non-core
sourcepub const ER_AAC_ELD: AudioObjectType = _
pub const ER_AAC_ELD: AudioObjectType = _
ER AAC ELD
sourcepub const SMR_SIMPLE: AudioObjectType = _
pub const SMR_SIMPLE: AudioObjectType = _
SMR Simple
sourcepub const SMR_MAIN: AudioObjectType = _
pub const SMR_MAIN: AudioObjectType = _
SMR Main
sourcepub const USAC: AudioObjectType = _
pub const USAC: AudioObjectType = _
Unified Speech and Audio Coding
sourcepub const SAOC: AudioObjectType = _
pub const SAOC: AudioObjectType = _
Spatial Audio Object Coding
sourcepub const LD_MPEG_SURROUND: AudioObjectType = _
pub const LD_MPEG_SURROUND: AudioObjectType = _
Low Delay MPEG Surround
sourcepub const SAOC_DE: AudioObjectType = _
pub const SAOC_DE: AudioObjectType = _
Spatial Audio Object Coding Dialogue Enhancement
sourcepub const AUDIO_SYNC: AudioObjectType = _
pub const AUDIO_SYNC: AudioObjectType = _
Audio synchronization tool
Trait Implementations§
source§impl Clone for AudioObjectType
impl Clone for AudioObjectType
source§fn clone(&self) -> AudioObjectType
fn clone(&self) -> AudioObjectType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AudioObjectType
impl Debug for AudioObjectType
source§impl From<AudioObjectType> for u8
impl From<AudioObjectType> for u8
source§fn from(v: AudioObjectType) -> Self
fn from(v: AudioObjectType) -> Self
source§impl PartialEq for AudioObjectType
impl PartialEq for AudioObjectType
source§fn eq(&self, other: &AudioObjectType) -> bool
fn eq(&self, other: &AudioObjectType) -> bool
self and other values to be equal, and is used
by ==.