File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 5353
5454#define SQUARE (x ) ((x)*(x))
5555
56- #define SMOOTH_BANDS 1
57-
58- #if SMOOTH_BANDS
5956#define NB_BANDS 22
60- #else
61- #define NB_BANDS 21
62- #endif
6357
6458#define CEPS_MEM 8
6559#define NB_DELTA_CEPS 6
@@ -103,7 +97,6 @@ struct DenoiseState {
10397 RNNState rnn ;
10498};
10599
106- #if SMOOTH_BANDS
107100void compute_band_energy (float * bandE , const kiss_fft_cpx * X ) {
108101 int i ;
109102 float sum [NB_BANDS ] = {0 };
@@ -168,32 +161,6 @@ void interp_band_gain(float *g, const float *bandE) {
168161 }
169162 }
170163}
171- #else
172- void compute_band_energy (float * bandE , const kiss_fft_cpx * X ) {
173- int i ;
174- for (i = 0 ;i < NB_BANDS ;i ++ )
175- {
176- int j ;
177- opus_val32 sum = 0 ;
178- for (j = 0 ;j < (eband5ms [i + 1 ]- eband5ms [i ])<<FRAME_SIZE_SHIFT ;j ++ ) {
179- sum += SQUARE (X [(eband5ms [i ]<<FRAME_SIZE_SHIFT ) + j ].r );
180- sum += SQUARE (X [(eband5ms [i ]<<FRAME_SIZE_SHIFT ) + j ].i );
181- }
182- bandE [i ] = sum ;
183- }
184- }
185-
186- void interp_band_gain (float * g , const float * bandE ) {
187- int i ;
188- memset (g , 0 , FREQ_SIZE );
189- for (i = 0 ;i < NB_BANDS ;i ++ )
190- {
191- int j ;
192- for (j = 0 ;j < (eband5ms [i + 1 ]- eband5ms [i ])<<FRAME_SIZE_SHIFT ;j ++ )
193- g [(eband5ms [i ]<<FRAME_SIZE_SHIFT ) + j ] = bandE [i ];
194- }
195- }
196- #endif
197164
198165
199166CommonState common ;
You can’t perform that action at this time.
0 commit comments