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

◆ record_all()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
template<typename Columns>
std::vector< ChannelCall > MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::record_all ( const Columns & columns,
const IntervalExtractorConfig & cfg )
inlineprivate

Definition at line 586 of file IntervalExtractor.hpp.

587 {
589 reset_state(columns.size());
590
591 for (size_t channel = 0; channel < columns.size(); ++channel) {
592 const auto& settings = cfg.settings_of(channel);
593 check_settings(settings, cfg.length);
595 check_gate(settings.gate_channel, columns.size(), columns[channel].size());
596 if (columns[settings.gate_channel].size() != columns[channel].size()) {
598 std::source_location::current(), "Gate column {} has {} scores and column {} has {}",
599 settings.gate_channel, columns[settings.gate_channel].size(), channel, columns[channel].size());
600 }
601 }
602 }
603
605 for (size_t channel = 0; channel < columns.size(); ++channel) {
606 const std::span<const double> scores { columns[channel].data(), columns[channel].size() };
607 calls[channel] = prepare_channel(channel, scores, false, 0, cfg.flush);
608 }
611 return calls;
612 }
static void check_gate(uint32_t gate, size_t columns, size_t length)
static void check_settings(const IntervalScanSettings &settings, uint32_t length)
ChannelCall prepare_channel(size_t channel, std::span< const double > scores, bool resident, uint32_t resident_count, bool flush)
Makes a column's buffers, uploads its scores and state, and counts the call.
std::vector< ChannelCall > m_last_calls
void record_scans(const std::vector< ChannelCall > &calls, const IntervalExtractorConfig &cfg)
Records one scan per column that ran, each with its own settings.
static bool gated_by_other(const IntervalScanSettings &settings, size_t channel)
Finds where each score sequence is engaged, on the GPU, as a stream.

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

Here is the caller graph for this function: