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

◆ decode_interval_scan_report()

IntervalScanReport MayaFlux::Yantra::decode_interval_scan_report ( std::span< const uint32_t > words)
inlinenodiscard

Decode the report buffer.

Parameters
wordsinterval_scan_report_words words read back from the report buffer.

Definition at line 82 of file IntervalScanStage.hpp.

83{
84 IntervalScanReport report;
85 if (words.size() < interval_scan_report_words) {
86 return report;
87 }
88 report.emitted = words[0];
89 if (words[1] != 0) {
90 report.open_start = words[2];
91 }
92 if (words[3] != 0) {
93 report.pending = std::pair<size_t, size_t> { words[4], words[5] };
94 }
95 return report;
96}
constexpr uint32_t interval_scan_report_words
Words of the report buffer: the run count, then the open run and the pending interval.
std::optional< std::pair< size_t, size_t > > pending
The closed interval waiting for its padded end: its padded start and its end before trailing padding.
uint32_t emitted
Intervals this dispatch appended to the run list.
std::optional< size_t > open_start
Where the run in progress began.
What one dispatch of the scan left, decoded from the report buffer.

References MayaFlux::Yantra::IntervalScanReport::emitted, interval_scan_report_words, MayaFlux::Yantra::IntervalScanReport::open_start, and MayaFlux::Yantra::IntervalScanReport::pending.

Referenced by MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::read_channel().

Here is the caller graph for this function: