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

◆ descriptor_buffer()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
SpectralBuffer MayaFlux::Yantra::SpectralAnalyzer< InputType, OutputType >::descriptor_buffer ( )
inlinenodiscard

The device buffer of the descriptors of the latest record.

It exists from this call on.

Definition at line 185 of file SpectralAnalyzer.hpp.

186 {
187 const auto& cfg = this->template config<SpectralAnalyzerConfig>();
188 auto& context = this->context(cfg);
190 return { .context = &context, .set = 0, .binding = FftContext::result_binding,
191 .windows = m_resident_windows, .values_per_window = context.descriptors() };
192 }
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
FftContext & context(const SpectralAnalyzerConfig &cfg) const
Windowed spectral descriptors of every channel, run on the GPU.