summaryrefslogtreecommitdiff
path: root/gr-codec2-vocoder/src/lib/codec2/codebook.c
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-18 12:01:52 -0700
committerJohnathan Corgan2011-07-18 12:01:52 -0700
commitc067ea65d7433d4111b344ded6dfbf089062cf33 (patch)
treea64c0ccd94d52138dfa5bd2e2d959548e124b2cf /gr-codec2-vocoder/src/lib/codec2/codebook.c
parent7d328d30b395cde3bfbe5d3ee2e4ffcd46255e03 (diff)
parentc9256024ea6b6956f7969fc742d6514810db9812 (diff)
downloadgnuradio-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/codebook.c')
-rw-r--r--gr-codec2-vocoder/src/lib/codec2/codebook.c245
1 files changed, 245 insertions, 0 deletions
diff --git a/gr-codec2-vocoder/src/lib/codec2/codebook.c b/gr-codec2-vocoder/src/lib/codec2/codebook.c
new file mode 100644
index 000000000..70e1d2abc
--- /dev/null
+++ b/gr-codec2-vocoder/src/lib/codec2/codebook.c
@@ -0,0 +1,245 @@
+/* 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/lsp1.txt */
+static const float codes0[] = {
+ 225,
+ 250,
+ 275,
+ 300,
+ 325,
+ 350,
+ 375,
+ 400,
+ 425,
+ 450,
+ 475,
+ 500,
+ 525,
+ 550,
+ 575,
+ 600
+};
+ /* codebook/lsp2.txt */
+static const float codes1[] = {
+ 325,
+ 350,
+ 375,
+ 400,
+ 425,
+ 450,
+ 475,
+ 500,
+ 525,
+ 550,
+ 575,
+ 600,
+ 625,
+ 650,
+ 675,
+ 700
+};
+ /* codebook/lsp3.txt */
+static const float codes2[] = {
+ 500,
+ 550,
+ 600,
+ 650,
+ 700,
+ 750,
+ 800,
+ 850,
+ 900,
+ 950,
+ 1000,
+ 1050,
+ 1100,
+ 1150,
+ 1200,
+ 1250
+};
+ /* codebook/lsp4.txt */
+static const float codes3[] = {
+ 700,
+ 800,
+ 900,
+ 1000,
+ 1100,
+ 1200,
+ 1300,
+ 1400,
+ 1500,
+ 1600,
+ 1700,
+ 1800,
+ 1900,
+ 2000,
+ 2100,
+ 2200
+};
+ /* codebook/lsp5.txt */
+static const float codes4[] = {
+ 950,
+ 1050,
+ 1150,
+ 1250,
+ 1350,
+ 1450,
+ 1550,
+ 1650,
+ 1750,
+ 1850,
+ 1950,
+ 2050,
+ 2150,
+ 2250,
+ 2350,
+ 2450
+};
+ /* codebook/lsp6.txt */
+static const float codes5[] = {
+ 1100,
+ 1200,
+ 1300,
+ 1400,
+ 1500,
+ 1600,
+ 1700,
+ 1800,
+ 1900,
+ 2000,
+ 2100,
+ 2200,
+ 2300,
+ 2400,
+ 2500,
+ 2600
+};
+ /* codebook/lsp7.txt */
+static const float codes6[] = {
+ 1500,
+ 1600,
+ 1700,
+ 1800,
+ 1900,
+ 2000,
+ 2100,
+ 2200,
+ 2300,
+ 2400,
+ 2500,
+ 2600,
+ 2700,
+ 2800,
+ 2900,
+ 3000
+};
+ /* codebook/lsp8.txt */
+static const float codes7[] = {
+ 2300,
+ 2400,
+ 2500,
+ 2600,
+ 2700,
+ 2800,
+ 2900,
+ 3000
+};
+ /* codebook/lsp9.txt */
+static const float codes8[] = {
+ 2500,
+ 2600,
+ 2700,
+ 2800,
+ 2900,
+ 3000,
+ 3100,
+ 3200
+};
+ /* codebook/lsp10.txt */
+static const float codes9[] = {
+ 2900,
+ 3100,
+ 3300,
+ 3500
+};
+
+const struct lsp_codebook lsp_cb[] = {
+ /* codebook/lsp1.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes0
+ },
+ /* codebook/lsp2.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes1
+ },
+ /* codebook/lsp3.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes2
+ },
+ /* codebook/lsp4.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes3
+ },
+ /* codebook/lsp5.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes4
+ },
+ /* codebook/lsp6.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes5
+ },
+ /* codebook/lsp7.txt */
+ {
+ 1,
+ 4,
+ 16,
+ codes6
+ },
+ /* codebook/lsp8.txt */
+ {
+ 1,
+ 3,
+ 8,
+ codes7
+ },
+ /* codebook/lsp9.txt */
+ {
+ 1,
+ 3,
+ 8,
+ codes8
+ },
+ /* codebook/lsp10.txt */
+ {
+ 1,
+ 2,
+ 4,
+ codes9
+ },
+ { 0, 0, 0, 0 }
+};