pub struct ChannelConfig {
pub weights: Vec<f32>,
}Expand description
Channel configuration for multi-channel loudness measurement.
Per ITU-R BS.1770-4, each channel is K-weighted independently; the gating operates on the weighted sum of per-channel mean-square levels.
Standard weights: L=1.0, R=1.0, C=1.0, LFE=0.0, Ls=√2, Rs=√2.
Fields§
§weights: Vec<f32>Per-channel gain weights (linear, not dB).
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
Sourcepub fn surround_5_1() -> Self
pub fn surround_5_1() -> Self
5.1 surround per BS.1770-4 channel order: L, R, C, LFE, Ls, Rs.
LFE is excluded (weight 0.0). Surround channels Ls and Rs are weighted at √2 ≈ 1.4142 (3 dB higher than front channels per the standard).
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 moreAuto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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