mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-14 00:40:39 +00:00
67 lines
2.6 KiB
C
67 lines
2.6 KiB
C
|
/* Copyright (C) 2002 Jean-Marc Valin
|
||
|
File: exc_10_32_table.c
|
||
|
Codebook for excitation in narrowband CELP mode (4000 bps)
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without
|
||
|
modification, are permitted provided that the following conditions
|
||
|
are met:
|
||
|
|
||
|
- Redistributions of source code must retain the above copyright
|
||
|
notice, this list of conditions and the following disclaimer.
|
||
|
|
||
|
- Redistributions in binary form must reproduce the above copyright
|
||
|
notice, this list of conditions and the following disclaimer in the
|
||
|
documentation and/or other materials provided with the distribution.
|
||
|
|
||
|
- Neither the name of the Xiph.org Foundation nor the names of its
|
||
|
contributors may be used to endorse or promote products derived from
|
||
|
this software without specific prior written permission.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||
|
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
|
||
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
|
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
|
||
|
|
||
|
const signed char exc_10_32_table[320] = {
|
||
|
7,17,17,27,25,22,12,4,-3,0,
|
||
|
28,-36,39,-24,-15,3,-9,15,-5,10,
|
||
|
31,-28,11,31,-21,9,-11,-11,-2,-7,
|
||
|
-25,14,-22,31,4,-14,19,-12,14,-5,
|
||
|
4,-7,4,-5,9,0,-2,42,-47,-16,
|
||
|
1,8,0,9,23,-57,0,28,-11,6,
|
||
|
-31,55,-45,3,-5,4,2,-2,4,-7,
|
||
|
-3,6,-2,7,-3,12,5,8,54,-10,
|
||
|
8,-7,-8,-24,-25,-27,-14,-5,8,5,
|
||
|
44,23,5,-9,-11,-11,-13,-9,-12,-8,
|
||
|
-29,-8,-22,6,-15,3,-12,-1,-5,-3,
|
||
|
34,-1,29,-16,17,-4,12,2,1,4,
|
||
|
-2,-4,2,-1,11,-3,-52,28,30,-9,
|
||
|
-32,25,44,-20,-24,4,6,-1,0,0,
|
||
|
0,0,0,0,0,0,0,0,0,0,
|
||
|
-25,-10,22,29,13,-13,-22,-13,-4,0,
|
||
|
-4,-16,10,15,-36,-24,28,25,-1,-3,
|
||
|
66,-33,-11,-15,6,0,3,4,-2,5,
|
||
|
24,-20,-47,29,19,-2,-4,-1,0,-1,
|
||
|
-2,3,1,8,-11,5,5,-57,28,28,
|
||
|
0,-16,4,-4,12,-6,-1,2,-20,61,
|
||
|
-9,24,-22,-42,29,6,17,8,4,2,
|
||
|
-65,15,8,10,5,6,5,3,2,-2,
|
||
|
-3,5,-9,4,-5,23,13,23,-3,-63,
|
||
|
3,-5,-4,-6,0,-3,23,-36,-46,9,
|
||
|
5,5,8,4,9,-5,1,-3,10,1,
|
||
|
-6,10,-11,24,-47,31,22,-12,14,-10,
|
||
|
6,11,-7,-7,7,-31,51,-12,-6,7,
|
||
|
6,-17,9,-11,-20,52,-19,3,-6,-6,
|
||
|
-8,-5,23,-41,37,1,-21,10,-14,8,
|
||
|
7,5,-15,-15,23,39,-26,-33,7,2,
|
||
|
-32,-30,-21,-8,4,12,17,15,14,11};
|