pub struct StftDocument<'a> {Show 14 fields
pub samples: PcmSamples<'a>,
pub timing: Timing,
pub stream_id: u32,
pub channels: u32,
pub channel_order: &'a str,
pub fft_size: u32,
pub hop: u32,
pub pcm_purpose: &'a str,
pub stft_purpose: &'a str,
pub quantity: StftQuantity,
pub relation: SignalRelation,
pub pcm_provenance: Provenance<'a>,
pub stft_provenance: Provenance<'a>,
pub original: Option<&'a [u8]>,
}Fields§
§samples: PcmSamples<'a>§timing: Timing§stream_id: u32§channels: u32§channel_order: &'a str§fft_size: u32§hop: u32§pcm_purpose: &'a str§stft_purpose: &'a str§quantity: StftQuantity§relation: SignalRelation§pcm_provenance: Provenance<'a>§stft_provenance: Provenance<'a>§original: Option<&'a [u8]>Implementations§
Source§impl StftDocument<'_>
impl StftDocument<'_>
pub const fn pcm_entry_index(&self) -> u32
pub const fn stft_entry_index(&self) -> u32
Sourcepub fn encode_into(
&self,
buffers: StftWriteBuffers<'_>,
scratch: &mut Scratch<'_>,
output: &mut [u8],
options: StftWriteOptions,
) -> Result<usize, Error>
pub fn encode_into( &self, buffers: StftWriteBuffers<'_>, scratch: &mut Scratch<'_>, output: &mut [u8], options: StftWriteOptions, ) -> Result<usize, Error>
Computes Hann-windowed complex STFT via etalon_signal, serializes PCM,
STFT, optional opaque original, and strict schema metadata, then runs
full candidate admission before writing any byte to output.
Trait Implementations§
Source§impl<'a> Clone for StftDocument<'a>
impl<'a> Clone for StftDocument<'a>
impl<'a> Copy for StftDocument<'a>
Auto Trait Implementations§
impl<'a> Freeze for StftDocument<'a>
impl<'a> RefUnwindSafe for StftDocument<'a>
impl<'a> Send for StftDocument<'a>
impl<'a> Sync for StftDocument<'a>
impl<'a> Unpin for StftDocument<'a>
impl<'a> UnsafeUnpin for StftDocument<'a>
impl<'a> UnwindSafe for StftDocument<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more