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

ippsResamplePolyphaseFixedInit_32f

Tony_Beckett
Beginner
869 Views

Can someone enlighten me on why the call to  ippsResamplePolyphaseFixedInit_32f results in a

0xC00000005: Access violation

            int ssize;
            int height = 3;


              ippsResamplePolyphaseFixedGetSize_32f(  (int)SigIn->numberOfSamplesPerSecond() , _sampleRate, 128, pSizeOut, &ssize, &height, ippAlgHintFast );
            
                pState1 = (IppsResamplingPolyphaseFixed_32f*)ippsMalloc_8u(ssize);
                pState2 = (IppsResamplingPolyphaseFixed_32f*)ippsMalloc_8u(ssize);
                int inRate = (int)SigIn->numberOfSamplesPerSecond() ;
                IppStatus stsCode1 = ippsResamplePolyphaseFixedInit_32f( inRate , _sampleRate, 128, 0.9f, 9.0f, pState1, ippAlgHintFast );
         
                
            }

Tnaks

T

0 Kudos
4 Replies
SergeyKostrov
Valued Contributor II
869 Views
>>Can someone enlighten me on why the call to ippsResamplePolyphaseFixedInit_32f results in a >> >>0xC00000005: Access violation It is hard to tell what could be wrong because you have Not provided a complete test case, information about version of IPP library and C++ compiler, operating system, etc.
0 Kudos
Tony_Beckett
Beginner
869 Views

Windows 7, Visual Studio 2012, IPPS 7.1

0 Kudos
Tony_Beckett
Beginner
869 Views

Intel(R) Integrated Performance Primitives 7.1 Update 1 for Windows* OS

0 Kudos
Tony_Beckett
Beginner
869 Views

ippsResamplePolyphaseFixedGetSize_32f(  (int)SigIn->numberOfSamplesPerSecond() , _sampleRate, 128, pSizeOut, &ssize, &height, ippAlgHintFast );

Fixed

pSizeOut is wrong this should be ssize

ippsResamplePolyphaseFixedGetSize_32f(  (int)SigIn->numberOfSamplesPerSecond() , _sampleRate, 128, &ssize, &len, &height, ippAlgHintFast );

0 Kudos
Reply