diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-21 07:48:35 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-21 20:51:45 +0400 |
commit | 7509fdb813e768da61b1a7db3df759d3e6efb1d1 (patch) | |
tree | 3ce0287904ba07d444ea756fe4c5a6819bc34201 /src/analysis.h | |
parent | 56921ff73f55c23f1d3e8941b4098ab862e317e1 (diff) |
New bandwidth detection code
Can now work up to full-band and uses lsb_depth to fix the noise issue.
Diffstat (limited to 'src/analysis.h')
-rw-r--r-- | src/analysis.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis.h b/src/analysis.h index 09d1036a..bf8ad40a 100644 --- a/src/analysis.h +++ b/src/analysis.h @@ -30,7 +30,7 @@ #define NB_FRAMES 8 #define NB_TBANDS 18 - +#define NB_TOT_BANDS 21 typedef struct { float angle[240]; @@ -40,7 +40,7 @@ typedef struct { float prev_tonality; float E[NB_FRAMES][NB_TBANDS]; float lowE[NB_TBANDS], highE[NB_TBANDS]; - float meanE[NB_TBANDS], meanRE[NB_TBANDS]; + float meanE[NB_TOT_BANDS]; float mem[32]; float cmean[8]; float std[9]; @@ -55,6 +55,6 @@ typedef struct { } TonalityAnalysisState; void tonality_analysis(TonalityAnalysisState *tonal, AnalysisInfo *info, - CELTEncoder *celt_enc, const opus_val16 *x, int C); + CELTEncoder *celt_enc, const opus_val16 *x, int C, int lsb_depth); #endif |