| 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[128] = { |
| 33 |
-32, -32, -32, 0, |
| 34 |
-31, -58, -16, 22, |
| 35 |
-41, -24, -43, 14, |
| 36 |
-56, -22, -55, 29, |
| 37 |
-13, 33, -41, 47, |
| 38 |
-4, -39, -9, 29, |
| 39 |
-41, 15, -12, 38, |
| 40 |
-8, -15, -12, 31, |
| 41 |
1, 2, -44, 40, |
| 42 |
-22, -66, -42, 27, |
| 43 |
-38, 28, -23, 38, |
| 44 |
-21, 14, -37, 31, |
| 45 |
0, 21, -50, 52, |
| 46 |
-53, -71, -27, 33, |
| 47 |
-37, -1, -19, 25, |
| 48 |
-19, -5, -28, 22, |
| 49 |
6, 65, -44, 74, |
| 50 |
-33, -48, -33, 9, |
| 51 |
-40, 57, -14, 58, |
| 52 |
-17, 4, -45, 32, |
| 53 |
-31, 38, -33, 36, |
| 54 |
-23, 28, -40, 39, |
| 55 |
-43, 29, -12, 46, |
| 56 |
-34, 13, -23, 28, |
| 57 |
-16, 15, -27, 34, |
| 58 |
-14, -82, -15, 43, |
| 59 |
-31, 25, -32, 29, |
| 60 |
-21, 5, -5, 38, |
| 61 |
-47, -63, -51, 33, |
| 62 |
-46, 12, 3, 47, |
| 63 |
-28, -17, -29, 11, |
| 64 |
-10, 14, -40, 38}; |