1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00
sdrangel/sdrbase/dsp/kissengine.cpp

42 lines
621 B
C++
Raw Normal View History

#include "dsp/kissengine.h"
2023-08-13 18:52:57 -04:00
const QString KissEngine::m_name = "Kiss";
QString KissEngine::getName() const
{
return m_name;
}
void KissEngine::configure(int n, bool inverse)
{
m_fft.configure(n, inverse);
if(n > m_in.size())
m_in.resize(n);
if(n > m_out.size())
m_out.resize(n);
}
void KissEngine::transform()
{
2023-08-13 18:52:57 -04:00
PROFILER_START()
m_fft.transform(&m_in[0], &m_out[0]);
2023-08-13 18:52:57 -04:00
PROFILER_STOP(QString("%1 %2").arg(getName()).arg(m_out.size()))
}
Complex* KissEngine::in()
{
return &m_in[0];
}
Complex* KissEngine::out()
{
return &m_out[0];
}
2020-03-13 02:46:08 -04:00
void KissEngine::setReuse(bool reuse)
{
(void) reuse;
2023-08-13 18:52:57 -04:00
}