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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user