Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Calling IPP filtering functions from Fortran

Matuszyk__Pawel
Beginner
396 Views
I want to filter some data in Fortran using IPP FIR filter, with a standard sequence:

ippsFIRGenBandstop_64f(...)
ippsFIRInitAlloc_64f(IppsFIRState_64f** ppState, ...)

for i = 1, ...
ippsFIR_64fc_I(..., IppsFIRState_64fc* pState)
end for

ippsFIRFree_64f(IppsFIRState_64f* pState)

The problem is with proper declaration and use of object pState...
- I do not know the structure of IppsFIRState_64f, and therefore I do not know, how should it be declared in Fortran?
- InitAlloc requires addred of the array/structure IppsFIRState_64f, whilst another functions use directly object IppsFIRState_64f.

Is it possible to do that in Fortran?

Pawel
0 Kudos
1 Reply
Chao_Y_Intel
Moderator
396 Views
Hi Pawel,

IppsFIRState_64f is the internal structure in IPP libraries. It is not exposure to the users. Possibly an easy way for you to use these filter function is to write a C wrapper function with easy function interfaces. The C wrapper call IPP related function and your FORTRAN code can call the wrapper function.

Thanks,
Chao

0 Kudos
Reply