Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
6634 Discussions

ippsFFTInit -- allocation and deallocation of the FFT specification structure

c__a
Beginner
192 Views
The first argument of ippsFFTInit is a double pointer to the FFT specification structure to be created.
Do I need to call ippsFree() on *ppFFTSpec when I am done using it?

IppStatus ippsFFTInit_C_64f(IppsFFTSpec_C_64f** ppFFTSpec, int order, int flag, IppHintAlgorithm hint, Ipp8u* pSpec, Ipp8u* pSpecBuffer);

Thanks

0 Kudos
1 Reply
Valentin_K_Intel
Employee
192 Views

Hello!

The parameter *ppFFTSpec points to the FFT specification structure that is located inside the allocated buffer pSpec. So the function ippsFree() should be called only for pSpec buffer, after using the pointer ppFFTSpec.

The example how to use FFTInit: https://software.intel.com/en-us/node/610221

Best regards,
Valentin

Reply