Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: webrtc/modules/audio_processing/aec/aec_core.h

Issue 2311833002: Refactoring of the buffering of the nearend signal done inside the AEC (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec/aec_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/aec/aec_core.h
diff --git a/webrtc/modules/audio_processing/aec/aec_core.h b/webrtc/modules/audio_processing/aec/aec_core.h
index 1ab20201860d9490f04033c2869c6ce2d90a1a90..8f4bc89cdac53d55814896826e20b9107eb6f258 100644
--- a/webrtc/modules/audio_processing/aec/aec_core.h
+++ b/webrtc/modules/audio_processing/aec/aec_core.h
@@ -128,16 +128,20 @@ struct AecCore {
int inSamples, outSamples;
int delayEstCtr;
- RingBuffer* nearFrBuf;
+ // Nearend buffer used for changing from FRAME_LEN to PART_LEN sample block
+ // sizes. The buffer stores all the incoming bands and for each band a maximum
+ // of PART_LEN - (FRAME_LEN - PART_LEN) values need to be buffered in order to
+ // change the block size from FRAME_LEN to PART_LEN.
+ float nearend_buffer[NUM_HIGH_BANDS_MAX + 1]
+ [PART_LEN - (FRAME_LEN - PART_LEN)];
+ int nearend_buffer_size;
RingBuffer* outFrBuf;
- RingBuffer* nearFrBufH[NUM_HIGH_BANDS_MAX];
RingBuffer* outFrBufH[NUM_HIGH_BANDS_MAX];
- float dBuf[PART_LEN2]; // nearend
float eBuf[PART_LEN2]; // error
- float dBufH[NUM_HIGH_BANDS_MAX][PART_LEN2]; // nearend
+ float previous_nearend_block[NUM_HIGH_BANDS_MAX + 1][PART_LEN];
float xPow[PART_LEN1];
float dPow[PART_LEN1];
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec/aec_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698