1 /* Copyright (C) 2002 Jean-Marc Valin 2 File: exc_5_256_table.c 3 Codebook for excitation in narrowband CELP mode (12800 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 34 const signed char exc_5_256_table[1280] = { 35 -8,-37,5,-43,5, 36 73,61,39,12,-3, 37 -61,-32,2,42,30, 38 -3,17,-27,9,34, 39 20,-1,-5,2,23, 40 -7,-46,26,53,-47, 41 20,-2,-33,-89,-51, 42 -64,27,11,15,-34, 43 -5,-56,25,-9,-1, 44 -29,1,40,67,-23, 45 -16,16,33,19,7, 46 14,85,22,-10,-10, 47 -12,-7,-1,52,89, 48 29,11,-20,-37,-46, 49 -15,17,-24,-28,24, 50 2,1,0,23,-101, 51 23,14,-1,-23,-18, 52 9,5,-13,38,1, 53 -28,-28,4,27,51, 54 -26,34,-40,35,47, 55 54,38,-54,-26,-6, 56 42,-25,13,-30,-36, 57 18,41,-4,-33,23, 58 -32,-7,-4,51,-3, 59 17,-52,56,-47,36, 60 -2,-21,36,10,8, 61 -33,31,19,9,-5, 62 -40,10,-9,-21,19, 63 18,-78,-18,-5,0, 64 -26,-36,-47,-51,-44, 65 18,40,27,-2,29, 66 49,-26,2,32,-54, 67 30,-73,54,3,-5, 68 36,22,53,10,-1, 69 -84,-53,-29,-5,3, 70 -44,53,-51,4,22, 71 71,-35,-1,33,-5, 72 -27,-7,36,17,-23, 73 -39,16,-9,-55,-15, 74 -20,39,-35,6,-39, 75 -14,18,48,-64,-17, 76 -15,9,39,81,37, 77 -68,37,47,-21,-6, 78 -104,13,6,9,-2, 79 35,8,-23,18,42, 80 45,21,33,-5,-49, 81 9,-6,-43,-56,39, 82 2,-16,-25,87,1, 83 -3,-9,17,-25,-11, 84 -9,-1,10,2,-14, 85 -14,4,-1,-10,28, 86 -23,40,-32,26,-9, 87 26,4,-27,-23,3, 88 42,-60,1,49,-3, 89 27,10,-52,-40,-2, 90 18,45,-23,17,-44, 91 3,-3,17,-46,52, 92 -40,-47,25,75,31, 93 -49,53,30,-30,-32, 94 -36,38,-6,-15,-16, 95 54,-27,-48,3,38, 96 -29,-32,-22,-14,-4, 97 -23,-13,32,-39,9, 98 8,-45,-13,34,-16, 99 49,40,32,31,28, 100 23,23,32,47,59, 101 -68,8,62,44,25, 102 -14,-24,-65,-16,36, 103 67,-25,-38,-21,4, 104 -33,-2,42,5,-63, 105 40,11,26,-42,-23, 106 -61,79,-31,23,-20, 107 10,-32,53,-25,-36, 108 10,-26,-5,3,0, 109 -71,5,-10,-37,1, 110 -24,21,-54,-17,1, 111 -29,-25,-15,-27,32, 112 68,45,-16,-37,-18, 113 -5,1,0,-77,71, 114 -6,3,-20,71,-67, 115 29,-35,10,-30,19, 116 4,16,17,5,0, 117 -14,19,2,28,26, 118 59,3,2,24,39, 119 55,-50,-45,-18,-17, 120 33,-35,14,-1,1, 121 8,87,-35,-29,0, 122 -27,13,-7,23,-13, 123 37,-40,50,-35,14, 124 19,-7,-14,49,54, 125 -5,22,-2,-29,-8, 126 -27,38,13,27,48, 127 12,-41,-21,-15,28, 128 7,-16,-24,-19,-20, 129 11,-20,9,2,13, 130 23,-20,11,27,-27, 131 71,-69,8,2,-6, 132 22,12,16,16,9, 133 -16,-8,-17,1,25, 134 1,40,-37,-33,66, 135 94,53,4,-22,-25, 136 -41,-42,25,35,-16, 137 -15,57,31,-29,-32, 138 21,16,-60,45,15, 139 -1,7,57,-26,-47, 140 -29,11,8,15,19, 141 -105,-8,54,27,10, 142 -17,6,-12,-1,-10, 143 4,0,23,-10,31, 144 13,11,10,12,-64, 145 23,-3,-8,-19,16, 146 52,24,-40,16,10, 147 40,5,9,0,-13, 148 -7,-21,-8,-6,-7, 149 -21,59,16,-53,18, 150 -60,11,-47,14,-18, 151 25,-13,-24,4,-39, 152 16,-28,54,26,-67, 153 30,27,-20,-52,20, 154 -12,55,12,18,-16, 155 39,-14,-6,-26,56, 156 -88,-55,12,25,26, 157 -37,6,75,0,-34, 158 -81,54,-30,1,-7, 159 49,-23,-14,21,10, 160 -62,-58,-57,-47,-34, 161 15,-4,34,-78,31, 162 25,-11,7,50,-10, 163 42,-63,14,-36,-4, 164 57,55,57,53,42, 165 -42,-1,15,40,37, 166 15,25,-11,6,1, 167 31,-2,-6,-1,-7, 168 -64,34,28,30,-1, 169 3,21,0,-88,-12, 170 -56,25,-28,40,8, 171 -28,-14,9,12,2, 172 -6,-17,22,49,-6, 173 -26,14,28,-20,4, 174 -12,50,35,40,13, 175 -38,-58,-29,17,30, 176 22,60,26,-54,-39, 177 -12,58,-28,-63,10, 178 -21,-8,-12,26,-62, 179 6,-10,-11,-22,-6, 180 -7,4,1,18,2, 181 -70,11,14,4,13, 182 19,-24,-34,24,67, 183 17,51,-21,13,23, 184 54,-30,48,1,-13, 185 80,26,-16,-2,13, 186 -4,6,-30,29,-24, 187 73,-58,30,-27,20, 188 -2,-21,41,45,30, 189 -27,-3,-5,-18,-20, 190 -49,-3,-35,10,42, 191 -19,-67,-53,-11,9, 192 13,-15,-33,-51,-30, 193 15,7,25,-30,4, 194 28,-22,-34,54,-29, 195 39,-46,20,16,34, 196 -4,47,75,1,-44, 197 -55,-24,7,-1,9, 198 -42,50,-8,-36,41, 199 68,0,-4,-10,-23, 200 -15,-50,64,36,-9, 201 -27,12,25,-38,-47, 202 -37,32,-49,51,-36, 203 2,-4,69,-26,19, 204 7,45,67,46,13, 205 -63,46,15,-47,4, 206 -41,13,-6,5,-21, 207 37,26,-55,-7,33, 208 -1,-28,10,-17,-64, 209 -14,0,-36,-17,93, 210 -3,-9,-66,44,-21, 211 3,-12,38,-6,-13, 212 -12,19,13,43,-43, 213 -10,-12,6,-5,9, 214 -49,32,-5,2,4, 215 5,15,-16,10,-21, 216 8,-62,-8,64,8, 217 79,-1,-66,-49,-18, 218 5,40,-5,-30,-45, 219 1,-6,21,-32,93, 220 -18,-30,-21,32,21, 221 -18,22,8,5,-41, 222 -54,80,22,-10,-7, 223 -8,-23,-64,66,56, 224 -14,-30,-41,-46,-14, 225 -29,-37,27,-14,42, 226 -2,-9,-29,34,14, 227 33,-14,22,4,10, 228 26,26,28,32,23, 229 -72,-32,3,0,-14, 230 35,-42,-78,-32,6, 231 29,-18,-45,-5,7, 232 -33,-45,-3,-22,-34, 233 8,-8,4,-51,-25, 234 -9,59,-78,21,-5, 235 -25,-48,66,-15,-17, 236 -24,-49,-13,25,-23, 237 -64,-6,40,-24,-19, 238 -11,57,-33,-8,1, 239 10,-52,-54,28,39, 240 49,34,-11,-61,-41, 241 -43,10,15,-15,51, 242 30,15,-51,32,-34, 243 -2,-34,14,18,16, 244 1,1,-3,-3,1, 245 1,-18,6,16,48, 246 12,-5,-42,7,36, 247 48,7,-20,-10,7, 248 12,2,54,39,-38, 249 37,54,4,-11,-8, 250 -46,-10,5,-10,-34, 251 46,-12,29,-37,39, 252 36,-11,24,56,17, 253 14,20,25,0,-25, 254 -28,55,-7,-5,27, 255 3,9,-26,-8,6, 256 -24,-10,-30,-31,-34, 257 18,4,22,21,40, 258 -1,-29,-37,-8,-21, 259 92,-29,11,-3,11, 260 73,23,22,7,4, 261 -44,-9,-11,21,-13, 262 11,9,-78,-1,47, 263 114,-12,-37,-19,-5, 264 -11,-22,19,12,-30, 265 7,38,45,-21,-8, 266 -9,55,-45,56,-21, 267 7,17,46,-57,-87, 268 -6,27,31,31,7, 269 -56,-12,46,21,-5, 270 -12,36,3,3,-21, 271 43,19,12,-7,9, 272 -14,0,-9,-33,-91, 273 7,26,3,-11,64, 274 83,-31,-46,25,2, 275 9,5,2,2,-1, 276 20,-17,10,-5,-27, 277 -8,20,8,-19,16, 278 -21,-13,-31,5,5, 279 42,24,9,34,-20, 280 28,-61,22,11,-39, 281 64,-20,-1,-30,-9, 282 -20,24,-25,-24,-29, 283 22,-60,6,-5,41, 284 -9,-87,14,34,15, 285 -57,52,69,15,-3, 286 -102,58,16,3,6, 287 60,-75,-32,26,7, 288 -57,-27,-32,-24,-21, 289 -29,-16,62,-46,31, 290 30,-27,-15,7,15}; 291