aboutsummaryrefslogtreecommitdiff
path: root/drivers/opus/celt/celt_lpc.h
diff options
context:
space:
mode:
authorGeorge Marques2016-05-01 12:48:46 -0300
committerGeorge Marques2016-05-02 13:18:34 -0300
commit7c59d819a7ebb936d51ca032e66a2489e4080d08 (patch)
treedf6747620113a36812194db3456729aac2fa1b08 /drivers/opus/celt/celt_lpc.h
parenta3d81cab8a97eeece54ebadb82c40532188b4d57 (diff)
downloadgodot-7c59d819a7ebb936d51ca032e66a2489e4080d08.tar.gz
godot-7c59d819a7ebb936d51ca032e66a2489e4080d08.tar.zst
godot-7c59d819a7ebb936d51ca032e66a2489e4080d08.zip
Update Opus driver to 1.1.2
And opusfile to 0.7.
Diffstat (limited to 'drivers/opus/celt/celt_lpc.h')
-rw-r--r--drivers/opus/celt/celt_lpc.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/opus/celt/celt_lpc.h b/drivers/opus/celt/celt_lpc.h
index 12bb78a6f..dc0352d46 100644
--- a/drivers/opus/celt/celt_lpc.h
+++ b/drivers/opus/celt/celt_lpc.h
@@ -29,24 +29,37 @@
#define PLC_H
#include "opus/celt/arch.h"
+#include "opus/celt/cpu_support.h"
+
+#if defined(OPUS_X86_MAY_HAVE_SSE4_1)
+#include "opus/celt/x86/celt_lpc_sse.h"
+#endif
#define LPC_ORDER 24
void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
-void celt_fir(const opus_val16 *x,
+void celt_fir_c(
+ const opus_val16 *x,
const opus_val16 *num,
opus_val16 *y,
int N,
int ord,
- opus_val16 *mem);
+ opus_val16 *mem,
+ int arch);
+
+#if !defined(OVERRIDE_CELT_FIR)
+#define celt_fir(x, num, y, N, ord, mem, arch) \
+ (celt_fir_c(x, num, y, N, ord, mem, arch))
+#endif
void celt_iir(const opus_val32 *x,
const opus_val16 *den,
opus_val32 *y,
int N,
int ord,
- opus_val16 *mem);
+ opus_val16 *mem,
+ int arch);
int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
const opus_val16 *window, int overlap, int lag, int n, int arch);