Searched refs:fcr (Results 1 - 2 of 2) sorted by relevance

/frameworks/av/services/audioflinger/
H A DAudioResamplerDyn.cpp218 double fcr; local
223 fcr = max(0.5*tbwCheat - tbw/2, tbw/2);
225 fcr = max(0.5*tbwCheat*outSampleRate/inSampleRate - tbw/2, tbw/2);
228 firKaiserGen(buf, c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten);
236 printf("L:%d hnc:%d stopBandAtten:%lf fcr:%lf atten:%lf tbw:%lf\n",
237 c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten, tbw);
239 double fp = (fcr - tbw/2)/c.mL;
240 double fs = (fcr + tbw/2)/c.mL;
H A DAudioResamplerFirGen.h631 * @param fcr is cutoff frequency/sampling rate (<0.5). At this point, the energy
632 * should be 6dB less. (fcr is where the amplitude drops by half). Use the
633 * firKaiserTbw() to calculate the transition bandwidth. fcr is the midpoint
641 double stopBandAtten, double fcr, double atten) {
667 const double xstep = (2. * M_PI) * fcr / L;
692 y = 2. * atten * fcr; // center of filter, sinc(0) = 1.
640 firKaiserGen(T* coef, int L, int halfNumCoef, double stopBandAtten, double fcr, double atten) argument

Completed in 574 milliseconds