ref: f9f35904f4e6a263ee49b2dd73165e3ff5e9ba1d
parent: f94bd54302d4b67f7035e11598f07dc8caa0c26b
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Tue Jun 27 13:13:06 EDT 2023
No longer need to #include "common.h"
--- a/dnn/common.h
+++ b/dnn/common.h
@@ -8,8 +8,6 @@
#include <math.h>
#include "opus_defines.h"
-float lpc_from_cepstrum(float *lpc, const float *cepstrum);
-
#define LOG256 5.5451774445f
static OPUS_INLINE float log2_approx(float x)
{
--- a/dnn/dred_rdovae_dec.c
+++ b/dnn/dred_rdovae_dec.c
@@ -29,7 +29,6 @@
#include "config.h"
#endif
-#include "common.h"
#include "dred_rdovae_dec.h"
#include "dred_rdovae_constants.h"
#include "os_support.h"
--- a/dnn/dred_rdovae_enc.c
+++ b/dnn/dred_rdovae_enc.c
@@ -33,7 +33,6 @@
#include "dred_rdovae_enc.h"
-#include "common.h"
#include "os_support.h"
void dred_rdovae_encode_dframe(
--- a/dnn/freq.c
+++ b/dnn/freq.c
@@ -32,7 +32,6 @@
#include <string.h>
#include <stdio.h>
#include "kiss_fft.h"
-#include "common.h"
#include <math.h>
#include "freq.h"
#include "pitch.h"
--- a/dnn/lpcnet_demo.c
+++ b/dnn/lpcnet_demo.c
@@ -32,7 +32,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include "common.h"
#include "arch.h"
#include "lpcnet.h"
#include "freq.h"
--- a/dnn/lpcnet_plc.c
+++ b/dnn/lpcnet_plc.c
@@ -32,6 +32,7 @@
#include "lpcnet.h"
#include "plc_data.h"
#include "os_support.h"
+#include "common.h"
#ifndef M_PI
#define M_PI 3.141592653
--- a/dnn/lpcnet_private.h
+++ b/dnn/lpcnet_private.h
@@ -2,7 +2,6 @@
#define LPCNET_PRIVATE_H
#include <stdio.h>
-#include "common.h"
#include "freq.h"
#include "lpcnet.h"
#include "nnet_data.h"
--- a/dnn/nnet.c
+++ b/dnn/nnet.c
@@ -34,7 +34,6 @@
#include <math.h>
#include "opus_types.h"
#include "arch.h"
-#include "common.h"
#include "tansig_table.h"
#include "nnet.h"
#include "nnet_data.h"
--- a/dnn/write_lpcnet_weights.c
+++ b/dnn/write_lpcnet_weights.c
@@ -32,7 +32,6 @@
#include <string.h>
#include <stddef.h>
#include "nnet.h"
-#include "common.h"
#include "os_support.h"
/* This is a bit of a hack because we need to build nnet_data.c and plc_data.c without USE_WEIGHTS_FILE,
--
⑨