diff options
author | Johnathan Corgan | 2011-07-18 12:01:52 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-07-18 12:01:52 -0700 |
commit | c067ea65d7433d4111b344ded6dfbf089062cf33 (patch) | |
tree | a64c0ccd94d52138dfa5bd2e2d959548e124b2cf /gr-codec2-vocoder/src/lib/codec2/codebookd.c | |
parent | 7d328d30b395cde3bfbe5d3ee2e4ffcd46255e03 (diff) | |
parent | c9256024ea6b6956f7969fc742d6514810db9812 (diff) | |
download | gnuradio-c067ea65d7433d4111b344ded6dfbf089062cf33.tar.gz gnuradio-c067ea65d7433d4111b344ded6dfbf089062cf33.tar.bz2 gnuradio-c067ea65d7433d4111b344ded6dfbf089062cf33.zip |
Merge remote branch 'ttsou/codec2' into wip/vocoders
Conflicts:
config/Makefile.am
configure.ac
Diffstat (limited to 'gr-codec2-vocoder/src/lib/codec2/codebookd.c')
-rw-r--r-- | gr-codec2-vocoder/src/lib/codec2/codebookd.c | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/gr-codec2-vocoder/src/lib/codec2/codebookd.c b/gr-codec2-vocoder/src/lib/codec2/codebookd.c new file mode 100644 index 000000000..fbe12e5ed --- /dev/null +++ b/gr-codec2-vocoder/src/lib/codec2/codebookd.c @@ -0,0 +1,209 @@ +/* THIS IS A GENERATED FILE. Edit generate_codebook.c and its input */ + +/* + * This intermediary file and the files that used to create it are under + * The LGPL. See the file COPYING. + */ + +#include "defines.h" + + /* codebook/dlsp1.txt */ +static const float codes0[] = { + 225, + 250, + 275, + 300, + 325, + 350, + 375, + 400, + 425, + 450, + 475, + 500, + 525, + 550, + 575, + 600 +}; + /* codebook/dlsp2.txt */ +static const float codes1[] = { + 25, + 50, + 75, + 100, + 125, + 150, + 175, + 200, + 225, + 250, + 275, + 300, + 325, + 350, + 375, + 400 +}; + /* codebook/dlsp3.txt */ +static const float codes2[] = { + 50, + 75, + 100, + 120, + 150, + 250, + 350, + 450 +}; + /* codebook/dlsp4.txt */ +static const float codes3[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp5.txt */ +static const float codes4[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp6.txt */ +static const float codes5[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp7.txt */ +static const float codes6[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp8.txt */ +static const float codes7[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp9.txt */ +static const float codes8[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + /* codebook/dlsp10.txt */ +static const float codes9[] = { + 50, + 100, + 200, + 300, + 425, + 550, + 675, + 800 +}; + +const struct lsp_codebook lsp_cbd[] = { + /* codebook/dlsp1.txt */ + { + 1, + 4, + 16, + codes0 + }, + /* codebook/dlsp2.txt */ + { + 1, + 4, + 16, + codes1 + }, + /* codebook/dlsp3.txt */ + { + 1, + 3, + 8, + codes2 + }, + /* codebook/dlsp4.txt */ + { + 1, + 3, + 8, + codes3 + }, + /* codebook/dlsp5.txt */ + { + 1, + 3, + 8, + codes4 + }, + /* codebook/dlsp6.txt */ + { + 1, + 3, + 8, + codes5 + }, + /* codebook/dlsp7.txt */ + { + 1, + 3, + 8, + codes6 + }, + /* codebook/dlsp8.txt */ + { + 1, + 3, + 8, + codes7 + }, + /* codebook/dlsp9.txt */ + { + 1, + 3, + 8, + codes8 + }, + /* codebook/dlsp10.txt */ + { + 1, + 3, + 8, + codes9 + }, + { 0, 0, 0, 0 } +}; |