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

ResamplePolyphase on multichannel PCM

svilst
Beginner
194 Views
If I have multichannel interleaved audio it is clear that I should deinterleave the samples and apply ippsResamplePolyphase on each channel.

But is it OK to use ippsResamplePolyphaseInitAlloc just once to obtain a resampling state structure (pSpec) and then call ippsResamplePolyphase with this pSpec for the deinterleaved samples of each channel ?

Or I should call ippsResamplePolyphaseInitAlloc for each channel and obtain resampling state structures (pSpec) for each channel?

Obviously the answer depends on whether the resampling state (pSpec) stores information about the already processed samples or not but I could not find it in the documentation.

Thanks,
Svilen
0 Kudos
1 Solution
Chao_Y_Intel
Employee
194 Views


Hi Svilen,


If they have sampe paramters ( in, out rate, filter length), the structures can be reused.


Some Intel IPP functions use special structures to store function-specific (context) information.

Two different kinds of structures are used: specification structures that are not modified during

function operation -they have the suffix Spec in their names, and state structures that are

modified during operation - they have the suffix State in their names.

resampling function (use pSpec structures) are not modified during function operation.


Thanks,

Chao

View solution in original post

2 Replies
Chao_Y_Intel
Employee
195 Views


Hi Svilen,


If they have sampe paramters ( in, out rate, filter length), the structures can be reused.


Some Intel IPP functions use special structures to store function-specific (context) information.

Two different kinds of structures are used: specification structures that are not modified during

function operation -they have the suffix Spec in their names, and state structures that are

modified during operation - they have the suffix State in their names.

resampling function (use pSpec structures) are not modified during function operation.


Thanks,

Chao

svilst
Beginner
194 Views
Thank you for the clarification.
Reply