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

◆ ensure_contexts()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
void MayaFlux::Yantra::WaveformAnalyzer< InputType, OutputType >::ensure_contexts ( ) const
inlineprivate

Definition at line 495 of file WaveformAnalyzer.hpp.

496 {
497 if (m_recording) {
498 return;
499 }
503
514 m_energy.get(), m_sum.get(), m_peak.get(), m_crossings.context.get(), m_zero.context.get(),
515 m_correlation.context.get(), m_distance.context.get(), m_select.context.get() }) {
516 context->set_recording(m_recording);
517 }
518
520 m_energy->ensure_shared_buffer(0, k_values_binding, 1, word);
522 m_sum.get(), m_peak.get(), m_crossings.context.get(), m_zero.context.get(),
523 m_correlation.context.get(), m_distance.context.get() }) {
524 context->import_shared(0, k_values_binding, *m_energy, 0, k_values_binding, word);
525 }
526
527 m_correlation.context->ensure_shared_buffer(0, k_row_binding, 1, word);
528 m_select.context->import_shared(0, k_values_binding, *m_correlation.context, 0, k_row_binding, word);
529 }
static constexpr uint32_t k_values_binding
static constexpr uint32_t k_row_binding
static WordPass make_lagged(Portal::Graphics::PairMap map, bool centred)
std::unique_ptr< SegmentedReductionContext > m_energy
std::unique_ptr< SegmentedReductionContext > m_peak
std::shared_ptr< GpuDispatchRecorder > m_recording
std::unique_ptr< SegmentedReductionContext > m_sum
Time-domain descriptors of every channel, run on the GPU.

Referenced by MayaFlux::Yantra::WaveformAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::analyze_implementation().

Here is the caller graph for this function: