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

resampling using ippsResamplePolyphaseFixed_16s

vittalprasad_B_
Beginner
706 Views

Hi 

i am new Intel ipp, when i go through old code some one in my company did i got doubts on resampling

            bufsize = 200;
            history = 20;
            time1 = 20;
            lastread = 2*20;
            inRate = 8000;
            outRate = 16000;
              

        if(1)
        {
            ippsResamplePolyphaseFixedGetSize_16s(inRate,outRate,
                        2*(history-1),&size,&len,&height,ippAlgHintAccurate);
            state=(IppsResamlingPolyphaseFixed_16s*)ippsMalloc_8u(size);
            ippsResamplePolyphaseFixedInit_16s(inRate,outRate,
                            2*(history-1),0.95f,9.0f,state,ippAlgHintAccurate);
            inBuf=ippsMalloc_16s(bufsize+history+2);
            outBuf=ippsMalloc_16s((int)((bufsize-history)*outRate/(float)inRate+2));
            ippsZero_16s(inBuf,lastread);
            printf("\n bufsize %d history %d time %f lastread %d \n",
                    bufsize,history,time1, lastread);
        }

on what basis bufsizehistory, time1 and lastread values are taken, where in document 8.1 document values are like this int bufsize=4096;
int history=128;
double time=history;
int lastread=history;

please help about this and little information about ippsResamplePolyphaseFixed_16s and ippsMove_16s(inBuf+(int)time-history,inBuf,lastread+history-(int)time) what actually  ippsMove_16s doing  from 8.1 document

 

Thanks

 

0 Kudos
0 Replies
Reply