Lines Matching refs:lsp
261 static void lsp_unquant_lbr(float *lsp, int order, GetBitContext *gb)
266 lsp[i] = LSP_LINEAR(i);
270 lsp[i] += LSP_DIV_256(cdbk_nb[id * 10 + i]);
274 lsp[i] += LSP_DIV_512(cdbk_nb_low1[id * 5 + i]);
278 lsp[i + 5] += LSP_DIV_512(cdbk_nb_high1[id * 5 + i]);
409 static void lsp_unquant_nb(float *lsp, int order, GetBitContext *gb)
414 lsp[i] = LSP_LINEAR(i);
418 lsp[i] += LSP_DIV_256(cdbk_nb[id * 10 + i]);
422 lsp[i] += LSP_DIV_512(cdbk_nb_low1[id * 5 + i]);
426 lsp[i] += LSP_DIV_1024(cdbk_nb_low2[id * 5 + i]);
430 lsp[i + 5] += LSP_DIV_512(cdbk_nb_high1[id * 5 + i]);
434 lsp[i + 5] += LSP_DIV_1024(cdbk_nb_high2[id * 5 + i]);
437 static void lsp_unquant_high(float *lsp, int order, GetBitContext *gb)
442 lsp[i] = LSP_LINEAR_HIGH(i);
446 lsp[i] += LSP_DIV_256(high_lsp_cdbk[id * order + i]);
450 lsp[i] += LSP_DIV_512(high_lsp_cdbk2[id * order + i]);
806 float *lsp, int len, int subframe,
812 lsp[i] = (1.f - tmp) * old_lsp[i] + tmp * new_lsp[i];
813 lsp[i] = av_clipf(lsp[i], margin, M_PI - margin);
816 lsp[i] = fmaxf(lsp[i], lsp[i - 1] + margin);
817 if (lsp[i] > lsp[i + 1] - margin)
818 lsp[i] = .5f * (lsp[i] + lsp[i + 1] - margin);