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

Issue 1410833002: Lock scheme #4: Introduced the render sample queue for the aec and aecm (Closed)

Created:
5 years, 2 months ago by peah-webrtc
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, peah-webrtc, Andrew MacDonald, tterriberry_mozilla.com, hlundin-webrtc, kwiberg-webrtc, the sun, aluebs-webrtc, bjornv1, ivoc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@aec_error_report_CL
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Introduced the render sample queue for the aec and aecm. BUG=webrtc:5099 Committed: https://crrev.com/fa6228e221d818af55e3d8343c792f2c1ecc7252 Cr-Commit-Position: refs/heads/master@{#10662}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Corrected the sample format when passing the render samples for AECM #

Patch Set 3 : Changed the render side sample queueing scheme to be atomic over all channels for each frame #

Patch Set 4 : Changed the scheme for verifying the vector capacity. And renamed constants #

Patch Set 5 : Fixed the checks of frame lengths #

Patch Set 6 : Merge #

Total comments: 20

Patch Set 7 : Changed scheme for putting samples into the queue, changed the verifier, together with minor other … #

Patch Set 8 : Added conditional render queue recreation #

Patch Set 9 : Added code to ensure that a zero sized queue is never created #

Patch Set 10 : Merge from other CLs in the list #

Total comments: 26

Patch Set 11 : Changes in response to latest reviewer comments #

Total comments: 4

Patch Set 12 : Created a generic template for using to verify the invariance of the render queue #

Patch Set 13 : Fixed swapqueue usage that changed in the merge #

Patch Set 14 : Backported proper handling of full render queue #

Patch Set 15 : Merge with latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -24 lines) Patch
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/echo_cancellation_impl.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +19 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/echo_cancellation_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +78 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/echo_control_mobile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +20 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/echo_control_mobile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +111 lines, -19 lines 0 comments Download
M webrtc/modules/audio_processing/processing_component.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 32 (8 generated)
peah-webrtc
5 years, 2 months ago (2015-10-16 14:00:36 UTC) #2
kwiberg-webrtc
https://codereview.webrtc.org/1410833002/diff/1/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/1/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode113 webrtc/modules/audio_processing/echo_cancellation_impl.cc:113: sizeof(*audio->split_bands_const_f(j)[kBand0To8kHz]))); Maybe I just haven't stared long enough, but ...
5 years, 2 months ago (2015-10-17 07:50:07 UTC) #3
peah-webrtc
A patch fixing a sample format. Will address the feedback in the next patch.
5 years, 2 months ago (2015-10-20 07:07:50 UTC) #4
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/1/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/1/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode113 webrtc/modules/audio_processing/echo_cancellation_impl.cc:113: sizeof(*audio->split_bands_const_f(j)[kBand0To8kHz]))); On 2015/10/17 07:50:07, kwiberg-webrtc wrote: > Maybe I ...
5 years, 1 month ago (2015-10-26 09:03:48 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode116 webrtc/modules/audio_processing/echo_cancellation_impl.cc:116: buffer_index += audio->num_frames_per_band(); Can't you use the nurmal features ...
5 years, 1 month ago (2015-10-27 10:43:07 UTC) #8
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode116 webrtc/modules/audio_processing/echo_cancellation_impl.cc:116: buffer_index += audio->num_frames_per_band(); On 2015/10/27 10:43:07, kwiberg-webrtc wrote: > ...
5 years, 1 month ago (2015-10-29 11:36:57 UTC) #9
kwiberg-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode121 webrtc/modules/audio_processing/echo_cancellation_impl.h:121: render_signal_queue_; On 2015/10/29 11:36:56, peah-webrtc wrote: > On 2015/10/27 ...
5 years, 1 month ago (2015-10-29 12:30:23 UTC) #10
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode121 webrtc/modules/audio_processing/echo_cancellation_impl.h:121: render_signal_queue_; On 2015/10/29 12:30:22, kwiberg-webrtc wrote: > On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 13:07:36 UTC) #11
peah-webrtc
5 years, 1 month ago (2015-10-29 14:04:21 UTC) #12
kwiberg-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode121 webrtc/modules/audio_processing/echo_cancellation_impl.h:121: render_signal_queue_; On 2015/10/29 13:07:36, peah-webrtc wrote: > On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 15:04:50 UTC) #13
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/100001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode121 webrtc/modules/audio_processing/echo_cancellation_impl.h:121: render_signal_queue_; On 2015/10/29 15:04:50, kwiberg-webrtc wrote: > On 2015/10/29 ...
5 years, 1 month ago (2015-11-05 11:45:10 UTC) #14
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode93 webrtc/modules/audio_processing/echo_cancellation_impl.cc:93: render_queue_buffer_.resize(0); a.k.a. .clear() https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_control_mobile_impl.cc File webrtc/modules/audio_processing/echo_control_mobile_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_control_mobile_impl.cc#newcode99 ...
5 years, 1 month ago (2015-11-05 12:20:03 UTC) #15
hlundin-webrtc
LGTM with nits/questions. https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (left): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#oldcode371 webrtc/modules/audio_processing/echo_cancellation_impl.cc:371: Why? https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode117 ...
5 years, 1 month ago (2015-11-05 12:45:26 UTC) #16
hlundin-webrtc
Hang on... I changed my mind. Not LGTM. https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode21 webrtc/modules/audio_processing/echo_cancellation_impl.h:21: namespace ...
5 years, 1 month ago (2015-11-05 12:57:02 UTC) #17
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (left): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#oldcode371 webrtc/modules/audio_processing/echo_cancellation_impl.cc:371: On 2015/11/05 12:45:26, hlundin-webrtc wrote: > Why? Done. https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc ...
5 years, 1 month ago (2015-11-06 06:55:04 UTC) #18
hlundin-webrtc
LGTM. Consider my comments about nested classes optional for now. https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc File webrtc/modules/audio_processing/echo_cancellation_impl.cc (right): https://codereview.webrtc.org/1410833002/diff/180001/webrtc/modules/audio_processing/echo_cancellation_impl.cc#newcode117 ...
5 years, 1 month ago (2015-11-06 07:05:13 UTC) #19
peah-webrtc
https://codereview.webrtc.org/1410833002/diff/200001/webrtc/modules/audio_processing/echo_cancellation_impl.h File webrtc/modules/audio_processing/echo_cancellation_impl.h (right): https://codereview.webrtc.org/1410833002/diff/200001/webrtc/modules/audio_processing/echo_cancellation_impl.h#newcode24 webrtc/modules/audio_processing/echo_cancellation_impl.h:24: // Functor to use when supplying a verifier function ...
5 years, 1 month ago (2015-11-06 10:44:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410833002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410833002/240001
5 years, 1 month ago (2015-11-10 09:00:46 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/3590) android_rel on tryserver.webrtc (JOB_FAILED, ...
5 years, 1 month ago (2015-11-10 09:03:09 UTC) #25
peah-webrtc
In order to properly handle a full queue, I needed to backport the proper handling ...
5 years, 1 month ago (2015-11-10 12:09:18 UTC) #26
kwiberg-webrtc
lgtm
5 years, 1 month ago (2015-11-10 12:50:41 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410833002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410833002/280001
5 years, 1 month ago (2015-11-16 22:47:35 UTC) #30
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 1 month ago (2015-11-17 00:27:46 UTC) #31
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 00:28:02 UTC) #32
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/fa6228e221d818af55e3d8343c792f2c1ecc7252
Cr-Commit-Position: refs/heads/master@{#10662}

Powered by Google App Engine
This is Rietveld 408576698