Fixing some typos in the manual (thanks to Peter Grayson for the patch)
[speexdsp.git] / libspeex / exc_5_64_table.c
index a8cb511..2c66d51 100644 (file)
@@ -1,65 +1,98 @@
-float exc_5_64_table[64][5]={
-{-0.079958,0.208861,-0.438709,1.480116,-1.986326},
-{-1.828265,0.162466,1.260918,-1.166797,0.063106},
-{1.211876,0.563737,-0.561593,0.629536,-0.981584},
-{-0.831739,-0.570275,0.543227,0.787916,-0.939153},
-{-1.451098,0.802289,1.387430,0.476572,-0.689362},
-{-1.319083,-1.177643,1.961504,0.664097,-0.002956},
-{1.576920,1.126090,0.755061,-0.476177,-0.479585},
-{-0.684962,-0.470137,-0.456445,0.364205,0.155394},
-{-1.246014,0.724139,-0.389550,0.528940,-1.050925},
-{0.501886,-1.284384,1.584774,-1.284379,0.273501},
-{-0.391998,1.366478,-1.146184,1.241114,-0.550044},
-{-1.401909,-0.139154,-0.386142,-0.583218,-0.521524},
-{-0.674743,1.599576,-0.557649,-1.484583,1.191340},
-{0.720671,-2.053913,0.938306,0.049066,-0.582917},
-{-0.133025,0.276777,-1.053388,0.569499,-0.394285},
-{-0.404568,-0.074756,0.248460,0.915859,1.790752},
-{1.368719,0.881870,-1.097502,-1.321810,0.042091},
-{0.524143,-1.025940,-1.615778,1.077653,1.261503},
-{-0.882465,0.674947,0.127700,0.470083,0.345487},
-{-0.830788,0.234586,0.037441,-0.768969,0.638691},
-{1.512625,-0.477778,0.298334,-0.552328,-1.201494},
-{-0.130786,-0.188764,0.590879,-1.550454,1.995731},
-{0.476628,0.117244,-0.020488,-0.600881,1.244987},
-{-2.475931,1.048453,0.245410,0.166113,0.694666},
-{0.138805,1.676648,-0.561632,-0.441268,-0.450529},
-{-1.059243,-0.116314,-0.471812,1.532527,0.364439},
-{-0.255092,-0.893333,0.828542,-0.291608,0.959152},
-{0.721510,0.847036,-1.928118,0.352938,0.685989},
-{1.495156,1.143484,1.213139,0.976336,0.878038},
-{0.126859,0.262727,1.376249,-1.588143,-1.927555},
-{0.662042,-0.525042,-1.258164,1.849656,-0.071810},
-{0.712891,-0.740986,-1.887957,-0.550934,-0.221850},
-{-0.111139,0.267236,-0.062391,-0.306306,-0.846203},
-{-1.632277,1.961310,-0.704684,0.103594,-0.169306},
-{2.185426,0.134230,-0.446079,-0.054014,0.471287},
-{-0.678844,1.518332,0.827008,-0.740937,-0.475698},
-{0.741970,0.414311,-0.286112,0.887049,0.711085},
-{0.738599,-1.414285,0.498418,1.647251,-1.048237},
-{0.664663,-0.691581,0.254573,0.473616,0.634394},
-{-0.445671,0.133757,1.084527,-0.546593,-0.241128},
-{0.270945,0.294424,-0.899570,-2.523376,-0.934357},
-{-0.445105,0.317935,-1.680932,-0.650910,1.936931},
-{0.386818,0.922659,0.823529,0.951632,-0.601248},
-{0.802714,-0.204171,1.107734,-0.458224,0.120733},
-{0.114849,-0.235347,-0.295803,-0.520926,-2.077693},
-{0.518488,0.275778,-0.034664,-0.317227,-0.079716},
-{-0.275022,-2.151798,0.090729,1.222582,0.475039},
-{0.006258,-1.150141,-0.039328,-0.510597,-0.424206},
-{-0.365151,0.406449,-1.119378,-0.620810,0.106411},
-{2.043069,-1.347967,-1.045040,0.678576,-0.479128},
-{-0.343049,0.412338,1.246507,1.297302,0.817541},
-{-2.402139,-0.921563,0.350986,0.277537,0.444475},
-{1.881966,-1.379847,0.661045,-0.164178,0.306393},
-{0.790853,-0.606809,-0.232888,0.525706,-0.593953},
-{0.207425,1.289794,0.416404,-0.173649,0.914614},
-{-1.239352,-1.349609,-1.291402,-1.142606,-0.893268},
-{-0.842734,1.024357,-1.207474,0.502887,1.178622},
-{0.137112,-0.292726,0.989336,0.707605,-0.271758},
-{-0.823086,-1.517186,-0.977776,-0.086539,0.506949},
-{0.870586,-1.031755,-0.501620,-0.344784,0.878672},
-{-0.315819,0.335962,0.647039,-2.135175,0.050447},
-{0.345808,-0.528573,1.349215,0.267260,-2.264747},
-{0.997885,-0.530025,-0.014008,-1.226660,0.247816},
-{-0.083973,-0.015507,0.056295,0.077296,0.067036}};
+/* Copyright (C) 2002 Jean-Marc Valin 
+   File: exc_5_64_table.c
+   Codebook for excitation in narrowband CELP mode (9600 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_5_64_table[320]={
+1,5,-15,49,-66,
+-48,-4,50,-44,7,
+37,16,-18,25,-26,
+-26,-15,19,19,-27,
+-47,28,57,5,-17,
+-32,-41,68,21,-2,
+64,56,8,-16,-13,
+-26,-9,-16,11,6,
+-39,25,-19,22,-31,
+20,-45,55,-43,10,
+-16,47,-40,40,-20,
+-51,3,-17,-14,-15,
+-24,53,-20,-46,46,
+27,-68,32,3,-18,
+-5,9,-31,16,-9,
+-10,-1,-23,48,95,
+47,25,-41,-32,-3,
+15,-25,-55,36,41,
+-27,20,5,13,14,
+-22,5,2,-23,18,
+46,-15,17,-18,-34,
+-5,-8,27,-55,73,
+16,2,-1,-17,40,
+-78,33,0,2,19,
+4,53,-16,-15,-16,
+-28,-3,-13,49,8,
+-7,-29,27,-13,32,
+20,32,-61,16,14,
+41,44,40,24,20,
+7,4,48,-60,-77,
+17,-6,-48,65,-15,
+32,-30,-71,-10,-3,
+-6,10,-2,-7,-29,
+-56,67,-30,7,-5,
+86,-6,-10,0,5,
+-31,60,34,-38,-3,
+24,10,-2,30,23,
+24,-41,12,70,-43,
+15,-17,6,13,16,
+-13,8,30,-15,-8,
+5,23,-34,-98,-4,
+-13,13,-48,-31,70,
+12,31,25,24,-24,
+26,-7,33,-16,8,
+5,-11,-14,-8,-65,
+13,10,-2,-9,0,
+-3,-68,5,35,7,
+0,-31,-1,-17,-9,
+-9,16,-37,-18,-1,
+69,-48,-28,22,-21,
+-11,5,49,55,23,
+-86,-36,16,2,13,
+63,-51,30,-11,13,
+24,-18,-6,14,-19,
+1,41,9,-5,27,
+-36,-44,-34,-37,-21,
+-26,31,-39,15,43,
+5,-8,29,20,-8,
+-20,-52,-28,-1,13,
+26,-34,-10,-9,27,
+-8,8,27,-66,4,
+12,-22,49,10,-77,
+32,-18,3,-38,12,
+-3,-1,2,2,0};