Go to the source code of this file.
◆ ivfilt_()
Definition at line 89 of file ivfilt.c.
References len().
Referenced by analys_().
97 real r__[3], pc1, pc2;
110 for (i__ = 1; i__ <= 3; ++i__) {
114 for (j = (i__ << 2) + *
len - *nsamp; j <= i__1; j += 2) {
115 r__[i__ - 1] += lpbuf[j] * lpbuf[j - k];
123 if (r__[0] > 1e-10f) {
124 ivrc[1] = r__[1] / r__[0];
125 ivrc[2] = (r__[2] - ivrc[1] * r__[1]) / (r__[0] - ivrc[1] * r__[1]);
126 pc1 = ivrc[1] - ivrc[1] * ivrc[2];
131 for (i__ = *
len + 1 - *nsamp; i__ <= i__1; ++i__) {
132 ivbuf[i__] = lpbuf[i__] - pc1 * lpbuf[i__ - 4] - pc2 * lpbuf[i__ - 8];
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)