Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>2002-03-15 06:24:53 +0300
committerjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>2002-03-15 06:24:53 +0300
commit235a63a9843157a39caf7ce4a2c248d66318c86f (patch)
tree8bb528f9e69966f51d11d94f0d7703a6583115f0 /libspeex
parent58c4159c13f6d8937f8b326702890cb33115bd06 (diff)
We're going wideband...
git-svn-id: http://svn.xiph.org/trunk/speex@3146 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex')
-rw-r--r--libspeex/Makefile.am3
-rw-r--r--libspeex/cb_search.c2
-rw-r--r--libspeex/lsp_tables_wb.c516
-rw-r--r--libspeex/modes.c2
-rw-r--r--libspeex/modes.h1
-rw-r--r--libspeex/quant_lsp.c58
-rw-r--r--libspeex/quant_lsp.h3
-rw-r--r--libspeex/speex.c12
-rw-r--r--libspeex/testenc.c9
9 files changed, 594 insertions, 12 deletions
diff --git a/libspeex/Makefile.am b/libspeex/Makefile.am
index 00db952..e097d56 100644
--- a/libspeex/Makefile.am
+++ b/libspeex/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in. -*-Makefile-*-
-# $Id: Makefile.am,v 1.11 2002/03/14 07:08:48 jmvalin Exp $
+# $Id: Makefile.am,v 1.12 2002/03/15 03:24:53 jmvalin Exp $
# Disable automatic dependency tracking if using other tools than gcc and gmake
#AUTOMAKE_OPTIONS = no-dependencies
@@ -14,6 +14,7 @@ libspeex_la_SOURCES = speex.c \
lsp.c \
quant_lsp.c \
lsp_tables_nb.c \
+ lsp_tables_wb.c \
gain_table.c \
cb_search.c \
stoc.c \
diff --git a/libspeex/cb_search.c b/libspeex/cb_search.c
index bc0d925..2a3e75d 100644
--- a/libspeex/cb_search.c
+++ b/libspeex/cb_search.c
@@ -37,8 +37,6 @@
#include "stack_alloc.h"
#include "vq.h"
-#define EXC_CB_SIZE 128
-#define min(a,b) ((a) < (b) ? (a) : (b))
/*---------------------------------------------------------------------------*\
diff --git a/libspeex/lsp_tables_wb.c b/libspeex/lsp_tables_wb.c
new file mode 100644
index 0000000..f8c301e
--- /dev/null
+++ b/libspeex/lsp_tables_wb.c
@@ -0,0 +1,516 @@
+
+float lsp_cdbk_wb[]={ 0.179641, 0.25573, 0.355304, 0.453405, 0.72199, 1.04219, 1.35779, 1.54762, 1.68935, 1.83052, 2.03207, 2.18961, 2.36197, 2.50034, 2.68282, 2.78628 ,
+ 0.250553, 0.389104, 0.560088, 0.680514, 0.821864, 0.96631, 1.13186, 1.24851, 1.38806, 1.57561, 1.87139, 2.08627, 2.27196, 2.39279, 2.5704, 2.73089 ,
+ 0.286099, 0.431117, 0.608853, 0.743925, 0.902117, 1.05551, 1.21672, 1.33263, 1.48922, 1.66971, 1.9026, 2.07241, 2.25843, 2.39894, 2.60064, 2.73594 ,
+ 0.242889, 0.358676, 0.501225, 0.615989, 0.776775, 0.901137, 1.02262, 1.14393, 1.36125, 1.62361, 1.92785, 2.15825, 2.35187, 2.46892, 2.63479, 2.77176 ,
+ 0.19763, 0.276846, 0.374784, 0.486464, 0.799153, 1.10962, 1.38931, 1.53348, 1.65822, 1.79161, 1.97202, 2.10064, 2.27158, 2.44001, 2.66054, 2.77497 ,
+ 0.284795, 0.406945, 0.536988, 0.665051, 0.848738, 0.958977, 1.08107, 1.25891, 1.57375, 1.78182, 1.95586, 2.09692, 2.33525, 2.50969, 2.68847, 2.78187 ,
+ 0.23353, 0.362332, 0.561019, 0.758501, 0.960064, 1.13808, 1.31805, 1.48389, 1.68901, 1.87084, 2.0677, 2.22788, 2.42233, 2.55728, 2.72007, 2.81304 ,
+ 0.229604, 0.309348, 0.40934, 0.527088, 0.68464, 0.777769, 0.93435, 1.21372, 1.59505, 1.83607, 2.02854, 2.16738, 2.39077, 2.54252, 2.69471, 2.79178 ,
+ 0.219403, 0.301243, 0.398447, 0.535649, 0.915217, 1.12655, 1.26673, 1.38322, 1.58084, 1.73816, 1.87658, 2.04235, 2.34722, 2.52096, 2.6848, 2.77467 ,
+ 0.21415, 0.318488, 0.460425, 0.57597, 0.735299, 0.926102, 1.20833, 1.37362, 1.51134, 1.64283, 1.87339, 2.09451, 2.30451, 2.42398, 2.58372, 2.72061 ,
+ 0.190439, 0.275427, 0.381719, 0.52576, 0.853277, 1.08804, 1.26748, 1.4034, 1.61428, 1.82137, 2.00502, 2.143, 2.34391, 2.50069, 2.68234, 2.7828 ,
+ 0.218929, 0.324745, 0.458696, 0.579858, 0.765813, 0.946798, 1.11206, 1.23363, 1.39398, 1.6219, 1.88993, 2.06533, 2.21988, 2.35932, 2.57576, 2.7615 ,
+ 0.186173, 0.261901, 0.370739, 0.45872, 0.675816, 0.948938, 1.24844, 1.52737, 1.81066, 1.96216, 2.09747, 2.20821, 2.38036, 2.50404, 2.65788, 2.75507 ,
+ 0.185619, 0.286388, 0.444548, 0.63916, 0.857073, 1.02777, 1.21331, 1.37434, 1.57006, 1.73739, 1.93861, 2.10266, 2.30122, 2.44518, 2.63756, 2.75377 ,
+ 0.309664, 0.440778, 0.703368, 0.928111, 1.1682, 1.32528, 1.48777, 1.62824, 1.79222, 1.92079, 2.0755, 2.20973, 2.38602, 2.51328, 2.68175, 2.78226 ,
+ 0.168907, 0.245254, 0.351868, 0.458698, 0.667706, 0.915032, 1.20479, 1.39845, 1.55783, 1.71964, 1.90337, 2.07735, 2.25826, 2.40458, 2.58298, 2.77316 ,
+ 0.2145, 0.293262, 0.389851, 0.534719, 0.937187, 1.20475, 1.3832, 1.48794, 1.64603, 1.81365, 1.96716, 2.09615, 2.33707, 2.51131, 2.68905, 2.77989 ,
+ 0.254871, 0.383051, 0.519669, 0.637494, 0.812827, 0.97831, 1.12513, 1.24115, 1.40972, 1.61485, 1.80876, 1.95096, 2.12542, 2.33389, 2.59543, 2.7813 ,
+ 0.23258, 0.344432, 0.53011, 0.73927, 0.963838, 1.1646, 1.38684, 1.54684, 1.7076, 1.84626, 2.01532, 2.16068, 2.33977, 2.47163, 2.6549, 2.76741 ,
+ 0.221127, 0.310154, 0.413697, 0.516881, 0.680846, 0.787967, 0.903531, 1.07101, 1.378, 1.66226, 1.93919, 2.16937, 2.35397, 2.49222, 2.66542, 2.83136 ,
+ 0.224717, 0.329973, 0.46561, 0.576904, 0.74913, 0.949156, 1.25177, 1.47416, 1.66269, 1.78091, 1.94067, 2.10913, 2.3144, 2.43293, 2.59471, 2.71641 ,
+ 0.272156, 0.393947, 0.516576, 0.637146, 0.857656, 1.01181, 1.13627, 1.2666, 1.50827, 1.69763, 1.84774, 1.98975, 2.25, 2.47091, 2.67859, 2.78076 ,
+ 0.184468, 0.288445, 0.45306, 0.696883, 0.980914, 1.19846, 1.40872, 1.58316, 1.79139, 1.9574, 2.13485, 2.27412, 2.44755, 2.56774, 2.72077, 2.81093 ,
+ 0.210699, 0.306999, 0.427386, 0.577756, 0.783243, 0.906568, 1.06312, 1.27156, 1.55665, 1.73994, 1.90371, 2.05454, 2.24717, 2.39665, 2.57982, 2.73238 ,
+ 0.179556, 0.263139, 0.370196, 0.506783, 0.791016, 0.989679, 1.15659, 1.31563, 1.55388, 1.76055, 1.93982, 2.0831, 2.28871, 2.46887, 2.66692, 2.77941 ,
+ 0.184185, 0.272201, 0.386736, 0.53228, 0.76468, 0.932564, 1.10898, 1.2762, 1.47978, 1.65913, 1.81891, 1.9604, 2.12602, 2.33811, 2.61023, 2.81468 ,
+ 0.204429, 0.312107, 0.480989, 0.6826, 0.901067, 1.08268, 1.28271, 1.44832, 1.63847, 1.803, 1.99678, 2.15755, 2.35454, 2.49293, 2.67376, 2.77951 ,
+ 0.247537, 0.357698, 0.477857, 0.59663, 0.776144, 0.897748, 1.02001, 1.18026, 1.47539, 1.69789, 1.85236, 1.98691, 2.21314, 2.44564, 2.66238, 2.78902 ,
+ 0.20865, 0.292496, 0.403201, 0.501742, 0.74777, 1.0177, 1.31474, 1.55626, 1.75432, 1.86906, 2.00604, 2.14644, 2.31885, 2.42546, 2.58878, 2.71907 ,
+ 0.249173, 0.373618, 0.522038, 0.633362, 0.797595, 1.00828, 1.2693, 1.42088, 1.56018, 1.6895, 1.90914, 2.09034, 2.26751, 2.38373, 2.56552, 2.70706 ,
+ 0.261535, 0.378866, 0.59196, 0.802435, 1.0369, 1.25282, 1.46977, 1.63872, 1.82345, 1.9699, 2.13284, 2.26362, 2.42667, 2.54611, 2.70394, 2.8011 ,
+ 0.168274, 0.246781, 0.351205, 0.473948, 0.682336, 0.856427, 1.07341, 1.32683, 1.58206, 1.7571, 1.89301, 2.01506, 2.15697, 2.36023, 2.62078, 2.8294 ,
+ 0.190029, 0.265964, 0.372325, 0.486003, 0.775757, 1.05029, 1.37416, 1.612, 1.80927, 1.939, 2.09462, 2.22936, 2.40035, 2.51472, 2.66975, 2.76876 ,
+ 0.222261, 0.344571, 0.525712, 0.659434, 0.829162, 0.997708, 1.18043, 1.30435, 1.45475, 1.63819, 1.90919, 2.12505, 2.3464, 2.46889, 2.63446, 2.74832 ,
+ 0.264504, 0.387828, 0.579775, 0.75523, 0.938798, 1.09782, 1.26615, 1.40993, 1.59235, 1.76208, 1.95978, 2.12366, 2.32484, 2.46848, 2.6576, 2.7684 ,
+ 0.212027, 0.308754, 0.429191, 0.547854, 0.731232, 0.859039, 0.977742, 1.12012, 1.36691, 1.63934, 1.88672, 2.06462, 2.22716, 2.39766, 2.6228, 2.82573 ,
+ 0.18443, 0.266916, 0.377272, 0.490788, 0.730274, 0.993046, 1.26404, 1.42997, 1.58404, 1.7421, 1.97063, 2.15029, 2.34337, 2.47553, 2.65412, 2.76681 ,
+ 0.229199, 0.323632, 0.436599, 0.578988, 0.777931, 0.886676, 1.03351, 1.25789, 1.54992, 1.70678, 1.86405, 2.05546, 2.37224, 2.53795, 2.69331, 2.78382 ,
+ 0.329349, 0.443197, 0.662389, 0.825975, 1.02896, 1.20135, 1.38367, 1.52942, 1.70878, 1.87177, 2.0675, 2.22319, 2.40941, 2.54164, 2.71063, 2.80906 ,
+ 0.225449, 0.311464, 0.423833, 0.559039, 0.724324, 0.830668, 1.02732, 1.33297, 1.65835, 1.81814, 1.96383, 2.11779, 2.33808, 2.46857, 2.62744, 2.74371 ,
+ 0.208458, 0.293599, 0.392868, 0.501338, 0.790513, 1.09267, 1.30164, 1.41877, 1.56016, 1.7328, 1.90607, 2.02295, 2.21686, 2.43735, 2.67891, 2.79117 ,
+ 0.210171, 0.303208, 0.417793, 0.527489, 0.757182, 1.02058, 1.228, 1.34562, 1.48266, 1.66955, 1.93197, 2.099, 2.24562, 2.36696, 2.57149, 2.7384 ,
+ 0.228093, 0.319494, 0.430238, 0.580457, 0.839497, 0.97259, 1.11669, 1.30246, 1.62087, 1.82792, 2.00381, 2.14944, 2.38538, 2.53646, 2.69943, 2.7878 ,
+ 0.203058, 0.292197, 0.408603, 0.524063, 0.749199, 0.937477, 1.10315, 1.23734, 1.42428, 1.67026, 1.95375, 2.15305, 2.32863, 2.45271, 2.62546, 2.7629 ,
+ 0.17798, 0.25217, 0.363462, 0.460674, 0.653823, 0.866902, 1.12227, 1.39941, 1.74236, 1.94241, 2.10512, 2.22159, 2.38035, 2.51128, 2.6766, 2.77619 ,
+ 0.266795, 0.366887, 0.47778, 0.601709, 0.888994, 1.07862, 1.20763, 1.32503, 1.55561, 1.77357, 1.93955, 2.06597, 2.29338, 2.49274, 2.69164, 2.78832 ,
+ 0.317538, 0.456681, 0.702971, 0.898907, 1.14713, 1.34117, 1.52607, 1.68173, 1.87312, 2.02796, 2.19341, 2.32025, 2.47995, 2.59076, 2.73465, 2.82073 ,
+ 0.15365, 0.219988, 0.317751, 0.420039, 0.603422, 0.831647, 1.08867, 1.32255, 1.54523, 1.74729, 1.93359, 2.10854, 2.2966, 2.46345, 2.64411, 2.83734 ,
+ 0.187911, 0.264331, 0.359261, 0.494993, 0.886525, 1.19802, 1.45921, 1.59026, 1.71951, 1.87044, 2.06483, 2.18892, 2.36452, 2.51385, 2.69425, 2.78709 ,
+ 0.244097, 0.381344, 0.543535, 0.660536, 0.806917, 0.98283, 1.1996, 1.33466, 1.47247, 1.62984, 1.86783, 2.03633, 2.19579, 2.32776, 2.53635, 2.71098 ,
+ 0.324973, 0.443387, 0.657226, 0.818895, 1.00291, 1.16329, 1.34015, 1.48038, 1.65248, 1.80904, 1.99993, 2.15743, 2.34841, 2.48708, 2.672, 2.78105 ,
+ 0.179897, 0.257821, 0.3604, 0.47311, 0.651645, 0.788818, 0.956714, 1.19411, 1.47636, 1.69215, 1.87535, 2.06039, 2.28203, 2.4769, 2.66698, 2.85052 ,
+ 0.210256, 0.298387, 0.404871, 0.500065, 0.727531, 1.00605, 1.30105, 1.48417, 1.62684, 1.7455, 1.92917, 2.09505, 2.24513, 2.35954, 2.55716, 2.72514 ,
+ 0.264209, 0.386561, 0.519644, 0.635866, 0.826539, 0.975535, 1.10441, 1.2272, 1.46025, 1.72892, 1.95176, 2.08188, 2.23899, 2.40122, 2.62751, 2.76006 ,
+ 0.184217, 0.277712, 0.408676, 0.607107, 0.894261, 1.09546, 1.29526, 1.46842, 1.69505, 1.88012, 2.07568, 2.23401, 2.4278, 2.55508, 2.71289, 2.80388 ,
+ 0.237206, 0.331733, 0.439475, 0.560669, 0.740127, 0.84452, 0.962225, 1.15189, 1.50963, 1.7741, 1.97415, 2.1062, 2.28963, 2.46125, 2.65201, 2.78017 ,
+ 0.197743, 0.285483, 0.396534, 0.531554, 0.812157, 1.01436, 1.17398, 1.30753, 1.49641, 1.66195, 1.82088, 1.98745, 2.27222, 2.4724, 2.65476, 2.76864 ,
+ 0.176327, 0.261732, 0.374619, 0.53192, 0.782199, 0.972244, 1.17296, 1.37167, 1.60599, 1.75487, 1.89228, 2.01141, 2.14844, 2.32398, 2.58511, 2.76442 ,
+ 0.234866, 0.329433, 0.446154, 0.588073, 0.88243, 1.12824, 1.32659, 1.45157, 1.60735, 1.76547, 1.94455, 2.07727, 2.25378, 2.40357, 2.61243, 2.73737 ,
+ 0.215242, 0.314831, 0.453317, 0.587189, 0.772913, 0.909727, 1.05126, 1.19987, 1.3868, 1.55807, 1.7612, 1.98361, 2.28126, 2.47946, 2.65717, 2.79653 ,
+ 0.188484, 0.270087, 0.378713, 0.469866, 0.663207, 0.903525, 1.21672, 1.49787, 1.72152, 1.85415, 1.99682, 2.13967, 2.31301, 2.42943, 2.59507, 2.73127 ,
+ 0.240057, 0.340869, 0.455357, 0.581322, 0.850515, 1.07485, 1.22645, 1.33643, 1.50322, 1.69497, 1.86993, 1.99768, 2.17243, 2.35903, 2.60616, 2.75157 ,
+ 0.304152, 0.4288, 0.65029, 0.831419, 1.04703, 1.2193, 1.39385, 1.5598, 1.78144, 1.96024, 2.1554, 2.31248, 2.49272, 2.61005, 2.75219, 2.83589 ,
+ 0.164966, 0.237072, 0.342418, 0.450884, 0.678226, 0.922461, 1.11589, 1.2737, 1.45279, 1.6624, 1.86391, 2.04451, 2.23383, 2.41354, 2.62521, 2.8369
+};
+
+
+
+float lsp_cdbk_wb11[]={ 0.0189299, 0.00667078, -0.0218109, -0.0615255 ,
+ 0.0175559, 0.00514263, 0.0502399, 0.0289434 ,
+ -0.0495035, -0.0491945, 0.0208453, 0.032522 ,
+ 0.0523854, 0.0491072, 0.0465582, 0.0598436 ,
+ -0.0131272, -0.0333804, -0.0617771, -0.0540577 ,
+ 0.0252064, 0.0196789, 0.00707001, 0.00880834 ,
+ -0.110816, -0.0226247, -0.0128876, -0.0062398 ,
+ -0.0770898, 0.0215218, 0.0673456, 0.0588306 ,
+ -0.00189873, -0.0108153, -0.0259437, -0.023009 ,
+ 0.0323995, 0.0130533, -0.0146545, -0.0196025 ,
+ -0.115027, -0.120911, -0.0681582, 0.0254314 ,
+ 0.0421407, 0.0665551, 0.0930739, 0.0890602 ,
+ -0.0527917, -0.0567056, -0.049198, -0.0333314 ,
+ -0.00198378, 0.00717451, -0.00221606, -0.00690787 ,
+ -0.0423905, -0.0505512, -0.0436491, 0.0216701 ,
+ -0.039333, -0.0417913, -0.00803192, 0.0741543 ,
+ -0.000723276, -0.0129618, -0.0385404, -0.0811649 ,
+ 0.0767587, 0.0618353, 0.0220368, -0.029209 ,
+ -0.023463, -0.0176214, 0.0283834, 0.120412 ,
+ 0.0346589, 0.0676502, 0.0680718, 0.0381214 ,
+ -0.0335373, -0.0537507, -0.0820006, -0.112777 ,
+ -0.00170747, 0.0203532, 0.0248798, 0.0140263 ,
+ -0.0457022, -0.0417437, -0.00706781, -0.00848876 ,
+ -0.00151948, 0.0161544, 0.0406238, 0.0639899 ,
+ -0.0208547, -0.0137969, -0.00423229, -0.026592 ,
+ 0.0475888, 0.0206644, -0.0370951, -0.081205 ,
+ -0.0565379, -0.0747666, -0.0649834, 0.065751 ,
+ 0.0810763, 0.0869, 0.0719094, 0.0419985 ,
+ -0.0590389, -0.0798547, -0.0921069, -0.0021602 ,
+ 0.0452943, 0.0378008, 0.0143324, -0.0185914 ,
+ 0.0136768, -0.00794406, -0.0259976, 0.0104989 ,
+ -0.0207506, -0.0108511, 0.0229743, 0.04053 ,
+ 0.0172572, -0.0102966, -0.0487337, -0.0414159 ,
+ 0.0282341, 0.044485, 0.0370947, 0.0012472 ,
+ -0.0964715, -0.0851554, 0.0295809, 0.0548216 ,
+ 0.0247644, 0.0403988, 0.0397511, 0.0341203 ,
+ -0.0330441, -0.0405497, -0.0499564, -0.0762268 ,
+ 0.026726, 0.0189135, 0.0132292, 0.0504521 ,
+ -0.0468903, 0.000155299, 0.0239875, 0.00633687 ,
+ -0.0178072, 0.0125791, 0.104855, 0.104308 ,
+ -0.0199786, -0.0293748, -0.0372253, -0.00588785 ,
+ 0.00537236, 0.00747089, -0.00594916, -0.0392994 ,
+ -0.0733005, -0.0850407, -0.0187972, 0.00558499 ,
+ 0.0762346, 0.114204, 0.121654, 0.0928762 ,
+ -0.0299896, -0.0332526, -0.031997, -0.0397604 ,
+ -0.00173594, -0.0121376, 0.0209898, -0.0039129 ,
+ -0.0151904, -0.0262281, -0.0281215, 0.0424724 ,
+ -0.00104477, -0.00721875, -0.000676335, 0.078266 ,
+ 0.00610815, -0.0215652, -0.0669085, -0.100474 ,
+ 0.0536693, 0.0382311, 0.0165945, 0.0167661 ,
+ -0.0639496, -0.0536504, 0.0732949, 0.0984164 ,
+ 0.00677618, 0.0414814, 0.0756298, 0.064796 ,
+ -0.0541126, -0.0717741, -0.0867974, -0.0660831 ,
+ -0.0172566, 0.0353979, 0.0535993, 0.0296918 ,
+ -0.0222344, -0.0177722, -0.0072315, 0.0108171 ,
+ 0.022984, 0.0201435, 0.0484472, 0.107342 ,
+ -0.0130096, -0.0138813, -0.0251967, -0.0543122 ,
+ 0.0425554, 0.0295674, -0.00253083, -0.0485037 ,
+ -0.0629891, -0.0720614, -0.020756, 0.132026 ,
+ 0.0644411, 0.0628901, 0.0454253, 0.012424 ,
+ -0.0211361, -0.0465826, -0.0737134, -0.0162335 ,
+ 0.0131254, 0.0244678, 0.0164295, -0.0214572 ,
+ 0.000776949, 0.00169998, 2.6684e-05, 0.0318648 ,
+ -0.0301002, -0.0184423, 0.0605366, 0.0598735
+};
+
+
+
+float lsp_cdbk_wb21[]={ 0.0817689, 0.0456351, 0.00663858, -0.00465148 ,
+ -0.0588392, -0.0837107, -0.0466239, -0.0531326 ,
+ -0.0483341, 0.0116387, -0.0265087, 0.0402334 ,
+ -0.0949689, -0.111642, -0.0133252, 0.0185854 ,
+ -0.00454987, 0.0323519, 0.0666339, 0.00486096 ,
+ -0.00342828, 0.0230011, -0.0279927, -0.0343859 ,
+ -0.0256944, 0.0536841, 0.0961064, 0.0664729 ,
+ -0.0411942, -0.0830229, -0.0522553, 0.0241145 ,
+ 0.0244157, 0.0654037, 0.0213459, -0.0145013 ,
+ -0.000757523, -0.0226996, -0.0357092, -0.0184591 ,
+ -0.00860184, 0.115588, 0.0596418, -0.00442327 ,
+ -0.0718879, -0.0549864, 0.0443302, -0.00488696 ,
+ 0.0246734, 0.0181043, 0.0785399, 0.0770751 ,
+ 0.045997, -0.00404882, -0.0327237, -0.0278117 ,
+ -0.0192065, -0.0400391, 0.0370833, 0.110412 ,
+ 0.00660994, -0.0739243, -0.0971602, -0.00425558 ,
+ 0.0604527, 0.0574887, -0.00354132, -0.060565 ,
+ -0.00399797, -0.0219466, -0.0714357, -0.105281 ,
+ 0.0780358, 0.00803708, -0.0213868, 0.0321115 ,
+ 0.0272051, -0.0665409, -0.0210868, -0.00199165 ,
+ 0.0542742, 0.0941654, 0.0921555, 0.0658176 ,
+ 0.026807, 0.0127072, -0.0323391, -0.0719703 ,
+ -0.0173782, 0.0037296, 0.0462461, 0.0513015 ,
+ -0.0462515, -0.0873445, -0.0433674, 0.0952298 ,
+ 0.0782118, 0.0456513, 0.0431457, 0.0451635 ,
+ -0.064627, 0.00815966, -0.0398595, -0.075217 ,
+ -0.00929505, 0.0192896, 0.0148865, 0.00144553 ,
+ -0.130295, -0.00823465, 0.0267003, 0.0186166 ,
+ 0.0330613, 0.0317381, 0.0263154, 0.0228909 ,
+ 0.0659816, 0.00492639, -0.0758256, -0.0990101 ,
+ -0.0877726, -0.0974963, 0.0660141, 0.0774179 ,
+ 0.00418546, -0.0346097, -0.00431838, 0.0635231 ,
+ 0.0380602, 0.0249236, 0.00162367, -0.0203709 ,
+ -0.0299899, -0.0469563, -0.0668649, -0.0328689 ,
+ -0.0199586, -0.0296578, 0.0194005, 0.0186474 ,
+ -0.0952774, -0.0358083, -0.0214994, -0.0252846 ,
+ -0.0246664, 0.0594793, 0.0349548, 0.0293801 ,
+ 0.00614258, -0.0112846, 0.00834776, -0.0310144 ,
+ -0.0835477, -0.0022841, 0.0818622, 0.0649222 ,
+ -0.0672829, -0.10599, -0.102811, -0.000879472 ,
+ 0.0653913, 0.084138, 0.0452232, -0.00456421 ,
+ -0.0396892, -0.0570284, -0.0133433, -0.0101065 ,
+ -0.0845924, 0.0739937, 0.0740163, 0.0288235 ,
+ -0.0456738, -0.00501719, -0.00312719, -0.0212075 ,
+ 0.0355572, 0.0151684, 0.0147294, 0.0831415 ,
+ 0.0926459, 0.0233504, -0.0421518, -0.0447625 ,
+ -0.0258459, -0.035712, 0.0978635, 0.0700633 ,
+ 0.0558237, -0.0203216, -0.0849844, -0.00230179 ,
+ 0.125951, 0.0787954, 0.00267314, -0.0409963 ,
+ -0.0288411, -0.0710552, -0.107019, -0.0846267 ,
+ 0.0201273, -0.00161969, -0.0127469, 0.0184799 ,
+ -0.0169189, -0.103991, 0.0244223, 0.0412014 ,
+ 0.0246258, 0.0660834, 0.059987, 0.0371168 ,
+ -0.00176132, 0.079369, -0.0166848, -0.081574 ,
+ -0.0576484, 0.00831381, 0.0422604, 0.0130335 ,
+ -0.0133148, -0.0378209, -0.0440851, 0.027075 ,
+ 0.121054, 0.103313, 0.0550293, 0.0263503 ,
+ -0.0213192, -0.0234501, -0.0336195, -0.0608842 ,
+ -0.0227888, 0.0507821, 0.016853, -0.0378706 ,
+ -0.087837, 0.0476729, 0.0122852, -0.0282679 ,
+ 0.0350875, -0.0240167, 0.0448878, 0.0270175 ,
+ 0.0226932, -0.0330674, -0.0697748, -0.0572932 ,
+ -0.0605791, -0.0500984, 0.0157369, 0.0488746 ,
+ 0.0386738, -0.0463719, -0.0703859, 0.0884767
+};
+
+
+
+float lsp_cdbk_wb31[]={ 0.0391248, -0.0213575, -0.0579499, 0.0150848 ,
+ -0.0603305, -0.0481952, 0.0300009, 0.0239262 ,
+ 0.060008, 0.081756, 0.0501842, 0.0119663 ,
+ -0.0345758, 0.00662202, 0.0196808, 0.0542885 ,
+ -0.00865432, -0.00480222, -0.000833522, -0.0343238 ,
+ -0.0398859, -0.0939679, -0.122131, -0.0653725 ,
+ 0.10523, 0.0493506, -0.024743, -0.0623995 ,
+ 0.0322162, 0.0271011, -0.00619781, 0.0244261 ,
+ 0.0169405, -0.0392835, -0.0908287, -0.0594481 ,
+ -0.0479329, -0.0386819, -0.0123295, -0.0254956 ,
+ -0.0237791, 0.0388222, 0.0555491, 0.0247615 ,
+ 0.0390782, 0.0359507, 0.104704, 0.103903 ,
+ -0.077937, 0.0529745, 0.0554647, 0.0140969 ,
+ -0.0920289, -0.0122168, -0.0133721, -0.0355064 ,
+ 0.113661, 0.0798768, 0.0233181, -0.00969994 ,
+ -0.0273519, -0.0503379, 0.0358143, 0.0957875 ,
+ -0.0118554, -0.0474477, -0.0409193, 0.0103053 ,
+ -0.111827, -0.0823082, -0.00383503, 0.00511159 ,
+ 0.0580944, 0.0300833, 0.0325468, 0.0206515 ,
+ -0.0530158, -0.0190352, 0.122645, 0.11758 ,
+ 0.0150185, -0.00662614, -0.047134, -0.07094 ,
+ -0.00496519, -0.0663535, -0.0497428, 0.0745246 ,
+ 0.0623763, -0.00642867, -0.0663134, -0.0393608 ,
+ 0.0190789, 0.00214466, 0.0321502, 0.0352552 ,
+ -7.76023e-05, -0.0542287, -0.111818, -0.129219 ,
+ -0.0131796, -0.0558007, 0.0126336, 0.043816 ,
+ -0.00712987, 0.0922339, 0.0634006, 0.0112836 ,
+ 0.00480972, -0.00385501, 0.0636381, 0.0787929 ,
+ -0.0092924, 0.0182188, 0.022531, 0.00343812 ,
+ -0.0893799, -0.0836087, -0.0551352, -0.0519831 ,
+ 0.0307913, 0.0076901, -0.0270862, -0.0277639 ,
+ 0.00411059, -0.0153875, -0.0167003, 0.0444287 ,
+ 0.029917, -0.0188984, -0.00457922, 0.00259586 ,
+ -0.109928, -0.011047, 0.041468, 0.0243808 ,
+ 0.107622, 0.106299, 0.079843, 0.0454718 ,
+ -0.0207555, -0.0156891, 0.0559163, 0.0276259 ,
+ -0.0162447, 0.00632366, -0.0292538, -0.00393178 ,
+ -0.0573985, -0.10846, -0.0847518, 0.0203431 ,
+ 0.0564029, 0.029985, -0.0243301, -0.0576527 ,
+ 0.0816803, 0.0209129, -0.0252132, 0.00862653 ,
+ -0.000291292, -0.0321729, -0.0420941, -0.0337277 ,
+ -0.0437487, -0.0829732, -0.0204293, -0.00431197 ,
+ -0.0368233, 0.0603629, 0.100129, 0.0699234 ,
+ 0.0323246, 0.0996105, 0.101493, 0.0618948 ,
+ -0.0570015, 0.00309003, 0.0215235, -0.00615701 ,
+ -0.0409428, -0.00119514, -0.030433, -0.058088 ,
+ 0.0681947, 0.0495386, 0.00732869, -0.0161824 ,
+ -0.0877154, -0.0736955, 0.0568896, 0.0735209 ,
+ 0.00364403, -0.0650837, -0.0987909, 0.000391094 ,
+ -0.0720601, -0.108708, -0.0124254, 0.0616276 ,
+ 0.0784097, 0.0469349, 0.0366783, 0.063275 ,
+ -0.0593657, -0.00282311, 0.0769025, 0.0615072 ,
+ 0.000459591, 0.0346143, -0.021285, -0.0653379 ,
+ -0.0613624, -0.0414185, -0.0258993, 0.0293398 ,
+ 0.0561869, 0.00284003, -0.0698109, -0.108769 ,
+ 0.0255397, 0.0240966, 0.00965894, -0.0185744 ,
+ -0.0311302, -0.0348321, -0.0643836, -0.087961 ,
+ -0.0178522, -0.0249531, 0.00691746, 0.00633037 ,
+ 0.0190701, 0.054546, 0.0357467, 0.00441301 ,
+ 0.0209673, 0.0443636, 0.0629741, 0.0490352 ,
+ -0.0303771, 0.0461687, 0.0170642, -0.0299189 ,
+ -0.039361, -0.0552284, -0.0636163, -0.0337255 ,
+ 0.0309179, 0.0726203, 0.0127211, -0.0407433 ,
+ 0.0471008, -0.00760497, 0.000307061, 0.077017
+};
+
+
+
+float lsp_cdbk_wb41[]={ -0.0341969, 0.0467629, 0.101101, 0.0665703 ,
+ 0.00632321, 0.0767175, 0.0142172, -0.0428689 ,
+ -0.00911563, -0.0432323, -0.0505134, -0.0155252 ,
+ 0.0546512, 0.0417425, 0.0032654, -0.0221187 ,
+ -0.0938853, -0.0900061, 0.0346116, 0.0527547 ,
+ 0.0748964, 0.0495082, 0.0228797, 0.011031 ,
+ -0.000934856, -0.0496318, -0.0699528, 0.0349378 ,
+ -0.0136187, 0.0109192, -0.0368274, -0.0576047 ,
+ -0.0666978, -0.034459, 0.0381528, 0.0403699 ,
+ 0.050917, 0.0122001, 0.00316405, 0.0108312 ,
+ -0.0534151, -0.10915, -0.125608, 0.017797 ,
+ 0.0450573, 0.00502951, -0.0599846, -0.073819 ,
+ -0.0540341, -0.0314228, 0.00521076, 0.00753646 ,
+ 0.069445, 0.0686637, 0.0563824, 0.039981 ,
+ -0.0353548, -0.0731969, -0.0746616, -0.0232833 ,
+ 0.00867289, -0.032472, -0.00714505, 0.029924 ,
+ -0.0208522, -0.0210139, 0.0712359, 0.0608794 ,
+ -0.00923337, 0.0221759, 0.0288251, 0.0203133 ,
+ -0.0589358, -0.0615979, -0.0348023, -0.0172672 ,
+ 0.0427003, 0.00200091, -0.0303992, -0.0275908 ,
+ -0.11778, -0.025056, 0.0237824, 0.0225942 ,
+ 0.097378, 0.116923, 0.0928196, 0.0542491 ,
+ 0.0120948, -0.0173349, -0.0469168, -0.0446899 ,
+ -0.0252714, -0.0233886, -0.0221554, -0.0285797 ,
+ -0.101111, 0.0559369, 0.0655071, 0.0288301 ,
+ 0.0159297, -0.00252758, 0.0329538, 0.0470156 ,
+ -0.0848812, -0.0932168, -0.0729919, -0.0383258 ,
+ 0.0795282, 0.0259612, -0.0261653, -0.0253347 ,
+ -0.034235, -0.0626825, 0.0130657, 0.0453489 ,
+ 0.0215423, 0.0655803, 0.0561738, 0.02589 ,
+ 0.0144846, -0.0263387, -0.0936625, -0.0976842 ,
+ -0.00309573, -0.0154109, 0.0420851, -0.000383175 ,
+ -0.0118326, 0.0370955, 0.0603541, 0.0446302 ,
+ 0.0234213, 0.0409003, 0.021278, -0.00303458 ,
+ -0.0263992, -0.0517623, -0.0161219, 0.00496583 ,
+ 0.100169, 0.06813, 0.00584898, -0.0304156 ,
+ -0.0981221, -0.115411, -0.0370118, 0.0232841 ,
+ 0.0557331, 0.0850929, 0.0441081, -0.00867493 ,
+ 0.0111771, -0.0558704, -0.129231, -0.00800181 ,
+ -0.0202398, 0.0225978, 0.00296129, -0.0197098 ,
+ -0.0906333, -0.0218953, 0.0859298, 0.063991 ,
+ 0.0361821, 0.0322898, 0.0359027, 0.0282784 ,
+ -0.0469474, -0.0861781, -0.0421327, 0.0311466 ,
+ 0.0361796, 0.0333741, -0.0223269, -0.0555353 ,
+ -0.0200097, -0.0109569, -0.0027162, 0.00367447 ,
+ 0.0290085, 0.0852593, 0.094144, 0.0646984 ,
+ -0.0396032, -0.0406289, -0.0587402, -0.0575732 ,
+ 0.0347617, 0.00140702, -0.0442649, 0.0200079 ,
+ -0.0529398, 0.0126326, 0.0544797, 0.0446984 ,
+ -0.0273517, 0.0569527, 0.0498291, 0.000967004 ,
+ -0.0746579, -0.011658, -0.0216252, -0.0258857 ,
+ 0.0180507, 0.0134015, -0.00761955, -0.0223225 ,
+ -0.0813119, -0.0665592, -0.00332199, 0.0129237 ,
+ 0.122242, 0.0942048, 0.048909, 0.0115692 ,
+ 0.0504384, -0.0166522, -0.0796758, -0.0287423 ,
+ 0.0109349, -0.0186578, -0.0224748, -0.0111179 ,
+ -0.0586075, 0.0107525, 0.0265486, 0.00582885 ,
+ 0.0308056, 0.0300831, 0.0701293, 0.0579173 ,
+ -0.0416343, -0.0754864, -0.114926, -0.0865662 ,
+ 0.0882165, 0.0418242, -0.0428899, -0.0729621 ,
+ -0.0256622, -0.0163012, 0.024723, 0.0337466 ,
+ -0.0202485, 0.114162, 0.0867569, 0.0203591 ,
+ -0.00202442, -0.0428726, -0.0802246, -0.054963 ,
+ 0.0144794, 0.00430814, 0.00724458, 0.00992002
+};
+
+
+
+float lsp_cdbk_wb12[]={ -0.0117243, 0.0273284, 0.00368006, 0.0124344 ,
+ -0.0135697, -0.00748621, -0.0104165, -0.00313207 ,
+ -0.00727695, -0.00852377, -0.00146203, -0.0168582 ,
+ 0.0178762, 0.0139778, 0.00160603, 0.0177493 ,
+ -0.0403252, -0.0331254, -0.021328, -0.0230572 ,
+ 0.0105645, 0.00115511, -0.00313536, -0.0220402 ,
+ 0.0141204, 0.012327, -0.00618882, -0.00619472 ,
+ 0.0227512, -0.014052, 0.0242357, -0.00355953 ,
+ -0.0113858, 0.00189666, 0.00270992, 0.0118367 ,
+ 0.0124357, -0.00415549, -0.00672346, 0.00979633 ,
+ 0.0133599, 0.0206006, -0.00311611, -0.0521692 ,
+ -0.00894005, -0.00899782, 0.0324831, 0.0607517 ,
+ -0.000668634, -0.0136654, -0.00823002, -0.00115865 ,
+ 0.0185433, -0.00125864, -0.0370176, -0.00768435 ,
+ -0.0183131, 0.0315346, 0.0255496, -0.0201783 ,
+ 0.00800598, 0.0152957, 0.00696211, 0.00321405 ,
+ -0.0288829, 0.0366353, -0.0104898, -0.0122026 ,
+ -0.0156839, 0.0138466, -0.0244565, 0.0120071 ,
+ -0.0342156, 0.00112013, 0.00704873, -0.0140681 ,
+ 0.0211453, -0.0111472, 0.00659709, 0.024433 ,
+ -0.0130082, -0.0132354, -0.0129048, 0.0253763 ,
+ -0.0157019, 0.00705456, -0.00768567, -0.0128053 ,
+ 0.000278486, 0.00168304, -0.00812974, -0.0110988 ,
+ -0.0111867, -0.0127011, 0.0408501, -0.00512358 ,
+ -0.00330186, -0.00127793, 0.00199092, -0.00150114 ,
+ 0.00884445, -0.0173704, -0.023481, 0.00955676 ,
+ 4.42186e-05, -0.00578715, 0.0170132, -0.0113368 ,
+ 8.32652e-05, 0.00728618, -0.00332493, 0.0224658 ,
+ 0.0207863, -0.0245216, -0.00299148, -0.00253914 ,
+ 0.00742986, 0.00685339, 0.00645726, -0.00869299 ,
+ -0.0123498, 0.0118296, 0.0089713, -0.00191425 ,
+ 0.0100928, 0.000402212, 0.0204172, 0.0068544 ,
+ -0.0234257, 0.00467974, -0.00670662, 0.00694326 ,
+ -0.0142569, -0.0124918, 0.000138174, 0.00667689 ,
+ 0.00663927, -0.025471, 0.0110099, -0.0219065 ,
+ 0.0198833, 0.00253336, -0.0259659, 0.031118 ,
+ -0.0109881, -0.0232536, 0.00592749, -0.00598176 ,
+ 0.0131169, -0.00289907, -0.0115536, -0.00544872 ,
+ 0.00596016, 0.0269243, -0.0154784, 0.00330946 ,
+ 0.00329668, -0.0261311, 0.0182677, 0.00870853 ,
+ -0.0227141, 0.00186141, 0.0197775, 0.0116491 ,
+ 0.00981145, 0.00698328, -0.0161433, 0.00808552 ,
+ 0.0141399, 0.00915552, 0.0205465, -0.0182266 ,
+ -0.0024024, -0.00818429, 0.00650325, 0.0184398 ,
+ 0.00201093, -0.0133418, -0.0162355, -0.0148969 ,
+ 0.0352252, 0.00611381, -0.0134785, 0.001963 ,
+ 0.0308591, 0.0510138, 0.0216382, -0.0107411 ,
+ -0.000896923, 0.00917424, 0.0114611, 0.0132766 ,
+ -0.0571783, 0.0294635, 0.0125376, 0.0145461 ,
+ -0.00334089, -0.00320841, -0.0207116, 0.000637089 ,
+ -0.0158226, -0.00381983, 0.00790226, -0.00580586 ,
+ 0.00734837, -0.000136948, 0.00474065, 0.00926257 ,
+ 0.00325647, -0.0210647, -0.0018998, 0.0109497 ,
+ -0.00197869, 0.009597, -0.0212388, -0.0128033 ,
+ -0.00094711, 0.00951734, -0.00569318, 0.00390457 ,
+ -0.0168255, -0.00795445, 0.0247037, -0.0360481 ,
+ -0.00625342, -0.00615772, 0.0153949, 0.00476479 ,
+ -0.013303, -0.0218729, -0.0555918, 0.0161479 ,
+ -0.00503214, 0.00551549, 0.00646261, -0.0179803 ,
+ -0.0033241, -0.00461351, -0.0098352, 0.012072 ,
+ 0.0102284, -0.00949427, 0.00318918, -0.00899595 ,
+ 0.0208503, 0.0022576, 0.00488851, -0.000424353 ,
+ -0.000662742, 0.0199903, -0.000484548, -0.0122506 ,
+ -0.000829479, 0.0103075, 0.019262, -0.00267785
+};
+
+
+
+float lsp_cdbk_wb22[]={ -0.00691449, -0.0097097, 0.00929234, 0.028145 ,
+ 0.0162055, -0.0135973, 0.0486039, -0.00958548 ,
+ 0.0131488, -0.0215534, 0.0166796, -0.0300024 ,
+ 0.0220689, -0.0115567, -0.00561277, -0.0126729 ,
+ -0.0162825, -0.0260654, -0.0178066, -0.00303848 ,
+ -0.0304214, 0.0202831, -0.0375722, -0.00467826 ,
+ -0.0253238, 0.0123028, 0.00918233, 0.0157109 ,
+ 0.0479716, 0.00256866, 0.00197284, 0.0347122 ,
+ 0.0171306, -0.0176695, -0.0221077, 0.00482973 ,
+ -0.0131916, 0.016654, 0.00105901, -0.0197762 ,
+ 7.17349e-05, -0.0185565, 0.0257597, 0.00702413 ,
+ 0.000467148, -0.00970672, -0.0186417, -0.0116996 ,
+ -0.0262722, -0.00504147, 0.00525927, -0.0501392 ,
+ -0.00461263, 0.0408972, -0.00246444, -0.00168126 ,
+ -0.00477903, 0.0218464, 0.0145306, 0.00102568 ,
+ 0.0264853, 0.00189126, -0.00444548, 0.00632973 ,
+ -0.00644224, 1.13868e-05, -0.0109768, 0.0610038 ,
+ 0.00837256, 0.00188312, -0.001689, -0.0297221 ,
+ -0.0179707, -0.0219191, 0.00941347, -0.00936294 ,
+ 0.0231281, -0.00866059, 0.017754, -0.00169376 ,
+ -0.0239302, -0.00241732, -0.0108905, -0.00381157 ,
+ 0.00783695, 0.0376203, -0.0233659, 0.0277348 ,
+ -0.0438047, 0.0303856, 0.00020315, -0.0163865 ,
+ 0.0160874, 0.0140765, 0.0247821, 0.00752596 ,
+ 0.010338, -0.000936441, -0.0133571, 0.0275316 ,
+ 0.00452966, 0.0305478, -0.0297359, -0.012098 ,
+ -0.0306026, -0.0103248, 0.0374663, -0.00820769 ,
+ 0.0116852, -0.0217759, -0.0296179, -0.0402151 ,
+ 0.00084983, -0.00883958, 0.00543899, -0.00731946 ,
+ -0.00384903, 0.0191832, 0.00484844, 0.0273012 ,
+ 0.0107058, 0.012467, 0.0200002, -0.0160171 ,
+ 0.00825479, 0.00978953, -0.0244641, 0.00747406 ,
+ -0.0228622, -0.0121519, 0.0068753, 0.0121052 ,
+ -5.02125e-05, 0.00181587, 0.0485101, -0.048764 ,
+ -0.00797787, -0.0542823, 0.0256476, -0.0211497 ,
+ 0.00529613, -0.0309174, -0.00446704, -0.0110312 ,
+ -0.00456743, -0.0146905, -0.0126196, 0.0122928 ,
+ -0.0136139, 0.017361, -0.0131508, 0.00528122 ,
+ -0.0177189, 0.0113639, 0.0524067, 0.0501726 ,
+ 0.0123468, 0.000510666, 0.0157299, 0.0233582 ,
+ 0.0138717, -0.0464215, -0.0295801, 0.0353133 ,
+ 0.00796075, 0.0330784, 0.00413553, -0.0447931 ,
+ 0.0267229, -0.0444832, 0.0322919, 0.0377708 ,
+ -0.00923341, 0.00776178, -0.0215828, -0.0210752 ,
+ -0.0130443, -0.0105334, -0.00410723, -0.0243987 ,
+ -0.0360056, 0.0388941, -0.0133378, 0.0289498 ,
+ -0.00919119, 0.0422867, 0.0361711, -0.00143011 ,
+ 0.0382403, 0.00530555, -0.0453324, 0.0125637 ,
+ -0.0202181, -0.000586673, -0.0170455, 0.0242988 ,
+ 0.0393402, 0.00379615, 0.00546312, -0.0241524 ,
+ -0.00516639, -0.0321965, 0.00403868, 0.0124875 ,
+ 0.043946, -0.0402826, 0.00607744, -0.00728257 ,
+ -0.0562613, -0.0261338, -0.0134039, 0.00566632 ,
+ -0.00936515, 0.0240988, -0.058857, 0.0329247 ,
+ -0.0237343, 0.00419506, 0.0107317, -0.00624951 ,
+ 0.000683212, 0.00309819, 0.00293416, 0.00802886 ,
+ 0.0170008, -0.0193218, 0.00246499, 0.0148452 ,
+ 0.00572794, 0.0143662, -0.00565402, -0.0114694 ,
+ -0.00921606, 0.00377232, 0.0265067, 0.00901377 ,
+ -0.00789938, -0.00638946, -0.0394496, 0.00362903 ,
+ -0.00879287, 0.00143838, 0.0223026, -0.0194504 ,
+ 0.0155391, 0.0226552, -0.00171182, 0.0126042 ,
+ 0.022526, 0.0217956, 0.00267151, -0.00876908 ,
+ 0.0193179, 0.00520101, -0.0217822, -0.0136626
+};
+
+
+
+float lsp_cdbk_wb32[]={ -0.0171834, -0.0121366, -0.0119594, 0.00402501 ,
+ 0.00421915, 0.0123638, 0.0212738, 0.00742559 ,
+ -0.000573511, -0.0326008, 0.00189117, -0.00498096 ,
+ -0.0138584, -0.0104848, 0.0192054, 0.00546946 ,
+ 0.00252494, 0.0194048, 0.00678821, -0.0187187 ,
+ -0.00157848, -0.000627772, 0.00260856, 0.0270307 ,
+ -0.00505688, 0.00999846, -0.0223495, -0.0123359 ,
+ 0.0189072, -0.0152359, 0.0109325, 0.0112526 ,
+ -0.0250612, 0.0166543, 0.00516244, 0.0016252 ,
+ 0.00381185, 0.02618, -0.006338, 0.0109824 ,
+ 0.0125841, -0.0093648, -0.00980883, -0.0184656 ,
+ 0.0134235, -0.00892574, 0.0259858, -0.0192932 ,
+ -0.0157422, -0.00518897, 0.00306048, -0.0218022 ,
+ 0.0123995, -0.0105867, -0.0213789, 0.0115491 ,
+ -0.0147119, 0.0134099, -0.0300035, 0.0233983 ,
+ 0.024268, 0.00897744, -0.00264061, 5.28465e-05
+};
+
+
+
+float lsp_cdbk_wb42[]={ 0.0131428, -0.0232881, -0.00653688, 0.00178895 ,
+ -0.0178153, 0.00603919, -0.00377331, -0.0170352 ,
+ 0.00553247, 0.0132507, 0.0173117, -0.0123557 ,
+ 0.021181, 0.00302796, -0.00113724, 0.00104542 ,
+ 0.000895942, -0.00325206, -0.0193061, -0.00706973 ,
+ -0.0195818, 0.000281763, -0.00922805, 0.0135185 ,
+ -0.0140472, 0.00562858, 0.0136955, 0.00400098 ,
+ -0.0146962, 0.0268787, -0.0245983, 0.01283 ,
+ 0.0137401, -0.0124167, 0.02235, 0.00311808 ,
+ -0.0121956, -0.016586, -0.00309027, -0.00277741 ,
+ 0.0100096, -0.00650509, -0.000530877, -0.0233902 ,
+ 0.00517652, 0.0147219, 0.0084513, 0.0160545 ,
+ 0.0109317, 0.00125028, -0.020502, 0.0208695 ,
+ -0.000216223, -0.0106922, 0.00461348, 0.0184064 ,
+ -0.00880051, -0.0161151, 0.0235866, -0.0181156 ,
+ 0.00362336, 0.0198544, -0.00652867, -0.00720515
+};
+
+
diff --git a/libspeex/modes.c b/libspeex/modes.c
index fa612b0..2475e1f 100644
--- a/libspeex/modes.c
+++ b/libspeex/modes.c
@@ -78,7 +78,7 @@ SpeexMode wb_mode = {
0.9, /*gamma1*/
0.2, /*gamma2*/
/*LSP quantization*/
- lsp_quant_nb,
+ lsp_quant_wb,
lsp_unquant_nb,
/*Pitch quantization*/
pitch_search_3tap,
diff --git a/libspeex/modes.h b/libspeex/modes.h
index 46ec981..1c3fae4 100644
--- a/libspeex/modes.h
+++ b/libspeex/modes.h
@@ -73,5 +73,6 @@ typedef struct SpeexMode {
} SpeexMode;
extern SpeexMode nb_mode;
+extern SpeexMode wb_mode;
#endif
diff --git a/libspeex/quant_lsp.c b/libspeex/quant_lsp.c
index 8d32d56..aa7799e 100644
--- a/libspeex/quant_lsp.c
+++ b/libspeex/quant_lsp.c
@@ -154,3 +154,61 @@ void lsp_unquant_nb(float *lsp, int order, FrameBits *bits)
for (i=0;i<5;i++)
lsp[i+5] += cdbk_nb_high2[id*5+i];
}
+
+
+extern float lsp_cdbk_wb[];
+extern float lsp_cdbk_wb11[];
+extern float lsp_cdbk_wb12[];
+extern float lsp_cdbk_wb21[];
+extern float lsp_cdbk_wb22[];
+extern float lsp_cdbk_wb31[];
+extern float lsp_cdbk_wb32[];
+extern float lsp_cdbk_wb41[];
+extern float lsp_cdbk_wb42[];
+
+void lsp_quant_wb(float *lsp, float *qlsp, int order, FrameBits *bits)
+{
+ int i;
+ float tmp1, tmp2;
+ int id;
+ for (i=0;i<order;i++)
+ qlsp[i]=lsp[i];
+
+ quant_weight[0] = 1/(qlsp[1]-qlsp[0]);
+ quant_weight[order-1] = 1/(qlsp[order-1]-qlsp[order-2]);
+ for (i=1;i<order-1;i++)
+ {
+ tmp1 = 1/(qlsp[i]-qlsp[i-1]);
+ tmp2 = 1/(qlsp[i+1]-qlsp[i]);
+ quant_weight[i] = tmp1 > tmp2 ? tmp1 : tmp2;
+ }
+ id = lsp_quant(qlsp, lsp_cdbk_wb, 64, order);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp, quant_weight, lsp_cdbk_wb11, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp, quant_weight, lsp_cdbk_wb12, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp+4, quant_weight, lsp_cdbk_wb21, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp+4, quant_weight, lsp_cdbk_wb22, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp+8, quant_weight, lsp_cdbk_wb31, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp+8, quant_weight, lsp_cdbk_wb32, 16, 4);
+ frame_bits_pack(bits, id, 4);
+
+ id = lsp_weight_quant(qlsp+12, quant_weight, lsp_cdbk_wb41, 64, 4);
+ frame_bits_pack(bits, id, 6);
+
+ id = lsp_weight_quant(qlsp+12, quant_weight, lsp_cdbk_wb42, 16, 4);
+ frame_bits_pack(bits, id, 4);
+
+ for (i=0;i<order;i++)
+ qlsp[i]=lsp[i]-qlsp[i];
+}
diff --git a/libspeex/quant_lsp.h b/libspeex/quant_lsp.h
index 8c00189..34ad2e0 100644
--- a/libspeex/quant_lsp.h
+++ b/libspeex/quant_lsp.h
@@ -43,4 +43,7 @@ void lsp_quant_nb(float *lsp, float *qlsp, int order, FrameBits *bits);
/* Decodes quantized narrowband LSPs */
void lsp_unquant_nb(float *lsp, int order, FrameBits *bits);
+/* Quantizes wideband LSPs with 50 bits */
+void lsp_quant_wb(float *lsp, float *qlsp, int order, FrameBits *bits);
+
#endif
diff --git a/libspeex/speex.c b/libspeex/speex.c
index 217ed8c..fd7d1c4 100644
--- a/libspeex/speex.c
+++ b/libspeex/speex.c
@@ -191,7 +191,7 @@ void encode(EncState *st, float *in, FrameBits *bits)
roots=lpc_to_lsp (st->lpc, st->lpcSize, st->lsp, 6, 0.02, st->stack);
if (roots!=st->lpcSize)
{
- fprintf (stderr, "roots!=st->lpcSize\n");
+ fprintf (stderr, "roots!=st->lpcSize (found only %d roots)\n", roots);
exit(1);
}
@@ -201,7 +201,15 @@ void encode(EncState *st, float *in, FrameBits *bits)
/* LSP Quantization */
st->lsp_quant(st->lsp, st->qlsp, st->lpcSize, bits);
-
+ printf ("LSP ");
+ for (i=0;i<st->lpcSize;i++)
+ printf ("%f ", st->lsp[i]);
+ printf ("\n");
+ printf ("QLSP ");
+ for (i=0;i<st->lpcSize;i++)
+ printf ("%f ", st->qlsp[i]);
+ printf ("\n");
+ return;
/* Special case for first frame */
if (st->first)
{
diff --git a/libspeex/testenc.c b/libspeex/testenc.c
index 7a00b67..2a88d74 100644
--- a/libspeex/testenc.c
+++ b/libspeex/testenc.c
@@ -2,7 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
-#define FRAME_SIZE 160
+#define FRAME_SIZE 256
#include <math.h>
int main(int argc, char **argv)
{
@@ -19,8 +19,8 @@ int main(int argc, char **argv)
for (i=0;i<FRAME_SIZE;i++)
bak2[i]=0;
- encoder_init(&st, &nb_mode);
- decoder_init(&dec, &nb_mode);
+ encoder_init(&st, &wb_mode);
+ decoder_init(&dec, &wb_mode);
if (argc != 4 && argc != 3)
{
fprintf (stderr, "Usage: encode [in file] [out file] [bits file]\nargc = %d", argc);
@@ -57,9 +57,6 @@ int main(int argc, char **argv)
snr = 10*log10((esig+1)/(enoise+1));
printf ("real SNR = %f\n", snr);
}
- frame_bits_rewind(&bits);
-
- decode(&dec, &bits, input);
/* Save the bits here */
frame_bits_reset(&bits);