Lines Matching refs:lsps

158     int lsps;                     ///< number of LSPs per frame [10 or 16]  member
344 for (n = 0; n < s->lsps; n++) in wmavoice_flush()
345 s->prev_lsps[n] = M_PI * (n + 1.0) / (s->lsps + 1.0); in wmavoice_flush()
354 memset(&s->synth_filter_out_buf[MAX_LSPS_ALIGN16 - s->lsps], 0, in wmavoice_flush()
355 sizeof(*s->synth_filter_out_buf) * s->lsps); in wmavoice_flush()
423 s->lsps = 16; in wmavoice_decode_init()
425 s->lsps = 10; in wmavoice_decode_init()
427 for (n = 0; n < s->lsps; n++) in wmavoice_decode_init()
428 s->prev_lsps[n] = M_PI * (n + 1.0) / (s->lsps + 1.0); in wmavoice_decode_init()
735 memcpy(&tilted_lpcs[1], lpcs, sizeof(lpcs[0]) * s->lsps); in wiener_denoise()
736 memset(&tilted_lpcs[s->lsps + 1], 0, in wiener_denoise()
737 sizeof(tilted_lpcs[0]) * (128 - s->lsps - 1)); in wiener_denoise()
738 ff_tilt_compensation(&tilt_mem, 0.7 * tilt_factor(lpcs, s->lsps), in wiener_denoise()
739 tilted_lpcs, s->lsps + 2); in wiener_denoise()
818 ff_celp_lp_zero_synthesis_filterf(zero_exc_pf, lpcs, synth, size, s->lsps); in postfilter()
826 synth_filter_in, size, s->lsps); in postfilter()
827 memcpy(&synth_pf[-s->lsps], &synth_pf[size - s->lsps], in postfilter()
828 sizeof(synth_pf[0]) * s->lsps); in postfilter()
860 static void dequant_lsps(double *lsps, int num, in dequant_lsps() argument
869 memset(lsps, 0, num * sizeof(*lsps)); in dequant_lsps()
875 lsps[m] += base + mul * t_off[m]; in dequant_lsps()
891 static void dequant_lsp10i(GetBitContext *gb, double *lsps) in dequant_lsp10i() argument
909 dequant_lsps(lsps, 10, v, vec_sizes, 4, wmavoice_dq_lsp10i, in dequant_lsp10i()
953 static void dequant_lsp16i(GetBitContext *gb, double *lsps) in dequant_lsp16i() argument
974 dequant_lsps( lsps, 5, v, vec_sizes, 2, in dequant_lsp16i()
976 dequant_lsps(&lsps[5], 5, &v[2], &vec_sizes[2], 2, in dequant_lsp16i()
978 dequant_lsps(&lsps[10], 6, &v[4], &vec_sizes[4], 1, in dequant_lsp16i()
1443 const double *lsps, const double *prev_lsps, in synth_block() argument
1460 for (n = 0; n < s->lsps; n++) // LSF -> LSP in synth_block()
1461 i_lsps[n] = cos(prev_lsps[n] + fac * (lsps[n] - prev_lsps[n])); in synth_block()
1462 ff_acelp_lspd2lpc(i_lsps, lpcs, s->lsps >> 1); in synth_block()
1465 ff_celp_lp_synthesis_filterf(synth, lpcs, excitation, size, s->lsps); in synth_block()
1484 const double *lsps, const double *prev_lsps, in synth_frame() argument
1600 lsps, prev_lsps, &frame_descs[bd_idx], in synth_frame()
1611 for (n = 0; n < s->lsps; n++) // LSF -> LSP in synth_frame()
1612 i_lsps[n] = cos(0.5 * (prev_lsps[n] + lsps[n])); in synth_frame()
1613 ff_acelp_lspd2lpc(i_lsps, lpcs, s->lsps >> 1); in synth_frame()
1618 for (n = 0; n < s->lsps; n++) // LSF -> LSP in synth_frame()
1619 i_lsps[n] = cos(lsps[n]); in synth_frame()
1620 ff_acelp_lspd2lpc(i_lsps, lpcs, s->lsps >> 1); in synth_frame()
1658 static void stabilize_lsps(double *lsps, int num) in stabilize_lsps() argument
1665 lsps[0] = FFMAX(lsps[0], 0.0015 * M_PI); in stabilize_lsps()
1667 lsps[n] = FFMAX(lsps[n], lsps[n - 1] + 0.0125 * M_PI); in stabilize_lsps()
1668 lsps[num - 1] = FFMIN(lsps[num - 1], 0.9985 * M_PI); in stabilize_lsps()
1673 if (lsps[n] < lsps[n - 1]) { in stabilize_lsps()
1675 double tmp = lsps[m]; in stabilize_lsps()
1677 if (lsps[l] <= tmp) break; in stabilize_lsps()
1678 lsps[l + 1] = lsps[l]; in stabilize_lsps()
1680 lsps[l + 1] = tmp; in stabilize_lsps()
1710 double lsps[MAX_FRAMES][MAX_LSPS]; in synth_superframe() local
1711 const double *mean_lsf = s->lsps == 16 ? in synth_superframe()
1718 s->lsps * sizeof(*synth)); in synth_superframe()
1751 for (n = 0; n < s->lsps; n++) in synth_superframe()
1754 if (s->lsps == 10) { in synth_superframe()
1755 dequant_lsp10r(gb, lsps[2], prev_lsps, a1, a2, s->lsp_q_mode); in synth_superframe()
1757 dequant_lsp16r(gb, lsps[2], prev_lsps, a1, a2, s->lsp_q_mode); in synth_superframe()
1759 for (n = 0; n < s->lsps; n++) { in synth_superframe()
1760 lsps[0][n] = mean_lsf[n] + (a1[n] - a2[n * 2]); in synth_superframe()
1761 lsps[1][n] = mean_lsf[n] + (a1[s->lsps + n] - a2[n * 2 + 1]); in synth_superframe()
1762 lsps[2][n] += mean_lsf[n]; in synth_superframe()
1765 stabilize_lsps(lsps[n], s->lsps); in synth_superframe()
1784 if (s->lsps == 10) { in synth_superframe()
1785 dequant_lsp10i(gb, lsps[n]); in synth_superframe()
1787 dequant_lsp16i(gb, lsps[n]); in synth_superframe()
1789 for (m = 0; m < s->lsps; m++) in synth_superframe()
1790 lsps[n][m] += mean_lsf[m]; in synth_superframe()
1791 stabilize_lsps(lsps[n], s->lsps); in synth_superframe()
1796 lsps[n], n == 0 ? s->prev_lsps : lsps[n - 1], in synth_superframe()
1798 &synth[s->lsps + n * MAX_FRAMESIZE]))) { in synth_superframe()
1820 memcpy(s->prev_lsps, lsps[2], in synth_superframe()
1821 s->lsps * sizeof(*s->prev_lsps)); in synth_superframe()
1823 s->lsps * sizeof(*synth)); in synth_superframe()