pub enum AudioLayout {
Planar,
Interleaved,
}Expand description
Audio data layout format
Determines how multi-channel audio samples are arranged in memory.
Variants§
Planar
Planar format: All samples for channel 0, then all for channel 1, etc.
Memory layout for 2 channels, 3 samples:
[C0S0, C0S1, C0S2, C1S0, C1S1, C1S2]
This is the native format for FLTP and is efficient for per-channel processing.
Interleaved
Interleaved format: Samples from all channels are interleaved.
Input memory layout for 2 channels, 3 samples:
[C0S0, C1S0, C0S1, C1S1, C0S2, C1S2]
Interleaved data is converted to planar format at build time using the NDI SDK
utility function, so the resulting AudioFrame always stores planar data.
Trait Implementations§
Source§impl Clone for AudioLayout
impl Clone for AudioLayout
Source§fn clone(&self) -> AudioLayout
fn clone(&self) -> AudioLayout
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioLayout
impl Debug for AudioLayout
Source§impl PartialEq for AudioLayout
impl PartialEq for AudioLayout
impl Copy for AudioLayout
impl Eq for AudioLayout
impl StructuralPartialEq for AudioLayout
Auto Trait Implementations§
impl Freeze for AudioLayout
impl RefUnwindSafe for AudioLayout
impl Send for AudioLayout
impl Sync for AudioLayout
impl Unpin for AudioLayout
impl UnsafeUnpin for AudioLayout
impl UnwindSafe for AudioLayout
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