Lines Matching refs:lsp
247 static void lpc2lsp(int16_t *lpc, int16_t *prev_lsp, int16_t *lsp) in lpc2lsp() argument
259 lsp[i] = (lpc[i] * bandwidth_expand[i] + (1 << 14)) >> 15; in lpc2lsp()
267 f[2 * i + 2] = -f[2 * i] - ((lsp[i] + lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
269 f[2 * i + 3] = f[2 * i + 1] - ((lsp[i] - lsp[LPC_ORDER - 1 - i]) << 12); in lpc2lsp()
312 lsp[count++] = ((i - 1) << 7) + (abs_prev >> 1) / (sum >> 16); in lpc2lsp()
331 memcpy(lsp, prev_lsp, LPC_ORDER * sizeof(int16_t)); in lpc2lsp()
352 error = ff_g723_1_dot_product(lsp + (offset), temp, size) << 1; \
367 static void lsp_quantize(uint8_t *lsp_index, int16_t *lsp, int16_t *prev_lsp) in lsp_quantize() argument
374 weight[0] = (1 << 20) / (lsp[1] - lsp[0]); in lsp_quantize()
376 (lsp[LPC_ORDER - 1] - lsp[LPC_ORDER - 2]); in lsp_quantize()
379 min = FFMIN(lsp[i] - lsp[i - 1], lsp[i + 1] - lsp[i]); in lsp_quantize()
398 lsp[i] -= dc_lsp[i] + in lsp_quantize()