pub struct StereoIntervalScripts<'a> {
pub mid: SilkFrameSymbols<'a>,
pub side: Option<SilkFrameSymbols<'a>>,
}Expand description
One 20 ms time interval’s symbol scripts for a stereo SILK-only packet (§4.2.2): the mid-channel SILK frame plus, when the side channel is coded for this interval, the side-channel SILK frame.
Consistency rules enforced by encode_silk_only_packet_stereo
(mirroring the decode-side §4.2.7.1 / §4.2.7.2 gating):
mid.header.stereomust beSome(the §4.2.7.1 weights ride on every mid frame);side.header.stereomust beNone.- The interval’s side VAD flag is derived as “side coded with an
active frame type (
2..=5)”. When it is set, the §4.2.7.2 mid-only flag is absent (mid.header.mid_only_flag == None). When it is unset, the flag is present and must equalside.is_none():Some(true)skips the side frame entirely,Some(false)codes an inactive side frame (frame type0..=1).
Fields§
§mid: SilkFrameSymbols<'a>The mid-channel frame script (carries the §4.2.7.1 weights and, when signalled, the §4.2.7.2 mid-only flag).
side: Option<SilkFrameSymbols<'a>>The side-channel frame script, or None when the side channel
is not coded for this interval (mid-only).
Trait Implementations§
Source§impl<'a> Clone for StereoIntervalScripts<'a>
impl<'a> Clone for StereoIntervalScripts<'a>
Source§fn clone(&self) -> StereoIntervalScripts<'a>
fn clone(&self) -> StereoIntervalScripts<'a>
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<'a> Copy for StereoIntervalScripts<'a>
Auto Trait Implementations§
impl<'a> Freeze for StereoIntervalScripts<'a>
impl<'a> RefUnwindSafe for StereoIntervalScripts<'a>
impl<'a> Send for StereoIntervalScripts<'a>
impl<'a> Sync for StereoIntervalScripts<'a>
impl<'a> Unpin for StereoIntervalScripts<'a>
impl<'a> UnsafeUnpin for StereoIntervalScripts<'a>
impl<'a> UnwindSafe for StereoIntervalScripts<'a>
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