Lines Matching refs:DOWNSAMPLER
300 \brief Reset downsampler instance and clear delay lines
305 INT FDKaacEnc_InitDownsampler(DOWNSAMPLER *DownSampler, /*!< pointer to downsampler instance */
307 int ratio) /*!< downsampler ratio (only 2 supported at the momment) */
314 FDKmemclear(DownSampler->downFilter.states, sizeof(DownSampler->downFilter.states));
315 DownSampler->downFilter.ptr = 0;
328 DownSampler->downFilter.coeffa = currentSet->coeffa;
331 DownSampler->downFilter.gain = currentSet->g;
334 DownSampler->downFilter.noCoeffs = currentSet->noCoeffs;
335 DownSampler->delay = currentSet->delay;
336 DownSampler->downFilter.Wc = currentSet->Wc;
338 DownSampler->ratio = ratio;
339 DownSampler->pending = ratio-1;
486 INT FDKaacEnc_Downsample(DOWNSAMPLER *DownSampler, /*!< pointer to downsampler instance */
498 for(i=0; i<numInSamples; i+=DownSampler->ratio)
500 *outSamples = AdvanceFilter(&(DownSampler->downFilter), &inSamples[i*inStride], DownSampler->ratio, inStride);
503 *numOutSamples = numInSamples/DownSampler->ratio;