Home
last modified time | relevance | path

Searched refs:coefs (Results 1 – 19 of 19) sorted by relevance

/aosp12/system/media/audio_utils/include/audio_utils/
H A DBiquadFilter.h121 b0 = coefs[0]; in biquad_filter_1fast()
122 b1 = coefs[1]; in biquad_filter_1fast()
123 b2 = coefs[2]; in biquad_filter_1fast()
124 negativeA1 = -coefs[3]; in biquad_filter_1fast()
125 negativeA2 = -coefs[4]; in biquad_filter_1fast()
129 b0 = coefs[0]; in biquad_filter_1fast()
134 ++coefs; in biquad_filter_1fast()
204 b0 = vdupn<T>(coefs[0]); in biquad_filter_neon_impl()
217 coefs += elements; in biquad_filter_neon_impl()
279 auto *c = SAME_COEF_PER_CHANNEL ? coefs : coefs + offset; in biquad_filter_neon()
[all …]
/aosp12/system/media/audio_utils/benchmarks/
H A Dbiquad_filter_benchmark.cpp45 std::array<float, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter1D() local
56 android::audio_utils::BiquadFilter parallel(filters, coefs); in BM_BiquadFilter1D()
59 biquad.reset(new BiquadFilter<float>(1, coefs)); in BM_BiquadFilter1D()
227 std::array<F, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter() local
236 for (size_t i = 0; i < coefs.size(); ++i) { in BM_BiquadFilter()
237 coefs[i] = (occupancy >> i & 1) * REF_COEFS[i]; in BM_BiquadFilter()
240 android::audio_utils::BiquadFilter<F> biquadFilter(channelCount, coefs, optimized); in BM_BiquadFilter()
/aosp12/frameworks/av/media/libeffects/testlibs/
H A DAudioShelvingFilter.cpp90 audio_coef_t coefs[5]; in commit() local
100 mHiCoefInterp.getCoef(intCoord, fracCoord, coefs); in commit()
102 mLoCoefInterp.getCoef(intCoord, fracCoord, coefs); in commit()
104 mBiquad.setCoefs(coefs, immediate); in commit()
H A DAudioBiquadFilter.cpp53 void AudioBiquadFilter::setCoefs(const audio_coef_t coefs[NUM_COEFS], bool immediate) { in setCoefs()
54 memcpy(mTargetCoefs, coefs, sizeof(mTargetCoefs)); in setCoefs()
57 memcpy(mCoefs, coefs, sizeof(mCoefs)); in setCoefs()
120 bool AudioBiquadFilter::updateCoefs(const audio_coef_t coefs[NUM_COEFS], in updateCoefs()
125 audio_coef_t diff = coefs[i] - mCoefs[i]; in updateCoefs()
131 mCoefs[i] = coefs[i]; in updateCoefs()
H A DAudioPeakingFilter.cpp88 audio_coef_t coefs[5]; in commit() local
99 mCoefInterp.getCoef(intCoord, fracCoord, coefs); in commit()
100 mBiquad.setCoefs(coefs, immediate); in commit()
H A DAudioBiquadFilter.h70 void setCoefs(const audio_coef_t coefs[NUM_COEFS], bool immediate = false);
154 bool updateCoefs(const audio_coef_t coefs[NUM_COEFS], int frameCount);
/aosp12/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
H A DLVCS_StereoEnhancer.cpp69 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVCS_SEnhancerInit() local
73 new android::audio_utils::BiquadFilter<LVM_FLOAT>(FCC_1, coefs)); in LVCS_SEnhancerInit()
79 coefs = {pSESideCoefs[Offset].A0, pSESideCoefs[Offset].A1, pSESideCoefs[Offset].A2, in LVCS_SEnhancerInit()
82 new android::audio_utils::BiquadFilter<LVM_FLOAT>(FCC_1, coefs)); in LVCS_SEnhancerInit()
H A DLVCS_Equaliser.cpp73 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVCS_EqualiserInit() local
78 (pParams->NrChannels == FCC_1) ? FCC_1 : FCC_2, coefs)); in LVCS_EqualiserInit()
H A DLVCS_ReverbGenerator.cpp91 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVCS_ReverbGeneratorInit() local
96 (pParams->NrChannels == FCC_1) ? FCC_1 : FCC_2, coefs)); in LVCS_ReverbGeneratorInit()
/aosp12/frameworks/av/media/libeffects/lvm/lib/Bass/src/
H A DLVDBE_Control.cpp112 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVDBE_SetFilters() local
116 ->setCoefficients<std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs>>(coefs); in LVDBE_SetFilters()
121 coefs = {LVDBE_BPF_Table[Offset].A0, 0.0, -(LVDBE_BPF_Table[Offset].A0), in LVDBE_SetFilters()
124 ->setCoefficients<std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs>>(coefs); in LVDBE_SetFilters()
/aosp12/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerFirProcess.h378 const int coefShift, const int halfNumCoefs, const TC* const coefs, in fir() argument
391 const TC* coefsP = coefs + indexP*halfNumCoefs; in fir()
392 const TC* coefsN = coefs + indexN*halfNumCoefs; in fir()
404 const TC* coefsP = coefs + indexP*halfNumCoefs; in fir()
405 const TC* coefsN = coefs + indexN*halfNumCoefs; in fir()
429 >> ((sizeof(phase)-sizeof(*coefs))*8 + 1); in fir()
H A DAudioResamplerDyn.cpp267 TC *coefs = nullptr; in createKaiserFir() local
269 reinterpret_cast<void **>(&coefs), in createKaiserFir()
273 c.mFirCoefs = coefs; in createKaiserFir()
275 mCoefBuffer = coefs; in createKaiserFir()
283 firKaiserGen(coefs, phases, halfLength, stopBandAtten, fcr, attenuation); in createKaiserFir()
309 testFir(coefs, c.mL, c.mHalfNumCoefs, fp, fs, passSteps, passSteps * c.mL /*stopSteps*/, in createKaiserFir()
640 const TC* const coefs = mConstants.mFirCoefs; in resample() local
725 coefShift, halfNumCoefs, coefs, in resample()
H A DAudioResamplerSinc.h60 const int32_t* coefs, size_t offset,
H A DAudioResamplerSinc.cpp599 const int32_t* coefs, size_t offset, in interpolate() argument
602 int32_t c0 = coefs[0]; in interpolate()
603 int32_t c1 = coefs[offset]; in interpolate()
/aosp12/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
H A DLVREV_ApplyNewSettings.cpp76 const std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVREV_ApplyNewSettings() local
79 new android::audio_utils::BiquadFilter<LVM_FLOAT>(FCC_1, coefs)); in LVREV_ApplyNewSettings()
104 const std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVREV_ApplyNewSettings() local
107 new android::audio_utils::BiquadFilter<LVM_FLOAT>(FCC_1, coefs)); in LVREV_ApplyNewSettings()
232 const std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVREV_ApplyNewSettings() local
235 new android::audio_utils::BiquadFilter<LVM_FLOAT>(FCC_1, coefs)); in LVREV_ApplyNewSettings()
/aosp12/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_Control.cpp311 const std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVPSA_SetBPFCoefficients() local
317 coefs); in LVPSA_SetBPFCoefficients()
333 const std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVPSA_SetBPFCoefficients() local
339 coefs); in LVPSA_SetBPFCoefficients()
/aosp12/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_Control.cpp204 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVEQNB_SetCoefficients() local
210 coefs); in LVEQNB_SetCoefficients()
/aosp12/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp266 const float *coefs = rdyn->getFilterCoefs(); in testFilterResponse() local
291 android::testFir(coefs, phases, halfLength, fp / phases, fs / phases, in testFilterResponse()
/aosp12/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
H A DLVM_Control.cpp282 std::array<LVM_FLOAT, android::audio_utils::kBiquadNumCoefs> coefs = { in LVM_SetTrebleBoost() local
286 new android::audio_utils::BiquadFilter<LVM_FLOAT>(pParams->NrChannels, coefs)); in LVM_SetTrebleBoost()