Home
last modified time | relevance | path

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

/system/media/audio_utils/include/audio_utils/
DBiquadFilter.h72 std::array<D, kBiquadNumCoefs> reduceCoefficients(const T& coef) { in reduceCoefficients() argument
74 if (coef.size() == kBiquadNumCoefs + 1) { in reduceCoefficients()
78 for (; offset < 2 && coef[offset] == 0 && coef[offset + 3] == 0; ++offset); in reduceCoefficients()
82 lcoef[0] = coef[offset] / coef[offset + 3]; in reduceCoefficients()
84 lcoef[i] = coef[i + offset] / coef[offset + 3]; in reduceCoefficients()
85 lcoef[i + 2] = coef[i + offset + 3] / coef[offset + 3]; in reduceCoefficients()
87 } else if (coef.size() == kBiquadNumCoefs) { in reduceCoefficients()
88 std::copy(coef.begin(), coef.end(), lcoef.begin()); in reduceCoefficients()
90 assert(coef.size() == kBiquadNumCoefs + 1 || coef.size() == kBiquadNumCoefs); in reduceCoefficients()
98 DEST& dest, size_t offset, size_t stride, size_t channelCount, const T& coef) { in setCoefficients() argument
[all …]