Revision 384dbd61

View differences:

libavcodec/lpc.c
28 28
/**
29 29
 * Apply Welch window function to audio block
30 30
 */
31
static void apply_welch_window_c(const int32_t *data, int len, double *w_data)
31
static void lpc_apply_welch_window_c(const int32_t *data, int len,
32
                                     double *w_data)
32 33
{
33 34
    int i, n2;
34 35
    double w;
......
55 56
 * A Welch window function is applied before calculation.
56 57
 */
57 58
static void lpc_compute_autocorr_c(const double *data, int len, int lag,
58
                             double *autoc)
59
                                   double *autoc)
59 60
{
60 61
    int i, j;
61 62

  
......
255 256
        s->windowed_samples = NULL;
256 257
    }
257 258

  
258
    s->lpc_apply_welch_window = apply_welch_window_c;
259
    s->lpc_compute_autocorr = lpc_compute_autocorr_c;
259
    s->lpc_apply_welch_window = lpc_apply_welch_window_c;
260
    s->lpc_compute_autocorr   = lpc_compute_autocorr_c;
260 261

  
261 262
    if (HAVE_MMX)
262 263
        ff_lpc_init_x86(s);
libavcodec/x86/lpc_mmx.c
23 23
#include "libavutil/cpu.h"
24 24
#include "libavcodec/lpc.h"
25 25

  
26
static void apply_welch_window_sse2(const int32_t *data, int len, double *w_data)
26
static void lpc_apply_welch_window_sse2(const int32_t *data, int len,
27
                                        double *w_data)
27 28
{
28 29
    double c = 2.0 / (len-1.0);
29 30
    int n2 = len>>1;
......
70 71
}
71 72

  
72 73
static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
73
                                   double *autoc)
74
                                      double *autoc)
74 75
{
75 76
    int j;
76 77

  
......
140 141
    int mm_flags = av_get_cpu_flags();
141 142

  
142 143
    if (mm_flags & (AV_CPU_FLAG_SSE2|AV_CPU_FLAG_SSE2SLOW)) {
143
        c->lpc_apply_welch_window = apply_welch_window_sse2;
144
        c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
144
        c->lpc_apply_welch_window = lpc_apply_welch_window_sse2;
145
        c->lpc_compute_autocorr   = lpc_compute_autocorr_sse2;
145 146
    }
146 147
}

Also available in: Unified diff