# HG changeset patch # User vitor # Date 1259081930 0 # Node ID d4ca61e293a3655dae7047e14508ad9f7bae6b2b # Parent 7ca185b4bc42b1512e47bef4f35db250811d12d4 Make lsp2polyf() function non-static for upcoming usage in SIPR diff -r 7ca185b4bc42 -r d4ca61e293a3 lsp.c --- a/lsp.c Tue Nov 24 15:49:34 2009 +0000 +++ b/lsp.c Tue Nov 24 16:58:50 2009 +0000 @@ -128,17 +128,7 @@ ff_acelp_lsp2lpc(lp_2nd, lsp_2nd, lp_order >> 1); } -/** - * Computes the Pa / (1 + z(-1)) or Qa / (1 - z(-1)) coefficients - * needed for LSP to LPC conversion. - * We only need to calculate the 6 first elements of the polynomial. - * - * @param lsp line spectral pairs in cosine domain - * @param f [out] polynomial input/output as a vector - * - * TIA/EIA/IS-733 2.4.3.3.5-1/2 - */ -static void lsp2polyf(const double *lsp, double *f, int lp_half_order) +void ff_lsp2polyf(const double *lsp, double *f, int lp_half_order) { int i, j; @@ -162,8 +152,8 @@ assert(lp_half_order <= MAX_LP_HALF_ORDER); - lsp2polyf(lsp, pa, lp_half_order); - lsp2polyf(lsp + 1, qa, lp_half_order); + ff_lsp2polyf(lsp, pa, lp_half_order); + ff_lsp2polyf(lsp + 1, qa, lp_half_order); while (lp_half_order--) { double paf = pa[lp_half_order+1] + pa[lp_half_order]; diff -r 7ca185b4bc42 -r d4ca61e293a3 lsp.h --- a/lsp.h Tue Nov 24 15:49:34 2009 +0000 +++ b/lsp.h Tue Nov 24 16:58:50 2009 +0000 @@ -104,4 +104,16 @@ */ void ff_sort_nearly_sorted_floats(float *vals, int len); +/** + * Computes the Pa / (1 + z(-1)) or Qa / (1 - z(-1)) coefficients + * needed for LSP to LPC conversion. + * We only need to calculate the 6 first elements of the polynomial. + * + * @param lsp line spectral pairs in cosine domain + * @param f [out] polynomial input/output as a vector + * + * TIA/EIA/IS-733 2.4.3.3.5-1/2 + */ +void ff_lsp2polyf(const double *lsp, double *f, int lp_half_order); + #endif /* AVCODEC_LSP_H */