Benny Prijono | eb30bf5 | 2006-03-04 20:43:52 +0000 | [diff] [blame^] | 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 | const signed char gain_cdbk_lbr[96] = { |
| 33 | -32,-32,-32, |
| 34 | -31,-58,-16, |
| 35 | -41,-24,-43, |
| 36 | -56,-22,-55, |
| 37 | -13,33,-41, |
| 38 | -4,-39,-9, |
| 39 | -41,15,-12, |
| 40 | -8,-15,-12, |
| 41 | 1,2,-44, |
| 42 | -22,-66,-42, |
| 43 | -38,28,-23, |
| 44 | -21,14,-37, |
| 45 | 0,21,-50, |
| 46 | -53,-71,-27, |
| 47 | -37,-1,-19, |
| 48 | -19,-5,-28, |
| 49 | 6,65,-44, |
| 50 | -33,-48,-33, |
| 51 | -40,57,-14, |
| 52 | -17,4,-45, |
| 53 | -31,38,-33, |
| 54 | -23,28,-40, |
| 55 | -43,29,-12, |
| 56 | -34,13,-23, |
| 57 | -16,15,-27, |
| 58 | -14,-82,-15, |
| 59 | -31,25,-32, |
| 60 | -21,5,-5, |
| 61 | -47,-63,-51, |
| 62 | -46,12,3, |
| 63 | -28,-17,-29, |
| 64 | -10,14,-40}; |