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

◆ read_channel()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
ChannelIntervals MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::read_channel ( size_t channel,
const ChannelCall & call ) const
inlineprivate

Definition at line 782 of file IntervalExtractor.hpp.

783 {
785 if (!call.ran) {
786 return result;
787 }
788
790 m_context->download_shared(0, binding_of(channel, Report), words.data(), sizeof(words));
792
793 if (report.emitted > 0) {
794 std::vector<uint32_t> runs(static_cast<size_t>(report.emitted) * 2);
795 m_context->download_shared(0, binding_of(channel, Runs), runs.data(), runs.size() * sizeof(uint32_t));
796 result.intervals.reserve(report.emitted);
797 for (uint32_t i = 0; i < report.emitted; ++i) {
798 result.intervals.emplace_back(runs[2 * i], runs[2 * i + 1]);
799 }
800 }
801 result.open_start = report.open_start;
803 return result;
804 }
std::unique_ptr< ShaderExecutionContext<> > m_context
bool pending() const
True while a submission is outstanding and not yet collected.
static size_t binding_of(size_t channel, Slot slot)
Finds where each score sequence is engaged, on the GPU, as a stream.
IntervalScanReport decode_interval_scan_report(std::span< const uint32_t > words)
Decode the report buffer.

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

Here is the caller graph for this function: