MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ flush()

std::vector< IntervalScanner::Interval > MayaFlux::Kinesis::Discrete::IntervalScanner::flush ( )
nodiscard

End the stream: close the open run and release the pending interval.

Returns
The intervals this releases. The next push starts a new stream.

Definition at line 214 of file IntervalScan.cpp.

215{
216 update_total();
217 std::vector<Interval> out;
218
219 if (m_has_start && m_total > m_start && m_total - m_start > m_config.min_run) {
221 }
222 if (m_pend_valid) {
223 out.emplace_back(m_pend_start, std::min(m_total, m_pend_end + m_config.padding));
224 }
225
226 reset();
227 return out;
228}
void reset() noexcept
Start a new stream without releasing anything.
void close_run(uint32_t start, uint32_t end, std::vector< Interval > &out)

References close_run(), m_config, m_has_start, m_pend_end, m_pend_start, m_pend_valid, m_start, m_total, reset(), and update_total().

Here is the call graph for this function: