[SCM] libav/experimental: Make lsp2polyf() function non-static for upcoming usage in SIPR

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:54:50 UTC 2013


The following commit has been merged in the experimental branch:
commit 691a4232ee04aea207d2c4913a645e2ecbf545da
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Tue Nov 24 16:58:50 2009 +0000

    Make lsp2polyf() function non-static for upcoming usage in SIPR
    
    Originally committed as revision 20602 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c
index 739e1e0..003ffbc 100644
--- a/libavcodec/lsp.c
+++ b/libavcodec/lsp.c
@@ -128,17 +128,7 @@ void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd
     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 @@ void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order)
 
     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 --git a/libavcodec/lsp.h b/libavcodec/lsp.h
index 5a9d47b..c3aee7b 100644
--- a/libavcodec/lsp.h
+++ b/libavcodec/lsp.h
@@ -104,4 +104,16 @@ void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
  */
 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 */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list