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

◆ share_recording()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
void MayaFlux::Yantra::SpectralAnalyzer< InputType, OutputType >::share_recording ( std::shared_ptr< GpuDispatchRecorder > recording)
inline

Append to a recording the caller shares with other work.

With a shared recording the transform goes to the device in the same submission as the work recorded around it. Call it before the first analysis or record. The recording must be compute isolated.

Exceptions
std::logic_errorwhen the analyzer has already started.

Definition at line 142 of file SpectralAnalyzer.hpp.

143 {
144 if (m_context) {
146 std::source_location::current(), "The recording can only be shared before the analyzer starts");
147 }
149 }
std::unique_ptr< FftContext > m_context
std::shared_ptr< GpuDispatchRecorder > m_recording
Windowed spectral descriptors of every channel, run on the GPU.