pub struct StreamConfig {Show 18 fields
pub object_type: u8,
pub sf_index: u8,
pub sample_rate: u32,
pub channel_config: u8,
pub pce: Option<Pce>,
pub frame_length: usize,
pub depends_on_core_coder: bool,
pub core_coder_delay: u16,
pub section_data_resilience: bool,
pub scalefactor_data_resilience: bool,
pub spectral_data_resilience: bool,
pub ep_config: u8,
pub sbr: bool,
pub sbr_explicitly_absent: bool,
pub ps: bool,
pub ext_sample_rate: u32,
pub ext_rate_signalled: bool,
pub eld: Option<EldConfig>,
}Expand description
Everything an AudioSpecificConfig says about a stream.
Fields§
§object_type: u8The CORE audio object type (5/29 unwrapped to what they extend).
sf_index: u8Core samplingFrequencyIndex as used for table lookups (escaped rates are
mapped to the nearest table, ISO Table 4.82).
sample_rate: u32Core sample rate.
channel_config: u8§pce: Option<Pce>Present when channel_config == 0 (and possibly also in-band).
frame_length: usizeSamples per channel per frame of the core: 1024/960 (GA), 512/480 (LD/ELD).
depends_on_core_coder: bool§core_coder_delay: u16§section_data_resilience: bool§scalefactor_data_resilience: bool§spectral_data_resilience: bool§ep_config: u8epConfig (ER object types only; 0 = no error protection).
sbr: boolSBR explicitly signalled present (hierarchical or backward-compatible).
sbr_explicitly_absent: boolSBR explicitly signalled ABSENT (sbrPresentFlag = 0): implicit SBR in the
fill elements must then be ignored.
ps: bool§ext_sample_rate: u32Output rate after SBR (equals sample_rate when there is no SBR).
ext_rate_signalled: boolAn extension rate was signalled even though SBR presence stays implicit (a sync extension naming the core rate). If SBR then appears it runs downsampled, at this rate.
eld: Option<EldConfig>