diff options
Diffstat (limited to 'lib/rbcodec/codecs/libspeex/gain_table_lbr.c')
-rw-r--r-- | lib/rbcodec/codecs/libspeex/gain_table_lbr.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libspeex/gain_table_lbr.c b/lib/rbcodec/codecs/libspeex/gain_table_lbr.c new file mode 100644 index 0000000000..b74df318a3 --- /dev/null +++ b/lib/rbcodec/codecs/libspeex/gain_table_lbr.c | |||
@@ -0,0 +1,66 @@ | |||
1 | /* Copyright (C) 2002 Jean-Marc Valin | ||
2 | File: gain_table_lbr.c | ||
3 | Codebook for 3-tap pitch prediction gain (32 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_lbr[128] GAIN_ICONST_ATTR = { | ||
35 | -32, -32, -32, 0, | ||
36 | -31, -58, -16, 22, | ||
37 | -41, -24, -43, 14, | ||
38 | -56, -22, -55, 29, | ||
39 | -13, 33, -41, 47, | ||
40 | -4, -39, -9, 29, | ||
41 | -41, 15, -12, 38, | ||
42 | -8, -15, -12, 31, | ||
43 | 1, 2, -44, 40, | ||
44 | -22, -66, -42, 27, | ||
45 | -38, 28, -23, 38, | ||
46 | -21, 14, -37, 31, | ||
47 | 0, 21, -50, 52, | ||
48 | -53, -71, -27, 33, | ||
49 | -37, -1, -19, 25, | ||
50 | -19, -5, -28, 22, | ||
51 | 6, 65, -44, 74, | ||
52 | -33, -48, -33, 9, | ||
53 | -40, 57, -14, 58, | ||
54 | -17, 4, -45, 32, | ||
55 | -31, 38, -33, 36, | ||
56 | -23, 28, -40, 39, | ||
57 | -43, 29, -12, 46, | ||
58 | -34, 13, -23, 28, | ||
59 | -16, 15, -27, 34, | ||
60 | -14, -82, -15, 43, | ||
61 | -31, 25, -32, 29, | ||
62 | -21, 5, -5, 38, | ||
63 | -47, -63, -51, 33, | ||
64 | -46, 12, 3, 47, | ||
65 | -28, -17, -29, 11, | ||
66 | -10, 14, -40, 38}; | ||