Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
17 Views

ippsFFTInit -- allocation and deallocation of the FFT specification structure

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
Highlighted
17 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

0 Kudos