Community
cancel
Showing results for 
Search instead for 
Did you mean: 
c__a
Beginner
102 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
Valentin_K_Intel
Employee
102 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