version 1.17, 2021/01/12 15:46:53 |
version 1.18, 2021/07/05 08:29:59 |
|
|
todo--; |
todo--; |
} else { |
} else { |
|
|
for (c = nch; c > 0; c--) |
for (c = 0; c < nch; c++) |
f[c] = 0; |
f[c] = 0; |
|
|
q = diff * p->filt_step; |
q = diff * p->filt_step; |
|
|
ds = resamp_filt[qi + 1] - s; |
ds = resamp_filt[qi + 1] - s; |
s += (int64_t)qf * ds >> RESAMP_STEP_BITS; |
s += (int64_t)qf * ds >> RESAMP_STEP_BITS; |
ctx = ctxbuf; |
ctx = ctxbuf; |
for (c = nch; c > 0; c--) { |
for (c = 0; c < nch; c++) { |
f[c] += (int64_t)ctx[n] * s; |
f[c] += (int64_t)ctx[n] * s; |
ctx += RESAMP_NCTX; |
ctx += RESAMP_NCTX; |
} |
} |
|
|
n = (n + 1) & (RESAMP_NCTX - 1); |
n = (n + 1) & (RESAMP_NCTX - 1); |
} |
} |
|
|
for (c = nch; c > 0; c--) { |
for (c = 0; c < nch; c++) { |
s = f[c] >> RESAMP_BITS; |
s = f[c] >> RESAMP_BITS; |
s = (int64_t)s * p->filt_cutoff >> RESAMP_BITS; |
s = (int64_t)s * p->filt_cutoff >> RESAMP_BITS; |
#if ADATA_BITS == 16 |
#if ADATA_BITS == 16 |