Skip to main content

Eac3SyncInfo

Struct Eac3SyncInfo 

Source
pub struct Eac3SyncInfo {
    pub strmtyp: u8,
    pub substreamid: u8,
    pub frmsiz: u16,
    pub fscod: u8,
    pub fscod2: u8,
    pub numblkscod: u8,
    pub acmod: u8,
    pub lfeon: bool,
    pub bsid: u8,
    pub dialnorm: u8,
    pub bsmod: u8,
}
Expand description

Parsed E-AC-3 sync-header fields needed to populate the MP4 dec3 AudioSpecificConfig box per ETSI TS 102 366 §F.6 (EC3SpecificBox).

Independent-substream subset only — no dependent substream fields are extracted (num_dep_sub defaults to 0). Vanilla 5.1 E-AC-3 is the dominant case in the wild and fits this profile.

Fields§

§strmtyp: u8

strmtyp (2 bits). 0 = independent. We only support strmtyp=0 frames (Squad-26 scope; dependent / independent-substream-w/-deps deferred).

§substreamid: u8

substreamid (3 bits) — 0 for vanilla E-AC-3.

§frmsiz: u16

frmsiz (11 bits): frame size in 16-bit words minus one (frame size in bytes = (frmsiz + 1) * 2). Squad-26 uses this only to derive data_rate for the dec3 box.

§fscod: u8

fscod (2 bits): 0=48k 1=44.1k 2=32k 3=use_fscod2 (reduced-rate).

§fscod2: u8

fscod2 (2 bits): only valid when fscod==3. 0=24k 1=22.05k 2=16k.

§numblkscod: u8

numblkscod (2 bits): 0..=3 → 1/2/3/6 audio blocks per frame.

§acmod: u8

acmod (3 bits): channel layout — same encoding as AC-3 (Table F.4).

§lfeon: bool

lfeon (1 bit): LFE channel present.

§bsid: u8

bsid (5 bits): always 16 for E-AC-3 (11..=16 reserved for AC-3 extensions; we only emit bsid==16 in dec3).

§dialnorm: u8

dialnorm (5 bits) — informational; dec3 doesn’t carry it.

§bsmod: u8

bsmod (3 bits) — only present when compre==1 / dialnorm valid; we emit zero when absent (matches ffmpeg behaviour).

Trait Implementations§

Source§

impl Clone for Eac3SyncInfo

Source§

fn clone(&self) -> Eac3SyncInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Eac3SyncInfo

Source§

impl Debug for Eac3SyncInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Eac3SyncInfo

Source§

impl PartialEq for Eac3SyncInfo

Source§

fn eq(&self, other: &Eac3SyncInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Eac3SyncInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more