summaryrefslogtreecommitdiff
path: root/gr-codec2-vocoder/src/lib/codec2/codebookdvq.c
diff options
context:
space:
mode:
Diffstat (limited to 'gr-codec2-vocoder/src/lib/codec2/codebookdvq.c')
-rw-r--r--gr-codec2-vocoder/src/lib/codec2/codebookdvq.c119
1 files changed, 119 insertions, 0 deletions
diff --git a/gr-codec2-vocoder/src/lib/codec2/codebookdvq.c b/gr-codec2-vocoder/src/lib/codec2/codebookdvq.c
new file mode 100644
index 000000000..63cd373e8
--- /dev/null
+++ b/gr-codec2-vocoder/src/lib/codec2/codebookdvq.c
@@ -0,0 +1,119 @@
+/* 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
+};
+
+const struct lsp_codebook lsp_cbdvq[] = {
+ /* 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
+ },
+ { 0, 0, 0, 0 }
+};