Fixing some typos in the manual (thanks to Peter Grayson for the patch)
[speexdsp.git] / libspeex / exc_5_64_table.c
index d568977..2c66d51 100644 (file)
@@ -1,65 +1,98 @@
-float exc_5_64_table[64][5]={
-{-0.050747,0.184341,-0.416239,1.419926,-1.889353},
-{-1.767028,0.065115,1.305428,-1.153649,-0.022664},
-{1.221305,0.560589,-0.527273,0.649561,-0.933298},
-{-0.859252,-0.537491,0.600115,0.749264,-0.954831},
-{-1.458678,0.820046,1.471498,0.440298,-0.715048},
-{-1.251997,-1.109888,1.950570,0.752880,0.032274},
-{1.670824,1.294642,0.713082,-0.551245,-0.489851},
-{-0.790790,-0.410124,-0.492855,0.365621,0.151807},
-{-1.232104,0.726099,-0.417678,0.518744,-1.046400},
-{0.502939,-1.271356,1.576907,-1.252482,0.204967},
-{-0.384798,1.393519,-1.104818,1.184270,-0.529471},
-{-1.452586,-0.114409,-0.441554,-0.574006,-0.550533},
-{-0.628620,1.578609,-0.523287,-1.426426,1.179305},
-{0.682708,-2.000819,0.868032,0.094956,-0.579634},
-{-0.141360,0.275390,-1.057626,0.554758,-0.367323},
-{-0.371024,-0.101912,0.076073,1.117173,2.110142},
-{1.527964,0.858535,-1.184398,-1.280031,-0.064274},
-{0.458062,-1.000299,-1.501676,1.000353,1.341253},
-{-0.893125,0.675174,0.137827,0.487894,0.394075},
-{-0.796440,0.179021,0.042832,-0.782863,0.639172},
-{1.524234,-0.463412,0.327143,-0.565643,-1.158184},
-{-0.128244,-0.207531,0.654988,-1.554538,2.002540},
-{0.509026,0.130351,-0.046518,-0.577218,1.278649},
-{-2.322611,0.886477,0.234346,0.068677,0.725948},
-{0.179267,1.721894,-0.535307,-0.538971,-0.500432},
-{-1.005377,-0.181645,-0.439045,1.572148,0.337147},
-{-0.249774,-0.905700,0.822397,-0.295337,0.952315},
-{0.768263,0.827398,-1.858045,0.318354,0.680493},
-{1.462256,1.259804,1.248459,1.001680,0.866147},
-{0.101677,0.362583,1.280522,-1.549833,-1.814940},
-{0.644551,-0.489432,-1.284032,1.831706,-0.092354},
-{0.666279,-0.822730,-1.781656,-0.554057,-0.229525},
-{-0.143082,0.310275,-0.070739,-0.314824,-0.879948},
-{-1.628078,1.908406,-0.638087,0.050337,-0.123849},
-{2.300315,0.122964,-0.489612,-0.043877,0.419449},
-{-0.731951,1.594465,0.915901,-0.828913,-0.424868},
-{0.779793,0.397543,-0.238465,0.973685,0.721658},
-{0.668829,-1.360629,0.478046,1.765776,-1.073398},
-{0.619484,-0.619845,0.242610,0.485255,0.606673},
-{-0.454021,0.156886,1.085992,-0.538146,-0.256410},
-{0.258066,0.177084,-0.954076,-2.324905,-0.866880},
-{-0.435404,0.180042,-1.524479,-0.696758,1.833025},
-{0.425343,0.979863,0.896481,0.919351,-0.653801},
-{0.805325,-0.183720,1.099721,-0.471585,0.148487},
-{0.144319,-0.316546,-0.381988,-0.503572,-1.938115},
-{0.496647,0.294645,-0.036370,-0.328660,-0.083279},
-{-0.353141,-1.995354,0.048475,1.150869,0.426774},
-{-0.029092,-1.131519,-0.038100,-0.518859,-0.378852},
-{-0.323149,0.443834,-1.134871,-0.636429,0.037405},
-{2.102849,-1.336758,-1.058688,0.559735,-0.456311},
-{-0.306999,0.386877,1.364199,1.371457,0.838590},
-{-2.280056,-0.921887,0.282503,0.241797,0.384466},
-{1.885187,-1.405928,0.648930,-0.141462,0.286776},
-{0.809085,-0.614490,-0.234015,0.493854,-0.582258},
-{0.168522,1.345381,0.372955,-0.181542,0.887157},
-{-1.296370,-1.357442,-1.251252,-1.155265,-0.928197},
-{-0.824238,0.998464,-1.249768,0.535205,1.242581},
-{0.135804,-0.256193,1.004386,0.733569,-0.269900},
-{-0.848197,-1.505229,-0.978982,-0.146659,0.466500},
-{0.861179,-1.063798,-0.442275,-0.342063,0.880730},
-{-0.370880,0.367417,0.624396,-2.068855,0.025828},
-{0.350006,-0.569151,1.472512,0.187459,-2.088084},
-{0.993303,-0.525179,-0.014007,-1.259363,0.283083},
-{-0.101287,-0.019595,0.054946,0.084899,0.059230}};
+/* 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};