Mercurial > libavcodec.hg
diff lsp.h @ 10011:c1cfa4679371 libavcodec
Expose QCELP's floating-point LSP-to-LPC function
qcelp_lsp exported a single function, ff_acelp_lspd2lpc, which was not
specific to qcelp. It can be kept with its fixed-point version
ff_acelp_lsp2lpc in lpc.c.
Patch by Colin McQuillan ( m.niloc googlemail com )
author | superdump |
---|---|
date | Mon, 03 Aug 2009 08:37:02 +0000 |
parents | c4a4495715dd |
children | 9f35b262d3f0 |
line wrap: on
line diff
--- a/lsp.h Mon Aug 03 08:31:20 2009 +0000 +++ b/lsp.h Mon Aug 03 08:37:02 2009 +0000 @@ -67,4 +67,14 @@ */ void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd, const int16_t* lsp_prev, int lp_order); +/** + * Reconstructs LPC coefficients from the line spectral pair frequencies. + * + * @param lsp line spectral pairs in cosine domain + * @param lpc linear predictive coding coefficients + * + * TIA/EIA/IS-733 2.4.3.3.5 + */ +void ff_acelp_lspd2lpc(const double *lsp, float *lpc); + #endif /* AVCODEC_LSP_H */