Mercurial > libavcodec.hg
comparison lsp.h @ 10463:9f35b262d3f0 libavcodec
Commit some functions that are used by both SIPR and AMR.
Based on AMR SoC code by Robert Swain and Colin McQuillan.
author | vitor |
---|---|
date | Tue, 27 Oct 2009 23:53:18 +0000 |
parents | c1cfa4679371 |
children | f132cde57bbe |
comparison
equal
deleted
inserted
replaced
10462:dd97c2418d4e | 10463:9f35b262d3f0 |
---|---|
38 * \param lp_order LP filter order | 38 * \param lp_order LP filter order |
39 */ | 39 */ |
40 void ff_acelp_reorder_lsf(int16_t* lsfq, int lsfq_min_distance, int lsfq_min, int lsfq_max, int lp_order); | 40 void ff_acelp_reorder_lsf(int16_t* lsfq, int lsfq_min_distance, int lsfq_min, int lsfq_max, int lp_order); |
41 | 41 |
42 /** | 42 /** |
43 * Adjust the quantized LSFs so they are increasing and not too close. | |
44 * | |
45 * This step is not mentioned in the AMR spec but is in the reference C decoder. | |
46 * Omitting this step creates audible distortion on the sinusoidal sweep | |
47 * test vectors in 3GPP TS 26.074. | |
48 * | |
49 * @param[in,out] lsf LSFs in Hertz | |
50 * @param min_spacing minimum distance between two consecutive lsf values | |
51 * @param size size of the lsf vector | |
52 */ | |
53 void ff_set_min_dist_lsf(float *lsf, float min_spacing, int order); | |
54 | |
55 /** | |
43 * \brief Convert LSF to LSP | 56 * \brief Convert LSF to LSP |
44 * \param lsp [out] LSP coefficients (-0x8000 <= (0.15) < 0x8000) | 57 * \param lsp [out] LSP coefficients (-0x8000 <= (0.15) < 0x8000) |
45 * \param lsf normalized LSF coefficients (0 <= (2.13) < 0x2000 * PI) | 58 * \param lsf normalized LSF coefficients (0 <= (2.13) < 0x2000 * PI) |
46 * \param lp_order LP filter order | 59 * \param lp_order LP filter order |
47 * | 60 * |