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

Issue 2319693003: Refactoring of the farend buffering scheme inside the AEC (Closed)

Created:
4 years, 3 months ago by peah-webrtc
Modified:
4 years, 3 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, peah-webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

The buffering of the farend signal is refactored in this CL. The former buffering scheme was overly complicated and complex as. -It buffered twice as many data points as needed. -It used the ring_buffer C functionality directly inside the delay adjustment functionality which makes that functionality very hard to read. In order to overcome these problems this CL does -Change the buffering to buffer only the amount of samples needed. -Wrap the ring_buffer C functionality in a wrapper class with methods that are more descriptive in what they do to affect the AEC delay. Additional notes: -Some minor other name changes/code changes were also introduced. -The ringbuffer C functionality should be removed, but now is not the time to do it as the rest of the code is very adapted to the wrapping behavior of the ringbuffer. It is better to simplify the surrounding code before doing that. The changes have been tested to be bitexact. This CL is chained to the CL https://codereview.webrtc.org/2321483002/ and will be followed by another CL. BUG=webrtc:5298, webrtc:6018 Committed: https://crrev.com/a421ddd60eb15a19b675ceaa4e241bd15cc86f8e Cr-Commit-Position: refs/heads/master@{#14188}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes in response to reviewer comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -83 lines) Patch
M webrtc/modules/audio_processing/aec/aec_core.h View 1 2 4 chunks +22 lines, -6 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.cc View 1 2 20 chunks +107 lines, -70 lines 0 comments Download
M webrtc/modules/audio_processing/aec/echo_cancellation.cc View 6 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
peah-webrtc
4 years, 3 months ago (2016-09-08 12:14:30 UTC) #8
hlundin-webrtc
Good. Just a few minor comments. https://codereview.webrtc.org/2319693003/diff/100001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2319693003/diff/100001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode187 webrtc/modules/audio_processing/aec/aec_core.cc:187: FarendBlockBuffer::FarendBlockBuffer() { What ...
4 years, 3 months ago (2016-09-09 10:47:16 UTC) #9
peah-webrtc
https://codereview.webrtc.org/2319693003/diff/100001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2319693003/diff/100001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode187 webrtc/modules/audio_processing/aec/aec_core.cc:187: FarendBlockBuffer::FarendBlockBuffer() { On 2016/09/09 10:47:15, hlundin-webrtc wrote: > What ...
4 years, 3 months ago (2016-09-12 08:10:22 UTC) #10
hlundin-webrtc
lgtm
4 years, 3 months ago (2016-09-12 08:15:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2319693003/140001
4 years, 3 months ago (2016-09-12 14:00:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-12 16:01:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2319693003/140001
4 years, 3 months ago (2016-09-12 18:19:00 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:140001)
4 years, 3 months ago (2016-09-12 18:27:17 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 18:27:30 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a421ddd60eb15a19b675ceaa4e241bd15cc86f8e
Cr-Commit-Position: refs/heads/master@{#14188}

Powered by Google App Engine
This is Rietveld 408576698