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/hexc_10_32_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/hexc_10_32_table.c')
-rw-r--r-- | lib/rbcodec/codecs/libspeex/hexc_10_32_table.c | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libspeex/hexc_10_32_table.c b/lib/rbcodec/codecs/libspeex/hexc_10_32_table.c new file mode 100644 index 0000000000..9a924e7ff0 --- /dev/null +++ b/lib/rbcodec/codecs/libspeex/hexc_10_32_table.c | |||
@@ -0,0 +1,68 @@ | |||
1 | /* Copyright (C) 2002 Jean-Marc Valin | ||
2 | File: hexc_10_32_table.c | ||
3 | Codebook for high-band excitation in SB-CELP mode (4000 bps) | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, are permitted provided that the following conditions | ||
7 | are met: | ||
8 | |||
9 | - Redistributions of source code must retain the above copyright | ||
10 | notice, this list of conditions and the following disclaimer. | ||
11 | |||
12 | - 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 | - Neither the name of the Xiph.org Foundation nor the names of its | ||
17 | contributors may be used to endorse or promote products derived from | ||
18 | this software without specific prior written permission. | ||
19 | |||
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR | ||
24 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
25 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
26 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
27 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
28 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
29 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | */ | ||
32 | |||
33 | #include "config-speex.h" | ||
34 | |||
35 | const signed char hexc_10_32_table[320] HEXC_ICONST_ATTR = { | ||
36 | -3, -2, -1, 0, -4, 5, 35, -40, -9, 13, | ||
37 | -44, 5, -27, -1, -7, 6, -11, 7, -8, 7, | ||
38 | 19, -14, 15, -4, 9, -10, 10, -8, 10, -9, | ||
39 | -1, 1, 0, 0, 2, 5, -18, 22, -53, 50, | ||
40 | 1, -23, 50, -36, 15, 3, -13, 14, -10, 6, | ||
41 | 1, 5, -3, 4, -2, 5, -32, 25, 5, -2, | ||
42 | -1, -4, 1, 11, -29, 26, -6, -15, 30, -18, | ||
43 | 0, 15, -17, 40, -41, 3, 9, -2, -2, 3, | ||
44 | -3, -1, -5, 2, 21, -6, -16, -21, 23, 2, | ||
45 | 60, 15, 16, -16, -9, 14, 9, -1, 7, -9, | ||
46 | 0, 1, 1, 0, -1, -6, 17, -28, 54, -45, | ||
47 | -1, 1, -1, -6, -6, 2, 11, 26, -29, -2, | ||
48 | 46, -21, 34, 12, -23, 32, -23, 16, -10, 3, | ||
49 | 66, 19, -20, 24, 7, 11, -3, 0, -3, -1, | ||
50 | -50, -46, 2, -18, -3, 4, -1, -2, 3, -3, | ||
51 | -19, 41, -36, 9, 11, -24, 21, -16, 9, -3, | ||
52 | -25, -3, 10, 18, -9, -2, -5, -1, -5, 6, | ||
53 | -4, -3, 2, -26, 21, -19, 35, -15, 7, -13, | ||
54 | 17, -19, 39, -43, 48, -31, 16, -9, 7, -2, | ||
55 | -5, 3, -4, 9, -19, 27, -55, 63, -35, 10, | ||
56 | 26, -44, -2, 9, 4, 1, -6, 8, -9, 5, | ||
57 | -8, -1, -3, -16, 45, -42, 5, 15, -16, 10, | ||
58 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
59 | -16, 24, -55, 47, -38, 27, -19, 7, -3, 1, | ||
60 | 16, 27, 20, -19, 18, 5, -7, 1, -5, 2, | ||
61 | -6, 8, -22, 0, -3, -3, 8, -1, 7, -8, | ||
62 | 1, -3, 5, 0, 17, -48, 58, -52, 29, -7, | ||
63 | -2, 3, -10, 6, -26, 58, -31, 1, -6, 3, | ||
64 | 93, -29, 39, 3, 17, 5, 6, -1, -1, -1, | ||
65 | 27, 13, 10, 19, -7, -34, 12, 10, -4, 9, | ||
66 | -76, 9, 8, -28, -2, -11, 2, -1, 3, 1, | ||
67 | -83, 38, -39, 4, -16, -6, -2, -5, 5, -2, | ||
68 | }; | ||