diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-12-30 19:20:20 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-12-30 19:20:20 +0000 |
commit | a9d66c6a759515c7061e2e8aac661eeb0082ea1e (patch) | |
tree | da0bfb62d614fcad482cc5267f0a4348cbde5256 /filt/f_5th.c | |
parent | 03a2ac933087722b3754f5eca349b26193e9bffd (diff) | |
download | radiola-a9d66c6a759515c7061e2e8aac661eeb0082ea1e.tar.gz radiola-a9d66c6a759515c7061e2e8aac661eeb0082ea1e.zip |
More configurable sources. Move some math functions to core/math.h. Move delay filter from sdr_fm
Diffstat (limited to 'filt/f_5th.c')
-rw-r--r-- | filt/f_5th.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/filt/f_5th.c b/filt/f_5th.c deleted file mode 100644 index 811fb18..0000000 --- a/filt/f_5th.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "filt.h" - -void f_5th(int16_t *data, int length, int16_t *hist) -/* for half of interleaved data */ -{ - int i; - int16_t a, b, c, d, e, f; - a = hist[1]; - b = hist[2]; - c = hist[3]; - d = hist[4]; - e = hist[5]; - f = data[0]; - /* a downsample should improve resolution, so don't fully shift */ - data[0] = (a + (b+e)*5 + (c+d)*10 + f) >> 4; - for (i=4; i<length; i+=4) { - a = c; - b = d; - c = e; - d = f; - e = data[i-2]; - f = data[i]; - data[i/2] = (a + (b+e)*5 + (c+d)*10 + f) >> 4; - } - /* archive */ - hist[0] = a; - hist[1] = b; - hist[2] = c; - hist[3] = d; - hist[4] = e; - hist[5] = f; -}
\ No newline at end of file |