MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::ChannelIntervals Struct Reference

Intervals of one channel, half open sample ranges in stream order. More...

#include <IntervalExtractor.hpp>

Collaboration diagram for MayaFlux::Yantra::ChannelIntervals:

Public Attributes

std::vector< std::pair< size_t, size_t > > intervals
std::optional< size_t > open_start
std::optional< std::pair< size_t, size_t > > pending

Detailed Description

Intervals of one channel, half open sample ranges in stream order.

open_start and pending describe the state after the last score of the call, so a live caller need not wait for a run to close. open_start is where the run in progress began, set from the first score at or above the enter threshold until the run closes, and so also during a gap not yet long enough to end it. pending is the closed interval waiting for its padded end: its padded start and its end before trailing padding. Both are empty after a flush, and with emit_on_close nothing is ever pending. A call that gives a channel no scores and does not flush reports neither.

Definition at line 162 of file IntervalExtractor.hpp.


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