/**
* Apply Welch window function to audio block
*/
-static void apply_welch_window_c(const int32_t *data, int len, double *w_data)
+static void lpc_apply_welch_window_c(const int32_t *data, int len,
+ double *w_data)
{
int i, n2;
double w;
* A Welch window function is applied before calculation.
*/
static void lpc_compute_autocorr_c(const double *data, int len, int lag,
- double *autoc)
+ double *autoc)
{
int i, j;
s->windowed_samples = NULL;
}
- s->lpc_apply_welch_window = apply_welch_window_c;
- s->lpc_compute_autocorr = lpc_compute_autocorr_c;
+ s->lpc_apply_welch_window = lpc_apply_welch_window_c;
+ s->lpc_compute_autocorr = lpc_compute_autocorr_c;
if (HAVE_MMX)
ff_lpc_init_x86(s);
#include "libavutil/cpu.h"
#include "libavcodec/lpc.h"
-static void apply_welch_window_sse2(const int32_t *data, int len, double *w_data)
+static void lpc_apply_welch_window_sse2(const int32_t *data, int len,
+ double *w_data)
{
double c = 2.0 / (len-1.0);
int n2 = len>>1;
}
static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
- double *autoc)
+ double *autoc)
{
int j;
int mm_flags = av_get_cpu_flags();
if (mm_flags & (AV_CPU_FLAG_SSE2|AV_CPU_FLAG_SSE2SLOW)) {
- c->lpc_apply_welch_window = apply_welch_window_sse2;
- c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
+ c->lpc_apply_welch_window = lpc_apply_welch_window_sse2;
+ c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
}
}