diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-11-24 16:58:50 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-11-24 16:58:50 +0000 |
commit | 691a4232ee04aea207d2c4913a645e2ecbf545da (patch) | |
tree | a1f3cd77ed36c018e2092b81f4d8e3ec7632313a /libavcodec/lsp.h | |
parent | d2b34efe225e15bb82793ce166c21af9ab964a5e (diff) | |
download | ffmpeg-691a4232ee04aea207d2c4913a645e2ecbf545da.tar.gz |
Make lsp2polyf() function non-static for upcoming usage in SIPR
Originally committed as revision 20602 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lsp.h')
-rw-r--r-- | libavcodec/lsp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/lsp.h b/libavcodec/lsp.h index 5a9d47b0e8..c3aee7b7dc 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 */ |