Home | History | Annotate | Download | only in src

Lines Matching defs:fs

32 LVPSA_RETURN LVPSA_BPSinglePrecCoefs(  LVM_UINT16             Fs,
36 LVPSA_RETURN LVPSA_BPDoublePrecCoefs( LVM_UINT16 Fs,
40 LVPSA_RETURN LVPSA_BPSinglePrecCoefs( LVM_UINT16 Fs,
44 LVPSA_RETURN LVPSA_BPDoublePrecCoefs( LVM_UINT16 Fs,
48 LVPSA_RETURN LVPSA_BPDoublePrecCoefs( LVM_UINT16 Fs,
86 if(pNewParams->Fs >= LVPSA_NR_SUPPORTED_RATE)
126 pParams->Fs = pLVPSA_Inst->CurrentParams.Fs;
208 if(Params.Fs != pInst->CurrentParams.Fs)
210 pInst->CurrentParams.Fs = Params.Fs;
213 Freq = (LVM_UINT16) ((LVPSA_SampleRateTab[pInst->CurrentParams.Fs]>>1) / (pInst->nBands + 1));
224 if(pInst->pFiltersParams[ii-1].CenterFrequency < (LVPSA_SampleRateTab[pInst->CurrentParams.Fs]>>1))
234 pInst->nSamplesBufferUpdate = (LVM_UINT16)LVPSA_nSamplesBufferUpdate[Params.Fs];
236 pInst->DownSamplingFactor = LVPSA_DownSamplingFactor[Params.Fs];
275 /* Double precision if (fc <= fs/110) */
276 /* Double precision if (fs/110 < fc < fs/85) & (Q>3) */
289 LVM_UINT32 fs = (LVM_UINT32)LVPSA_SampleRateTab[(LVM_UINT16)pParams->Fs]; /* Sample rate */
306 if ((LOW_FREQ * fs) >= (fc << 15))
309 * fc <= fs/110
315 if (((LOW_FREQ * fs) < (fc << 15)) && ((fc << 15) < (HIGH_FREQ * fs)) && (QFactor > 300))
318 * (fs/110 < fc < fs/85) & (Q>3)
367 LVPSA_BPDoublePrecCoefs((LVM_UINT16)pParams->Fs,
381 LVPSA_BPDoublePrecCoefs((LVM_UINT16)pParams->Fs,
402 LVPSA_BPSinglePrecCoefs((LVM_UINT16)pParams->Fs,
418 LVPSA_BPSinglePrecCoefs((LVM_UINT16)pParams->Fs,
460 LVM_Fs_en Fs = pParams->Fs;
465 pCoefficients = &LVPSA_QPD_Coefs[(pParams->LevelDetectionSpeed * LVPSA_NR_SUPPORTED_RATE) + Fs];
471 LVPSA_NR_SUPPORTED_RATE) + Fs];
500 /* Fs Sampling frequency index */
510 /* t0 = 2 * Pi * Fc / Fs */
518 /* Fs is the sample frequency, 8000 to 48000 in descrete steps */
526 LVPSA_RETURN LVPSA_BPSinglePrecCoefs( LVM_UINT16 Fs,
562 T0 = Frequency * LVPSA_Float_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */
580 T0 = (T0 / 2048) * 0.63658558f; /* Scale to 1.0 in 16-bit for range 0 to fs/2 */
606 LVPSA_RETURN LVPSA_BPSinglePrecCoefs( LVM_UINT16 Fs,
643 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */
661 T0 = (T0 >> 10) * 20859; /* Scale to 1.0 in 16-bit for range 0 to fs/2 */
696 /* Fs Sampling frequency index */
706 /* t0 = 2 * Pi * Fc / Fs */
713 /* Fc is the centre frequency, DC to Fs/50 */
714 /* Fs is the sample frequency, 8000 to 48000 in descrete steps */
717 /* 2. The double precision coefficients are only used when fc is less than fs/85, so */
731 LVPSA_RETURN LVPSA_BPDoublePrecCoefs( LVM_UINT16 Fs,
766 T0 = Frequency * LVPSA_Float_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */
784 T0 = T0 * 0.994750f; /* Scale to 1.0 in 16-bit for range 0 to fs/50 */
814 LVPSA_RETURN LVPSA_BPDoublePrecCoefs( LVM_UINT16 Fs,
849 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */
867 T0 = (T0 >> 6) * 0x7f53; /* Scale to 1.0 in 16-bit for range 0 to fs/50 */