Mercurial > libavcodec.hg
comparison lsp.h @ 10506:a1d84a5cf21d libavcodec
Avoid variable-length array use in ff_acelp_lspd2lpc()
author | vitor |
---|---|
date | Tue, 10 Nov 2009 04:17:18 +0000 |
parents | f132cde57bbe |
children | 5317dff91b48 |
comparison
equal
deleted
inserted
replaced
10505:e7f082df2d65 | 10506:a1d84a5cf21d |
---|---|
78 * \param lsp_prev LSP coefficients from the second subframe of the previous frame (-0x8000 <= (0.15) < 0x8000) | 78 * \param lsp_prev LSP coefficients from the second subframe of the previous frame (-0x8000 <= (0.15) < 0x8000) |
79 * \param lp_order LP filter order | 79 * \param lp_order LP filter order |
80 */ | 80 */ |
81 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); | 81 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); |
82 | 82 |
83 | |
84 #define MAX_LP_HALF_ORDER 8 | |
85 | |
83 /** | 86 /** |
84 * Reconstructs LPC coefficients from the line spectral pair frequencies. | 87 * Reconstructs LPC coefficients from the line spectral pair frequencies. |
85 * | 88 * |
86 * @param lsp line spectral pairs in cosine domain | 89 * @param lsp line spectral pairs in cosine domain |
87 * @param lpc linear predictive coding coefficients | 90 * @param lpc linear predictive coding coefficients |
91 * @param lp_half_order half the number of the amount of LPCs to be | |
92 * reconstructed, need to be smaller or equal to MAX_LP_HALF_ORDER | |
88 * | 93 * |
89 * @note buffers should have a minimux size of 2*lp_half_order elements. | 94 * @note buffers should have a minimux size of 2*lp_half_order elements. |
90 * | 95 * |
91 * TIA/EIA/IS-733 2.4.3.3.5 | 96 * TIA/EIA/IS-733 2.4.3.3.5 |
92 */ | 97 */ |