summaryrefslogtreecommitdiff
path: root/libavcodec/qcelpdec.c
diff options
context:
space:
mode:
authorColin McQuillan <m.niloc@googlemail.com>2009-08-03 08:31:20 +0000
committerRobert Swain <robert.swain@gmail.com>2009-08-03 08:31:20 +0000
commit1e1e02eacd948572108c78c15d5b3e3bcd94947c (patch)
tree245934d0727cb04f9d2e2457debae88f404cfdc4 /libavcodec/qcelpdec.c
parentb5fe06abf0841cde115b45ac0fc807d072dfde89 (diff)
Make the LSP naming more consistent
Use the convention from lsp.c: an LSF is a frequency, an LSP is the cosine of an LSF, and LSP functions should have an ff_acelp prefix. Use a "d" suffix to specify doubles. Patch by Colin McQuillan ( m.niloc googlemail com ) Originally committed as revision 19570 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/qcelpdec.c')
-rw-r--r--libavcodec/qcelpdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c
index 89363adc89..4ba42a1be1 100644
--- a/libavcodec/qcelpdec.c
+++ b/libavcodec/qcelpdec.c
@@ -80,7 +80,7 @@ typedef struct
*
* TIA/EIA/IS-733 2.4.3.3.5
*/
-void ff_celp_lspf2lpc(const double *lspf, float *lpc);
+void ff_acelp_lspd2lpc(const double *lsp, float *lpc);
/**
* Initialize the speech codec according to the specification.
@@ -604,14 +604,14 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector)
*/
static void lspf2lpc(const float *lspf, float *lpc)
{
- double lsf[10];
+ double lsp[10];
double bandwidth_expansion_coeff = QCELP_BANDWIDTH_EXPANSION_COEFF;
int i;
for (i=0; i<10; i++)
- lsf[i] = cos(M_PI * lspf[i]);
+ lsp[i] = cos(M_PI * lspf[i]);
- ff_celp_lspf2lpc(lsf, lpc);
+ ff_acelp_lspd2lpc(lsp, lpc);
for (i=0; i<10; i++)
{