diff options
author | Colin McQuillan <m.niloc@googlemail.com> | 2009-08-03 08:37:02 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2009-08-03 08:37:02 +0000 |
commit | 33ae681f5ca9fa9aae82081dd6a6edbe2509f983 (patch) | |
tree | 091f20de691a3115540d9c6582fb84de0d153b5b /libavcodec/lsp.h | |
parent | 1e1e02eacd948572108c78c15d5b3e3bcd94947c (diff) | |
download | ffmpeg-33ae681f5ca9fa9aae82081dd6a6edbe2509f983.tar.gz |
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 )
Originally committed as revision 19571 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lsp.h')
-rw-r--r-- | libavcodec/lsp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/lsp.h b/libavcodec/lsp.h index 2337756406..0fa585016a 100644 --- a/libavcodec/lsp.h +++ b/libavcodec/lsp.h @@ -67,4 +67,14 @@ void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order); */ 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 */ |