#[non_exhaustive]pub enum ChannelLayout {
Mono,
Stereo,
Surround51,
Custom {
weights: &'static [f64],
},
}Expand description
Channel layout defining the set of channels to measure and their BS.1770-5 per-channel weighting coefficients G_i.
See ITU-R BS.1770-5 Annex 1 Table 3.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mono
Mono (centre channel): 1 channel, G = 1.0.
Stereo
Stereo (left, right): 2 channels, G_L = 1.0, G_R = 1.0.
Surround51
5.1 surround (L, R, C, LFE, Ls, Rs): 6 channels, LFE excluded. G_L=1.0, G_R=1.0, G_C=1.0, G_Ls=1.41, G_Rs=1.41, G_LFE=0.0.
Custom
Custom channel count with explicit per-channel weights.
weights[i] is G_i for channel i.
Implementations§
Source§impl ChannelLayout
impl ChannelLayout
Trait Implementations§
Source§impl Clone for ChannelLayout
impl Clone for ChannelLayout
Source§fn clone(&self) -> ChannelLayout
fn clone(&self) -> ChannelLayout
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 moreimpl Copy for ChannelLayout
Source§impl Debug for ChannelLayout
impl Debug for ChannelLayout
Source§impl Display for ChannelLayout
impl Display for ChannelLayout
Source§impl PartialEq for ChannelLayout
impl PartialEq for ChannelLayout
impl StructuralPartialEq for ChannelLayout
Auto Trait Implementations§
impl Freeze for ChannelLayout
impl RefUnwindSafe for ChannelLayout
impl Send for ChannelLayout
impl Sync for ChannelLayout
impl Unpin for ChannelLayout
impl UnsafeUnpin for ChannelLayout
impl UnwindSafe for ChannelLayout
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