Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dnn/lpcnet_private.h')
-rw-r--r--dnn/lpcnet_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dnn/lpcnet_private.h b/dnn/lpcnet_private.h
index 7fb8123a..6ff3ddb2 100644
--- a/dnn/lpcnet_private.h
+++ b/dnn/lpcnet_private.h
@@ -41,7 +41,7 @@ struct LPCNetEncState{
float burg_cepstrum[2*NB_BANDS];
};
-#define PLC_BUF_SIZE (CONT_VECTORS*FRAME_SIZE)
+#define PLC_BUF_SIZE ((CONT_VECTORS+5)*FRAME_SIZE)
struct LPCNetPLCState {
PLCModel model;
FARGANState fargan;
@@ -56,12 +56,14 @@ struct LPCNetPLCState {
int fec_fill_pos;
int fec_skip;
int analysis_pos;
+ int predict_pos;
float pcm[PLC_BUF_SIZE];
int blend;
float features[NB_TOTAL_FEATURES];
float cont_features[CONT_VECTORS*NB_FEATURES];
int loss_count;
PLCNetState plc_net;
+ PLCNetState plc_bak[2];
};
void preemphasis(float *y, float *mem, const float *x, float coef, int N);