Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | /* Copyright (C) 2002 Jean-Marc Valin |
| 2 | File: exc_10_32_table.c |
| 3 | Codebook for excitation in narrowband 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 | |
| 34 | const signed char exc_10_32_table[320] = { |
| 35 | 7,17,17,27,25,22,12,4,-3,0, |
| 36 | 28,-36,39,-24,-15,3,-9,15,-5,10, |
| 37 | 31,-28,11,31,-21,9,-11,-11,-2,-7, |
| 38 | -25,14,-22,31,4,-14,19,-12,14,-5, |
| 39 | 4,-7,4,-5,9,0,-2,42,-47,-16, |
| 40 | 1,8,0,9,23,-57,0,28,-11,6, |
| 41 | -31,55,-45,3,-5,4,2,-2,4,-7, |
| 42 | -3,6,-2,7,-3,12,5,8,54,-10, |
| 43 | 8,-7,-8,-24,-25,-27,-14,-5,8,5, |
| 44 | 44,23,5,-9,-11,-11,-13,-9,-12,-8, |
| 45 | -29,-8,-22,6,-15,3,-12,-1,-5,-3, |
| 46 | 34,-1,29,-16,17,-4,12,2,1,4, |
| 47 | -2,-4,2,-1,11,-3,-52,28,30,-9, |
| 48 | -32,25,44,-20,-24,4,6,-1,0,0, |
| 49 | 0,0,0,0,0,0,0,0,0,0, |
| 50 | -25,-10,22,29,13,-13,-22,-13,-4,0, |
| 51 | -4,-16,10,15,-36,-24,28,25,-1,-3, |
| 52 | 66,-33,-11,-15,6,0,3,4,-2,5, |
| 53 | 24,-20,-47,29,19,-2,-4,-1,0,-1, |
| 54 | -2,3,1,8,-11,5,5,-57,28,28, |
| 55 | 0,-16,4,-4,12,-6,-1,2,-20,61, |
| 56 | -9,24,-22,-42,29,6,17,8,4,2, |
| 57 | -65,15,8,10,5,6,5,3,2,-2, |
| 58 | -3,5,-9,4,-5,23,13,23,-3,-63, |
| 59 | 3,-5,-4,-6,0,-3,23,-36,-46,9, |
| 60 | 5,5,8,4,9,-5,1,-3,10,1, |
| 61 | -6,10,-11,24,-47,31,22,-12,14,-10, |
| 62 | 6,11,-7,-7,7,-31,51,-12,-6,7, |
| 63 | 6,-17,9,-11,-20,52,-19,3,-6,-6, |
| 64 | -8,-5,23,-41,37,1,-21,10,-14,8, |
| 65 | 7,5,-15,-15,23,39,-26,-33,7,2, |
| 66 | -32,-30,-21,-8,4,12,17,15,14,11}; |