MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kinesis::Discrete::IntervalScanConfig Struct Reference

Settings of an IntervalScanner. More...

#include <IntervalScan.hpp>

Collaboration diagram for MayaFlux::Kinesis::Discrete::IntervalScanConfig:

Public Attributes

bool emit_on_close { false }
double enter { 0.5 }
uint32_t first_sample { 0 }
uint32_t gap_at_limit { 1568 }
double gate_threshold { 0.5 }
uint32_t hop { 512 }
double leave { 0.35 }
uint32_t length { 0 }
uint32_t max_run { 0 }
uint32_t min_gap { 1600 }
uint32_t min_run { 4000 }
uint32_t padding { 480 }
bool use_longest_gap { true }

Detailed Description

Settings of an IntervalScanner.

Score i of a stream sits at sample first_sample + i * hop. A run starts at a score at or above enter and is released by a score below leave once the quiet has lasted min_gap. A run not longer than min_run is dropped. Each interval is widened by padding on both sides, and a gap between neighbours smaller than twice the padding is split between them.

max_run caps one interval, 0 for no cap, and must exceed hop + 2 * padding when set. A capped run is cut at the longest gap seen inside it when use_longest_gap is set, else at the last gap longer than gap_at_limit, else where the cap falls.

With a gate, a position whose gate score is below gate_threshold is silence: an open run ends there at once whatever min_gap is, the position is never engaged, and a gap is bridged only while the gate stays at or above its threshold. A run ended by the gate closes where its last engaged stretch ended, before padding.

length is the stream length used to clamp padded ends, 0 for the end of the scores seen so far.

With emit_on_close an interval is released the moment it closes, padded by the full padding on both sides. Nothing waits for a successor, so latency is the trailing gap alone, and the gap between neighbours is no longer split: their paddings may overlap.

Definition at line 42 of file IntervalScan.hpp.


The documentation for this struct was generated from the following file: