From 33ae681f5ca9fa9aae82081dd6a6edbe2509f983 Mon Sep 17 00:00:00 2001 From: Colin McQuillan Date: Mon, 3 Aug 2009 08:37:02 +0000 Subject: 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 --- libavcodec/lsp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavcodec/lsp.h') 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 */ -- cgit v1.2.3