diff lsp.h @ 10567:d4ca61e293a3 libavcodec

Make lsp2polyf() function non-static for upcoming usage in SIPR
author vitor
date Tue, 24 Nov 2009 16:58:50 +0000
parents f2f4d6fe3f6d
children d7808ddcbcee
line wrap: on
line diff
--- 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 */