pub struct AudioSpecificConfig {
pub object_type: u8,
pub sample_rate: u32,
pub channel_config: u8,
pub sbr_present: bool,
pub ps_present: bool,
}Expand description
Decoded AAC AudioSpecificConfig.
Fields§
§object_type: u8MPEG-4 audio object type (AOT). 2 = AAC-LC, 5 = HE-AAC (SBR), 29 = HE-AAC v2 (PS), 42 = xHE-AAC.
sample_rate: u32Sampling rate in Hz.
channel_config: u8Channel configuration (0 = PCE follows; 1..=7 = mapped layout).
sbr_present: boolTrue if the config explicitly signals SBR (HE-AAC).
ps_present: boolTrue if the config explicitly signals PS (HE-AAC v2).
Implementations§
Source§impl AudioSpecificConfig
impl AudioSpecificConfig
Sourcepub fn codec_string(&self) -> String
pub fn codec_string(&self) -> String
RFC 6381 codec string for the mp4a sample entry.
Format: mp4a.40.<object_type>.
Trait Implementations§
Source§impl Clone for AudioSpecificConfig
impl Clone for AudioSpecificConfig
Source§fn clone(&self) -> AudioSpecificConfig
fn clone(&self) -> AudioSpecificConfig
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 moreSource§impl Debug for AudioSpecificConfig
impl Debug for AudioSpecificConfig
Source§impl PartialEq for AudioSpecificConfig
impl PartialEq for AudioSpecificConfig
Source§fn eq(&self, other: &AudioSpecificConfig) -> bool
fn eq(&self, other: &AudioSpecificConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AudioSpecificConfig
impl StructuralPartialEq for AudioSpecificConfig
Auto Trait Implementations§
impl Freeze for AudioSpecificConfig
impl RefUnwindSafe for AudioSpecificConfig
impl Send for AudioSpecificConfig
impl Sync for AudioSpecificConfig
impl Unpin for AudioSpecificConfig
impl UnsafeUnpin for AudioSpecificConfig
impl UnwindSafe for AudioSpecificConfig
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