Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | /* Copyright (C) 2002 Jean-Marc Valin |
| 2 | File: hexc_table.c |
| 3 | Codebook for high-band excitation in SB-CELP mode (8000 bps with sign) |
| 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 | const signed char hexc_table[1024] = { |
| 34 | -24, 21, -20, 5, -5, -7, 14, -10, |
| 35 | 2, -27, 16, -20, 0, -32, 26, 19, |
| 36 | 8, -11, -41, 31, 28, -27, -32, 34, |
| 37 | 42, 34, -17, 22, -10, 13, -29, 18, |
| 38 | -12, -26, -24, 11, 22, 5, -5, -5, |
| 39 | 54, -68, -43, 57, -25, 24, 4, 4, |
| 40 | 26, -8, -12, -17, 54, 30, -45, 1, |
| 41 | 10, -15, 18, -41, 11, 68, -67, 37, |
| 42 | -16, -24, -16, 38, -22, 6, -29, 30, |
| 43 | 66, -27, 5, 7, -16, 13, 2, -12, |
| 44 | -7, -3, -20, 36, 4, -28, 9, 3, |
| 45 | 32, 48, 26, 39, 3, 0, 7, -21, |
| 46 | -13, 5, -82, -7, 73, -20, 34, -9, |
| 47 | -5, 1, -1, 10, -5, -10, -1, 9, |
| 48 | 1, -9, 10, 0, -14, 11, -1, -2, |
| 49 | -1, 11, 20, 96, -81, -22, -12, -9, |
| 50 | -58, 9, 24, -30, 26, -35, 27, -12, |
| 51 | 13, -18, 56, -59, 15, -7, 23, -15, |
| 52 | -1, 6, -25, 14, -22, -20, 47, -11, |
| 53 | 16, 2, 38, -23, -19, -30, -9, 40, |
| 54 | -11, 5, 4, -6, 8, 26, -21, -11, |
| 55 | 127, 4, 1, 6, -9, 2, -7, -2, |
| 56 | -3, 7, -5, 10, -19, 7, -106, 91, |
| 57 | -3, 9, -4, 21, -8, 26, -80, 8, |
| 58 | 1, -2, -10, -17, -17, -27, 32, 71, |
| 59 | 6, -29, 11, -23, 54, -38, 29, -22, |
| 60 | 39, 87, -31, -12, -20, 3, -2, -2, |
| 61 | 2, 20, 0, -1, -35, 27, 9, -6, |
| 62 | -12, 3, -12, -6, 13, 1, 14, -22, |
| 63 | -59, -15, -17, -25, 13, -7, 7, 3, |
| 64 | 0, 1, -7, 6, -3, 61, -37, -23, |
| 65 | -23, -29, 38, -31, 27, 1, -8, 2, |
| 66 | -27, 23, -26, 36, -34, 5, 24, -24, |
| 67 | -6, 7, 3, -59, 78, -62, 44, -16, |
| 68 | 1, 6, 0, 17, 8, 45, 0, -110, |
| 69 | 6, 14, -2, 32, -77, -56, 62, -3, |
| 70 | 3, -13, 4, -16, 102, -15, -36, -1, |
| 71 | 9, -113, 6, 23, 0, 9, 9, 5, |
| 72 | -8, -1, -14, 5, -12, 121, -53, -27, |
| 73 | -8, -9, 22, -13, 3, 2, -3, 1, |
| 74 | -2, -71, 95, 38, -19, 15, -16, -5, |
| 75 | 71, 10, 2, -32, -13, -5, 15, -1, |
| 76 | -2, -14, -85, 30, 29, 6, 3, 2, |
| 77 | 0, 0, 0, 0, 0, 0, 0, 0, |
| 78 | 2, -65, -56, -9, 18, 18, 23, -14, |
| 79 | -2, 0, 12, -29, 26, -12, 1, 2, |
| 80 | -12, -64, 90, -6, 4, 1, 5, -5, |
| 81 | -110, -3, -31, 22, -29, 9, 0, 8, |
| 82 | -40, -5, 21, -5, -5, 13, 10, -18, |
| 83 | 40, 1, 35, -20, 30, -28, 11, -6, |
| 84 | 19, 7, 14, 18, -64, 9, -6, 16, |
| 85 | 51, 68, 8, 16, 12, -8, 0, -9, |
| 86 | 20, -22, 25, 7, -4, -13, 41, -35, |
| 87 | 93, -18, -54, 11, -1, 1, -9, 4, |
| 88 | -66, 66, -31, 20, -22, 25, -23, 11, |
| 89 | 10, 9, 19, 15, 11, -5, -31, -10, |
| 90 | -23, -28, -6, -6, -3, -4, 5, 3, |
| 91 | -28, 22, -11, -42, 25, -25, -16, 41, |
| 92 | 34, 47, -6, 2, 42, -19, -22, 5, |
| 93 | -39, 32, 6, -35, 22, 17, -30, 8, |
| 94 | -26, -11, -11, 3, -12, 33, 33, -37, |
| 95 | 21, -1, 6, -4, 3, 0, -5, 5, |
| 96 | 12, -12, 57, 27, -61, -3, 20, -17, |
| 97 | 2, 0, 4, 0, -2, -33, -58, 81, |
| 98 | -23, 39, -10, -5, 2, 6, -7, 5, |
| 99 | 4, -3, -2, -13, -23, -72, 107, 15, |
| 100 | -5, 0, -7, -3, -6, 5, -4, 15, |
| 101 | 47, 12, -31, 25, -16, 8, 22, -25, |
| 102 | -62, -56, -18, 14, 28, 12, 2, -11, |
| 103 | 74, -66, 41, -20, -7, 16, -20, 16, |
| 104 | -8, 0, -16, 4, -19, 92, 12, -59, |
| 105 | -14, -39, 49, -25, -16, 23, -27, 19, |
| 106 | -3, -33, 19, 85, -29, 6, -7, -10, |
| 107 | 16, -7, -12, 1, -6, 2, 4, -2, |
| 108 | 64, 10, -25, 41, -2, -31, 15, 0, |
| 109 | 110, 50, 69, 35, 28, 19, -10, 2, |
| 110 | -43, -49, -56, -15, -16, 10, 3, 12, |
| 111 | -1, -8, 1, 26, -12, -1, 7, -11, |
| 112 | -27, 41, 25, 1, -11, -18, 22, -7, |
| 113 | -1, -47, -8, 23, -3, -17, -7, 18, |
| 114 | -125, 59, -5, 3, 18, 1, 2, 3, |
| 115 | 27, -35, 65, -53, 50, -46, 37, -21, |
| 116 | -28, 7, 14, -37, -5, -5, 12, 5, |
| 117 | -8, 78, -19, 21, -6, -16, 8, -7, |
| 118 | 5, 2, 7, 2, 10, -6, 12, -60, |
| 119 | 44, 11, -36, -32, 31, 0, 2, -2, |
| 120 | 2, 1, -3, 7, -10, 17, -21, 10, |
| 121 | 6, -2, 19, -2, 59, -38, -86, 38, |
| 122 | 8, -41, -30, -45, -33, 7, 15, 28, |
| 123 | 29, -7, 24, -40, 7, 7, 5, -2, |
| 124 | 9, 24, -23, -18, 6, -29, 30, 2, |
| 125 | 28, 49, -11, -46, 10, 43, -13, -9, |
| 126 | -1, -3, -7, -7, -17, -6, 97, -33, |
| 127 | -21, 3, 5, 1, 12, -43, -8, 28, |
| 128 | 7, -43, -7, 17, -20, 19, -1, 2, |
| 129 | -13, 9, 54, 34, 9, -28, -11, -9, |
| 130 | -17, 110, -59, 44, -26, 0, 3, -12, |
| 131 | -47, 73, -34, -43, 38, -33, 16, -5, |
| 132 | -46, -4, -6, -2, -25, 19, -29, 28, |
| 133 | -13, 5, 14, 27, -40, -43, 4, 32, |
| 134 | -13, -2, -35, -4, 112, -42, 9, -12, |
| 135 | 37, -28, 17, 14, -19, 35, -39, 23, |
| 136 | 3, -14, -1, -57, -5, 94, -9, 3, |
| 137 | -39, 5, 30, -10, -32, 42, -13, -14, |
| 138 | -97, -63, 30, -9, 1, -7, 12, 5, |
| 139 | 20, 17, -9, -36, -30, 25, 47, -9, |
| 140 | -15, 12, -22, 98, -8, -50, 15, -27, |
| 141 | 21, -16, -11, 2, 12, -10, 10, -3, |
| 142 | 33, 36, -96, 0, -17, 31, -9, 9, |
| 143 | 3, -20, 13, -11, 8, -4, 10, -10, |
| 144 | 9, 1, 112, -70, -27, 5, -21, 2, |
| 145 | -57, -3, -29, 10, 19, -21, 21, -10, |
| 146 | -66, -3, 91, -35, 30, -12, 0, -7, |
| 147 | 59, -28, 26, 2, 14, -18, 1, 1, |
| 148 | 11, 17, 20, -54, -59, 27, 4, 29, |
| 149 | 32, 5, 19, 12, -4, 1, 7, -10, |
| 150 | 5, -2, 10, 0, 23, -5, 28, -104, |
| 151 | 46, 11, 16, 3, 29, 1, -8, -14, |
| 152 | 1, 7, -50, 88, -62, 26, 8, -17, |
| 153 | -14, 50, 0, 32, -12, -3, -27, 18, |
| 154 | -8, -5, 8, 3, -20, -11, 37, -12, |
| 155 | 9, 33, 46, -101, -1, -4, 1, 6, |
| 156 | -1, 28, -42, -15, 16, 5, -1, -2, |
| 157 | -55, 85, 38, -9, -4, 11, -2, -9, |
| 158 | -6, 3, -20, -10, -77, 89, 24, -3, |
| 159 | -104, -57, -26, -31, -20, -6, -9, 14, |
| 160 | 20, -23, 46, -15, -31, 28, 1, -15, |
| 161 | -2, 6, -2, 31, 45, -76, 23, -25, |
| 162 | }; |