1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Add VkFFT support and profiler

This commit is contained in:
Jon Beniston
2023-08-13 23:52:57 +01:00
parent b7de8b8255
commit 5e71da4530
37 changed files with 2418 additions and 36 deletions
+13 -1
View File
@@ -15,7 +15,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <QElapsedTimer>
#include <QDebug>
#include "dsp/fftwengine.h"
FFTWEngine::FFTWEngine(const QString& fftWisdomFileName) :
@@ -31,6 +32,13 @@ FFTWEngine::~FFTWEngine()
freeAll();
}
const QString FFTWEngine::m_name = "FFTW";
QString FFTWEngine::getName() const
{
return m_name;
}
void FFTWEngine::configure(int n, bool inverse)
{
if (m_reuse)
@@ -78,8 +86,12 @@ void FFTWEngine::configure(int n, bool inverse)
void FFTWEngine::transform()
{
PROFILER_START()
if(m_currentPlan != NULL)
fftwf_execute(m_currentPlan->plan);
PROFILER_STOP(QString("%1 %2").arg(getName()).arg(m_currentPlan->n))
}
Complex* FFTWEngine::in()