Revision 0d8837bd libavcodec/lpc.c

View differences:

libavcodec/lpc.c
20 20
 */
21 21

  
22 22
#include "libavutil/lls.h"
23
#include "dsputil.h"
24 23

  
25 24
#define LPC_USE_DOUBLE
26 25
#include "lpc.h"
......
55 54
 * Calculate autocorrelation data from audio samples
56 55
 * A Welch window function is applied before calculation.
57 56
 */
58
void ff_lpc_compute_autocorr(const int32_t *data, int len, int lag,
57
static void lpc_compute_autocorr_c(const int32_t *data, int len, int lag,
59 58
                             double *autoc)
60 59
{
61 60
    int i, j;
......
162 161
 * 1  = LPC with coeffs determined by Levinson-Durbin recursion
163 162
 * 2+ = LPC with coeffs determined by Cholesky factorization using (use_lpc-1) passes.
164 163
 */
165
int ff_lpc_calc_coefs(DSPContext *s,
164
int ff_lpc_calc_coefs(LPCContext *s,
166 165
                      const int32_t *samples, int blocksize, int min_order,
167 166
                      int max_order, int precision,
168 167
                      int32_t coefs[][MAX_LPC_ORDER], int *shift,
......
236 235

  
237 236
    return opt_order;
238 237
}
238

  
239
av_cold void ff_lpc_init(LPCContext *s)
240
{
241
    s->lpc_compute_autocorr = lpc_compute_autocorr_c;
242

  
243
    if (HAVE_MMX)
244
        ff_lpc_init_x86(s);
245
}

Also available in: Unified diff