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

Issue 2415403002: Introduced the new parameter setting scheme for activating the high-pass filter in APM (Closed)

Created:
4 years, 2 months ago by peah-webrtc
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, Andrew MacDonald, henrika_webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

This CL introduces the new functionality for setting the APM parameters to the high-pass filter. The introduction will be done in three steps: 1) This CL which introduces the new scheme and changes the code in webrtcvoiceengine.cc to use it. 2) Introduce the scheme into upstream code. 3) Remove the HighPassFilter interface in APM. BUG=webrtc::6220, webrtc::6296, webrtc::6297, webrtc::6181, webrtc::5298 Committed: https://crrev.com/8271d04009bbddbda35e12c7645185cea50a6312 Cr-Commit-Position: refs/heads/master@{#15197}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Partial reverts #

Patch Set 4 : Changed the interface #

Patch Set 5 : Changed the interface #

Patch Set 6 : New approach for introducing the new parameter setting scheme #

Total comments: 11

Patch Set 7 : Changes in response to reviewer comments #

Patch Set 8 : Changed the config getter to return a copy instead of a reference #

Patch Set 9 : Removed erroneous const #

Total comments: 14

Patch Set 10 : Changes in response to reviewer comments #

Total comments: 4

Patch Set 11 : Changed to FunctionView from std::function #

Patch Set 12 : Added the missing low_cut_filter* files #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase #

Patch Set 16 : Corrected the highpass filter support in the unittest #

Total comments: 4

Patch Set 17 : Changes in response to reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -992 lines) Patch
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +9 lines, -12 lines 0 comments Download
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +12 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 chunks +66 lines, -15 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/high_pass_filter_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -47 lines 0 comments Download
M webrtc/modules/audio_processing/high_pass_filter_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -134 lines 0 comments Download
M webrtc/modules/audio_processing/high_pass_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -686 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +7 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
A webrtc/modules/audio_processing/low_cut_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +36 lines, -0 lines 0 comments Download
A + webrtc/modules/audio_processing/low_cut_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +17 lines, -49 lines 0 comments Download
A + webrtc/modules/audio_processing/low_cut_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +13 lines, -17 lines 0 comments Download
M webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_simulator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/test/debug_dump_replayer.cc View 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 64 (31 generated)
peah-webrtc
4 years, 2 months ago (2016-10-14 11:28:24 UTC) #4
peah-webrtc
Now the changes discussed have been introduced for this CL. It would be great if ...
4 years, 1 month ago (2016-10-24 16:24:10 UTC) #9
the sun
https://codereview.webrtc.org/2415403002/diff/160001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2415403002/diff/160001/webrtc/media/engine/webrtcvoiceengine.cc#newcode872 webrtc/media/engine/webrtcvoiceengine.cc:872: LOG(LS_INFO) << "High pass filter: " If the AudioProcessing::Config ...
4 years, 1 month ago (2016-10-26 09:06:43 UTC) #10
peah-webrtc
https://codereview.webrtc.org/2415403002/diff/160001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2415403002/diff/160001/webrtc/media/engine/webrtcvoiceengine.cc#newcode872 webrtc/media/engine/webrtcvoiceengine.cc:872: LOG(LS_INFO) << "High pass filter: " On 2016/10/26 09:06:43, ...
4 years, 1 month ago (2016-10-28 05:50:28 UTC) #12
peah-webrtc
Added the proposed change for GetConfig to return a copy instead of a reference
4 years, 1 month ago (2016-10-28 07:18:03 UTC) #13
peah-webrtc
Removed a leftover const
4 years, 1 month ago (2016-10-28 07:20:11 UTC) #14
the sun
https://codereview.webrtc.org/2415403002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2415403002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc#newcode880 webrtc/media/engine/webrtcvoiceengine.cc:880: if (audioproc) { Revert back to "apm()->" for these ...
4 years, 1 month ago (2016-10-28 10:52:53 UTC) #15
kwiberg-webrtc
https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode136 webrtc/modules/audio_processing/audio_processing_impl.h:136: void MutateConfig(MutatorFunction mutator) { On 2016/10/28 10:52:53, the sun ...
4 years, 1 month ago (2016-10-28 11:07:00 UTC) #16
peah-webrtc
https://codereview.webrtc.org/2415403002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2415403002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc#newcode880 webrtc/media/engine/webrtcvoiceengine.cc:880: if (audioproc) { On 2016/10/28 10:52:53, the sun wrote: ...
4 years, 1 month ago (2016-10-28 12:19:52 UTC) #20
peah-webrtc
+kjellander@ as an OWNER of webrtc/modules/BUILD.gn
4 years, 1 month ago (2016-10-28 12:21:04 UTC) #22
kwiberg-webrtc
https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode136 webrtc/modules/audio_processing/audio_processing_impl.h:136: void MutateConfig(MutatorFunction mutator) { On 2016/10/28 12:19:52, peah-webrtc wrote: ...
4 years, 1 month ago (2016-10-28 12:28:56 UTC) #23
peah-webrtc
https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/2415403002/diff/240001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode136 webrtc/modules/audio_processing/audio_processing_impl.h:136: void MutateConfig(MutatorFunction mutator) { On 2016/10/28 12:28:56, kwiberg-webrtc wrote: ...
4 years, 1 month ago (2016-10-28 12:36:12 UTC) #25
the sun
You forgot to add the low_cut_filter files. https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode159 webrtc/modules/audio_processing/audio_processing_impl.h:159: bool Update(bool ...
4 years, 1 month ago (2016-10-28 12:38:33 UTC) #26
kjellander_webrtc
where are the low_cut_filter* files? https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/BUILD.gn File webrtc/modules/BUILD.gn (right): https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/BUILD.gn#newcode591 webrtc/modules/BUILD.gn:591: "audio_processing/low_cut_filter_unittest.cc", I can't find ...
4 years, 1 month ago (2016-10-28 12:40:29 UTC) #27
kjellander_webrtc
On 2016/10/28 12:40:29, kjellander_webrtc wrote: > where are the low_cut_filter* files? Ah, in PS#12. lgtm ...
4 years, 1 month ago (2016-10-28 12:41:22 UTC) #28
peah-webrtc
Thanks! Added the new files! https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode159 webrtc/modules/audio_processing/audio_processing_impl.h:159: bool Update(bool low_cut_filter_enabled, On ...
4 years, 1 month ago (2016-10-28 12:47:46 UTC) #29
the sun
On 2016/10/28 12:47:46, peah-webrtc wrote: > Thanks! > Added the new files! > > https://codereview.webrtc.org/2415403002/diff/320001/webrtc/modules/audio_processing/audio_processing_impl.h ...
4 years, 1 month ago (2016-10-28 18:04:38 UTC) #30
peah-webrtc
On 2016/10/28 18:04:38, the sun wrote: > On 2016/10/28 12:47:46, peah-webrtc wrote: > > Thanks! ...
4 years, 1 month ago (2016-10-30 22:41:55 UTC) #31
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/2415403002/360001
4 years, 1 month ago (2016-10-30 22:42:22 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_dbg/builds/11985) ios64_gyp_dbg on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 1 month ago (2016-10-30 22:43:31 UTC) #35
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/2415403002/380001
4 years, 1 month ago (2016-11-01 22:15:20 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan_vptr on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/6883)
4 years, 1 month ago (2016-11-01 22:25:08 UTC) #40
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/2415403002/400001
4 years, 1 month ago (2016-11-02 19:50:52 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/19770)
4 years, 1 month ago (2016-11-02 20:01:22 UTC) #45
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/2415403002/420001
4 years, 1 month ago (2016-11-06 22:12:36 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/19887)
4 years, 1 month ago (2016-11-06 22:20:06 UTC) #50
peah-webrtc
Hi, Here comes an update to the CL. The CL for several reasons caused WebRtcVoiceEngineTestFake.* ...
4 years, 1 month ago (2016-11-10 09:32:32 UTC) #52
the sun
lgtm % comments https://codereview.webrtc.org/2415403002/diff/480001/webrtc/media/engine/webrtcvoiceengine.h File webrtc/media/engine/webrtcvoiceengine.h (right): https://codereview.webrtc.org/2415403002/diff/480001/webrtc/media/engine/webrtcvoiceengine.h#newcode93 webrtc/media/engine/webrtcvoiceengine.h:93: webrtc::AudioProcessing::Config GetApmConfig() const { return apm_config_; ...
4 years, 1 month ago (2016-11-22 14:37:53 UTC) #54
peah-webrtc
On 2016/11/22 14:37:53, the sun wrote: > lgtm % comments > > https://codereview.webrtc.org/2415403002/diff/480001/webrtc/media/engine/webrtcvoiceengine.h > File ...
4 years, 1 month ago (2016-11-22 14:54:56 UTC) #55
peah-webrtc
https://codereview.webrtc.org/2415403002/diff/480001/webrtc/media/engine/webrtcvoiceengine.h File webrtc/media/engine/webrtcvoiceengine.h (right): https://codereview.webrtc.org/2415403002/diff/480001/webrtc/media/engine/webrtcvoiceengine.h#newcode93 webrtc/media/engine/webrtcvoiceengine.h:93: webrtc::AudioProcessing::Config GetApmConfig() const { return apm_config_; } On 2016/11/22 ...
4 years, 1 month ago (2016-11-22 14:56:05 UTC) #56
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/2415403002/500001
4 years, 1 month ago (2016-11-22 14:56:24 UTC) #59
commit-bot: I haz the power
Committed patchset #17 (id:500001)
4 years, 1 month ago (2016-11-22 15:24:58 UTC) #62
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 15:25:05 UTC) #64
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/8271d04009bbddbda35e12c7645185cea50a6312
Cr-Commit-Position: refs/heads/master@{#15197}

Powered by Google App Engine
This is Rietveld 408576698