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

◆ analyse()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
void MayaFlux::Yantra::WindowedKernelAnalyzer< InputType, OutputType >::analyse ( ShaderExecutionContext<> & context,
ChannelWindowedKernel & result,
std::span< const std::span< const double > > inputs,
const WindowedKernelConfig & cfg ) const
inlineprivate

Definition at line 563 of file WindowedKernelAnalyzer.hpp.

565 {
566 size_t shortest = inputs.front().size();
567 for (const auto& input : inputs) {
568 shortest = std::min(shortest, input.size());
569 }
570 const size_t windows = shortest < cfg.window_size ? 0 : (shortest - cfg.window_size) / cfg.hop_size + 1;
571
572 result.outputs = cfg.outputs;
573 for (size_t first = 0; first < windows; first += k_chunk_windows) {
574 const size_t count = std::min(k_chunk_windows, windows - first);
576 }
577 }
void run_chunk(ShaderExecutionContext<> &context, ChannelWindowedKernel &out, std::span< const std::span< const double > > inputs, size_t first, size_t count, const WindowedKernelConfig &cfg) const
ShaderExecutionContext & context(const WindowedKernelConfig &cfg) const
Runs a caller's compute kernel once per window of every channel.

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

Here is the caller graph for this function: