diff options
author | Sean Bartell <wingedtachikoma@gmail.com> | 2011-06-25 21:32:25 -0400 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-04-25 22:13:20 +0200 |
commit | f40bfc9267b13b54e6379dfe7539447662879d24 (patch) | |
tree | 9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libspeex/gain_table.c | |
parent | a0009907de7a0107d49040d8a180f140e2eff299 (diff) | |
download | rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip |
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97
Reviewed-on: http://gerrit.rockbox.org/137
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/codecs/libspeex/gain_table.c')
-rw-r--r-- | lib/rbcodec/codecs/libspeex/gain_table.c | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libspeex/gain_table.c b/lib/rbcodec/codecs/libspeex/gain_table.c new file mode 100644 index 0000000000..bf236e80fc --- /dev/null +++ b/lib/rbcodec/codecs/libspeex/gain_table.c | |||
@@ -0,0 +1,162 @@ | |||
1 | /* Copyright (C) 2002 Jean-Marc Valin | ||
2 | File: gain_table.c | ||
3 | Codebook for 3-tap pitch prediction gain (128 entries) | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, are permitted provided that the following conditions are | ||
7 | met: | ||
8 | |||
9 | 1. Redistributions of source code must retain the above copyright notice, | ||
10 | this list of conditions and the following disclaimer. | ||
11 | |||
12 | 2. Redistributions in binary form must reproduce the above copyright | ||
13 | notice, this list of conditions and the following disclaimer in the | ||
14 | documentation and/or other materials provided with the distribution. | ||
15 | |||
16 | 3. The name of the author may not be used to endorse or promote products | ||
17 | derived from this software without specific prior written permission. | ||
18 | |||
19 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
20 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
21 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
22 | DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | ||
23 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
26 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
27 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
28 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
29 | POSSIBILITY OF SUCH DAMAGE. | ||
30 | */ | ||
31 | |||
32 | #include "config-speex.h" | ||
33 | |||
34 | const signed char gain_cdbk_nb[512] GAIN_ICONST_ATTR = { | ||
35 | -32, -32, -32, 0, | ||
36 | -28, -67, -5, 33, | ||
37 | -42, -6, -32, 18, | ||
38 | -57, -10, -54, 35, | ||
39 | -16, 27, -41, 42, | ||
40 | 19, -19, -40, 36, | ||
41 | -45, 24, -21, 40, | ||
42 | -8, -14, -18, 28, | ||
43 | 1, 14, -58, 53, | ||
44 | -18, -88, -39, 39, | ||
45 | -38, 21, -18, 37, | ||
46 | -19, 20, -43, 38, | ||
47 | 10, 17, -48, 54, | ||
48 | -52, -58, -13, 33, | ||
49 | -44, -1, -11, 32, | ||
50 | -12, -11, -34, 22, | ||
51 | 14, 0, -46, 46, | ||
52 | -37, -35, -34, 5, | ||
53 | -25, 44, -30, 43, | ||
54 | 6, -4, -63, 49, | ||
55 | -31, 43, -41, 43, | ||
56 | -23, 30, -43, 41, | ||
57 | -43, 26, -14, 44, | ||
58 | -33, 1, -13, 27, | ||
59 | -13, 18, -37, 37, | ||
60 | -46, -73, -45, 34, | ||
61 | -36, 24, -25, 34, | ||
62 | -36, -11, -20, 19, | ||
63 | -25, 12, -18, 33, | ||
64 | -36, -69, -59, 34, | ||
65 | -45, 6, 8, 46, | ||
66 | -22, -14, -24, 18, | ||
67 | -1, 13, -44, 44, | ||
68 | -39, -48, -26, 15, | ||
69 | -32, 31, -37, 34, | ||
70 | -33, 15, -46, 31, | ||
71 | -24, 30, -36, 37, | ||
72 | -41, 31, -23, 41, | ||
73 | -50, 22, -4, 50, | ||
74 | -22, 2, -21, 28, | ||
75 | -17, 30, -34, 40, | ||
76 | -7, -60, -28, 29, | ||
77 | -38, 42, -28, 42, | ||
78 | -44, -11, 21, 43, | ||
79 | -16, 8, -44, 34, | ||
80 | -39, -55, -43, 21, | ||
81 | -11, -35, 26, 41, | ||
82 | -9, 0, -34, 29, | ||
83 | -8, 121, -81, 113, | ||
84 | 7, -16, -22, 33, | ||
85 | -37, 33, -31, 36, | ||
86 | -27, -7, -36, 17, | ||
87 | -34, 70, -57, 65, | ||
88 | -37, -11, -48, 21, | ||
89 | -40, 17, -1, 44, | ||
90 | -33, 6, -6, 33, | ||
91 | -9, 0, -20, 34, | ||
92 | -21, 69, -33, 57, | ||
93 | -29, 33, -31, 35, | ||
94 | -55, 12, -1, 49, | ||
95 | -33, 27, -22, 35, | ||
96 | -50, -33, -47, 17, | ||
97 | -50, 54, 51, 94, | ||
98 | -1, -5, -44, 35, | ||
99 | -4, 22, -40, 45, | ||
100 | -39, -66, -25, 24, | ||
101 | -33, 1, -26, 20, | ||
102 | -24, -23, -25, 12, | ||
103 | -11, 21, -45, 44, | ||
104 | -25, -45, -19, 17, | ||
105 | -43, 105, -16, 82, | ||
106 | 5, -21, 1, 41, | ||
107 | -16, 11, -33, 30, | ||
108 | -13, -99, -4, 57, | ||
109 | -37, 33, -15, 44, | ||
110 | -25, 37, -63, 54, | ||
111 | -36, 24, -31, 31, | ||
112 | -53, -56, -38, 26, | ||
113 | -41, -4, 4, 37, | ||
114 | -33, 13, -30, 24, | ||
115 | 49, 52, -94, 114, | ||
116 | -5, -30, -15, 23, | ||
117 | 1, 38, -40, 56, | ||
118 | -23, 12, -36, 29, | ||
119 | -17, 40, -47, 51, | ||
120 | -37, -41, -39, 11, | ||
121 | -49, 34, 0, 58, | ||
122 | -18, -7, -4, 34, | ||
123 | -16, 17, -27, 35, | ||
124 | 30, 5, -62, 65, | ||
125 | 4, 48, -68, 76, | ||
126 | -43, 11, -11, 38, | ||
127 | -18, 19, -15, 41, | ||
128 | -23, -62, -39, 23, | ||
129 | -42, 10, -2, 41, | ||
130 | -21, -13, -13, 25, | ||
131 | -9, 13, -47, 42, | ||
132 | -23, -62, -24, 24, | ||
133 | -44, 60, -21, 58, | ||
134 | -18, -3, -52, 32, | ||
135 | -22, 22, -36, 34, | ||
136 | -75, 57, 16, 90, | ||
137 | -19, 3, 10, 45, | ||
138 | -29, 23, -38, 32, | ||
139 | -5, -62, -51, 38, | ||
140 | -51, 40, -18, 53, | ||
141 | -42, 13, -24, 32, | ||
142 | -34, 14, -20, 30, | ||
143 | -56, -75, -26, 37, | ||
144 | -26, 32, 15, 59, | ||
145 | -26, 17, -29, 29, | ||
146 | -7, 28, -52, 53, | ||
147 | -12, -30, 5, 30, | ||
148 | -5, -48, -5, 35, | ||
149 | 2, 2, -43, 40, | ||
150 | 21, 16, 16, 75, | ||
151 | -25, -45, -32, 10, | ||
152 | -43, 18, -10, 42, | ||
153 | 9, 0, -1, 52, | ||
154 | -1, 7, -30, 36, | ||
155 | 19, -48, -4, 48, | ||
156 | -28, 25, -29, 32, | ||
157 | -22, 0, -31, 22, | ||
158 | -32, 17, -10, 36, | ||
159 | -64, -41, -62, 36, | ||
160 | -52, 15, 16, 58, | ||
161 | -30, -22, -32, 6, | ||
162 | -7, 9, -38, 36}; | ||