mirror of
https://github.com/xiph/opus.git
synced 2025-05-16 16:38:30 +00:00
Moving LPCNetState
This commit is contained in:
parent
e63292bd56
commit
fe608dfc51
2 changed files with 17 additions and 16 deletions
17
dnn/lpcnet.c
17
dnn/lpcnet.c
|
@ -31,9 +31,8 @@
|
|||
#include "common.h"
|
||||
#include "arch.h"
|
||||
#include "lpcnet.h"
|
||||
#include "lpcnet_private.h"
|
||||
|
||||
|
||||
#define LPC_ORDER 16
|
||||
#define PREEMPH 0.85f
|
||||
|
||||
#define PITCH_GAIN_FEATURE 37
|
||||
|
@ -41,20 +40,6 @@
|
|||
|
||||
#define FRAME_INPUT_SIZE (NB_FEATURES + EMBED_PITCH_OUT_SIZE)
|
||||
|
||||
#define SAMPLE_INPUT_SIZE (2*EMBED_SIG_OUT_SIZE + EMBED_EXC_OUT_SIZE + FEATURE_DENSE2_OUT_SIZE)
|
||||
|
||||
#define FEATURES_DELAY (FEATURE_CONV1_DELAY + FEATURE_CONV2_DELAY)
|
||||
struct LPCNetState {
|
||||
NNetState nnet;
|
||||
int last_exc;
|
||||
float last_sig[LPC_ORDER];
|
||||
float old_input[FEATURES_DELAY][FEATURE_CONV2_OUT_SIZE];
|
||||
float old_lpc[FEATURES_DELAY][LPC_ORDER];
|
||||
float old_gain[FEATURES_DELAY];
|
||||
int frame_count;
|
||||
float deemph_mem;
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
static void print_vector(float *x, int N)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue