Lines Matching defs:qlsp

71 static void compute_quant_weights(spx_lsp_t *qlsp, spx_word16_t *quant_weight, int order)
78 tmp1 = qlsp[i];
80 tmp1 = qlsp[i]-qlsp[i-1];
82 tmp2 = LSP_PI-qlsp[i];
84 tmp2 = qlsp[i+1]-qlsp[i];
159 void lsp_quant_nb(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
166 qlsp[i]=lsp[i];
168 compute_quant_weights(qlsp, quant_weight, order);
171 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i));
175 qlsp[i] = LSP_SCALE*qlsp[i];
177 id = lsp_quant(qlsp, cdbk_nb, NB_CDBK_SIZE, order);
181 qlsp[i]*=2;
183 id = lsp_weight_quant(qlsp, quant_weight, cdbk_nb_low1, NB_CDBK_SIZE_LOW1, 5);
187 qlsp[i]*=2;
189 id = lsp_weight_quant(qlsp, quant_weight, cdbk_nb_low2, NB_CDBK_SIZE_LOW2, 5);
192 id = lsp_weight_quant(qlsp+5, quant_weight+5, cdbk_nb_high1, NB_CDBK_SIZE_HIGH1, 5);
196 qlsp[i]*=2;
198 id = lsp_weight_quant(qlsp+5, quant_weight+5, cdbk_nb_high2, NB_CDBK_SIZE_HIGH2, 5);
203 qlsp[i]=PSHR16(qlsp[i],2);
206 qlsp[i]=qlsp[i] * .00097656;
210 qlsp[i]=lsp[i]-qlsp[i];
242 void lsp_quant_lbr(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
249 qlsp[i]=lsp[i];
251 compute_quant_weights(qlsp, quant_weight, order);
254 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i));
257 qlsp[i]=qlsp[i]*LSP_SCALE;
259 id = lsp_quant(qlsp, cdbk_nb, NB_CDBK_SIZE, order);
263 qlsp[i]*=2;
265 id = lsp_weight_quant(qlsp, quant_weight, cdbk_nb_low1, NB_CDBK_SIZE_LOW1, 5);
268 id = lsp_weight_quant(qlsp+5, quant_weight+5, cdbk_nb_high1, NB_CDBK_SIZE_HIGH1, 5);
273 qlsp[i] = PSHR16(qlsp[i],1);
276 qlsp[i] = qlsp[i]*0.0019531;
280 qlsp[i]=lsp[i]-qlsp[i];
306 void lsp_quant_high(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
319 void lsp_quant_high(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
326 qlsp[i]=lsp[i];
328 compute_quant_weights(qlsp, quant_weight, order);
330 /* quant_weight[0] = 10/(qlsp[1]-qlsp[0]);
331 quant_weight[order-1] = 10/(qlsp[order-1]-qlsp[order-2]);
334 tmp1 = 10/(qlsp[i]-qlsp[i-1]);
335 tmp2 = 10/(qlsp[i+1]-qlsp[i]);
340 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR_HIGH(i));
343 qlsp[i] = qlsp[i]*LSP_SCALE;
345 id = lsp_quant(qlsp, high_lsp_cdbk, 64, order);
349 qlsp[i]*=2;
351 id = lsp_weight_quant(qlsp, quant_weight, high_lsp_cdbk2, 64, order);
356 qlsp[i] = PSHR16(qlsp[i],1);
359 qlsp[i] = qlsp[i]*0.0019531;
363 qlsp[i]=lsp[i]-qlsp[i];