Fixing some typos in the manual (thanks to Peter Grayson for the patch)
[speexdsp.git] / libspeex / exc_5_64_table.c
index 4d95051..2c66d51 100644 (file)
@@ -1,65 +1,98 @@
-float exc_5_64_table[64][5]={
-{0.016425,0.164821,-0.455056,1.521999,-2.059523},
-{-1.497349,-0.115601,1.570538,-1.361093,0.205962},
-{1.151146,0.508757,-0.557767,0.772791,-0.799325},
-{-0.810097,-0.481152,0.603676,0.600439,-0.853233},
-{-1.458905,0.890366,1.770542,0.159820,-0.542156},
-{-1.006928,-1.284240,2.129538,0.655228,-0.073966},
-{1.992338,1.747207,0.256161,-0.506332,-0.391711},
-{-0.819146,-0.294833,-0.512275,0.352284,0.178854},
-{-1.227813,0.796305,-0.607210,0.702680,-0.969435},
-{0.623384,-1.411248,1.722776,-1.336201,0.322234},
-{-0.488714,1.474460,-1.236522,1.238058,-0.629270},
-{-1.586113,0.101721,-0.536277,-0.426806,-0.462127},
-{-0.762491,1.670345,-0.617061,-1.448912,1.442240},
-{0.859321,-2.138098,1.003799,0.094170,-0.552824},
-{-0.151130,0.268730,-0.975037,0.506791,-0.287829},
-{-0.312000,-0.046558,-0.703808,1.484750,2.980198},
-{1.455910,0.793829,-1.284661,-0.997638,-0.079170},
-{0.454090,-0.794912,-1.714429,1.138468,1.286793},
-{-0.831814,0.636744,0.148971,0.407093,0.450897},
-{-0.682911,0.157601,0.049977,-0.730020,0.560741},
-{1.428390,-0.462806,0.516030,-0.573858,-1.071932},
-{-0.150569,-0.236990,0.852551,-1.718521,2.285548},
-{0.509981,0.058892,-0.038486,-0.540349,1.239104},
-{-2.427606,1.016775,0.000204,0.062276,0.604466},
-{0.112731,1.655656,-0.497184,-0.469912,-0.514272},
-{-0.871593,-0.080876,-0.400744,1.546034,0.254059},
-{-0.214401,-0.918700,0.848037,-0.391396,0.985990},
-{0.637319,0.987229,-1.912017,0.510648,0.452777},
-{1.289286,1.361489,1.243136,0.745559,0.629101},
-{0.221755,0.110369,1.497499,-1.866076,-2.412023},
-{0.521552,-0.177768,-1.502221,2.043690,-0.457538},
-{0.990912,-0.941359,-2.224753,-0.306236,-0.084343},
-{-0.189443,0.324083,-0.057534,-0.211584,-0.912040},
-{-1.742935,2.108264,-0.926809,0.221314,-0.141621},
-{2.699771,-0.196509,-0.315119,-0.002794,0.162299},
-{-0.954093,1.883489,1.057448,-1.192817,-0.083695},
-{0.758001,0.311436,-0.067548,0.947225,0.729640},
-{0.761101,-1.269708,0.368809,2.191157,-1.350343},
-{0.482979,-0.516259,0.186630,0.421651,0.499098},
-{-0.419075,0.249524,0.930801,-0.480737,-0.250079},
-{0.144482,0.706673,-1.061049,-3.064299,-0.119050},
-{-0.407456,0.397080,-1.487227,-0.972597,2.180493},
-{0.385484,0.954514,0.783306,0.743739,-0.751818},
-{0.814466,-0.221329,1.031572,-0.488241,0.239573},
-{0.147759,-0.351756,-0.424495,-0.255435,-2.030463},
-{0.395448,0.322306,-0.064008,-0.293987,-0.010031},
-{-0.099471,-2.129689,0.157911,1.092050,0.234232},
-{-0.013781,-0.958944,-0.025326,-0.523649,-0.283380},
-{-0.288134,0.487280,-1.144492,-0.576315,-0.032503},
-{2.154917,-1.504361,-0.884742,0.696558,-0.666552},
-{-0.354968,0.158908,1.516310,1.711743,0.706369},
-{-2.691027,-1.115349,0.495318,0.051273,0.394966},
-{1.958577,-1.603046,0.942450,-0.353549,0.404380},
-{0.756039,-0.561417,-0.174660,0.427855,-0.595641},
-{0.033467,1.269746,0.272333,-0.169324,0.857155},
-{-1.131429,-1.381577,-1.046973,-1.154687,-0.651732},
-{-0.805458,0.982794,-1.225625,0.482374,1.355390},
-{0.147033,-0.253670,0.912658,0.629937,-0.259011},
-{-0.618178,-1.622831,-0.879296,-0.032382,0.421314},
-{0.805434,-1.053450,-0.299412,-0.283747,0.828159},
-{-0.251504,0.246571,0.838313,-2.071605,0.115638},
-{0.385483,-0.677712,1.525247,0.320203,-2.399798},
-{0.992324,-0.561696,0.105794,-1.178257,0.363873},
-{-0.089378,-0.019323,0.071215,0.068134,0.011356}};
+/* 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};