mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-05 23:34:35 +08:00
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
This commit is contained in:

committed by
Robert Swain

parent
b5fe06abf0
commit
1e1e02eacd
@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user