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

Issue 2629563003: Added a new echo likelihood stat that reports the maximum value from a previous time period. (Closed)

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

Description

Added a new echo likelihood stat that reports the maximum value from a previous time period. BUG=webrtc:6797 Review-Url: https://codereview.webrtc.org/2629563003 Cr-Commit-Position: refs/heads/master@{#16079} Committed: https://chromium.googlesource.com/external/webrtc/+/4e477a1d7b419bfb4b4a4887641ab9ab2ad825c2

Patch Set 1 #

Total comments: 18

Patch Set 2 : Review comments, and more efficient Max operation. #

Total comments: 13

Patch Set 3 : Review feedback. #

Total comments: 10

Patch Set 4 : Review comments. #

Total comments: 9

Patch Set 5 : Reviewer comments. #

Patch Set 6 : Small bugfix. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -23 lines) Patch
M webrtc/api/mediastreaminterface.h View 1 2 3 4 5 2 chunks +11 lines, -8 lines 0 comments Download
M webrtc/api/statscollector.cc View 4 chunks +8 lines, -3 lines 3 comments Download
M webrtc/api/statscollector_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/api/statstypes.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/statstypes.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/audio_send_stream.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_processing/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 2 chunks +15 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/echo_detector/moving_max.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/echo_detector/moving_max.cc View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/echo_detector/moving_max_unittest.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 2 chunks +6 lines, -9 lines 0 comments Download
M webrtc/modules/audio_processing/residual_echo_detector.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/residual_echo_detector.cc View 1 2 3 4 4 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 36 (12 generated)
ivoc
Please have a look at this CL that adds a new echo likelihood metric to ...
3 years, 11 months ago (2017-01-12 16:55:29 UTC) #3
hlundin-webrtc
Looks good. A few comments. https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode1588 webrtc/modules/audio_processing/audio_processing_impl.cc:1588: AudioProcessing::AudioProcessingStatistics::AudioProcessingStatistics() { On 2017/01/12 ...
3 years, 11 months ago (2017-01-13 09:06:22 UTC) #4
ivoc
Thanks for the comments! I also made the max operation more efficient in this update. ...
3 years, 11 months ago (2017-01-13 12:12:29 UTC) #5
the sun
The plumbing l-g-t-m. A few comments on the aggregator class. Not sure whether adding the ...
3 years, 11 months ago (2017-01-13 12:15:58 UTC) #6
peah-webrtc
Some quick drive-by comments. https://codereview.webrtc.org/2629563003/diff/20001/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc File webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc (right): https://codereview.webrtc.org/2629563003/diff/20001/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc#newcode20 webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc:20: : recent_values_(window_size_frames) { I think ...
3 years, 11 months ago (2017-01-13 12:49:02 UTC) #8
ivoc
https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h File webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h (right): https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h#newcode20 webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h:20: class LikelihoodAggregator { On 2017/01/13 12:15:57, the sun wrote: ...
3 years, 11 months ago (2017-01-13 13:24:23 UTC) #10
peah-webrtc
https://codereview.webrtc.org/2629563003/diff/20001/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc File webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc (right): https://codereview.webrtc.org/2629563003/diff/20001/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc#newcode20 webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.cc:20: : recent_values_(window_size_frames) { On 2017/01/13 13:24:23, ivoc wrote: > ...
3 years, 11 months ago (2017-01-13 13:37:34 UTC) #12
hlundin-webrtc
https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h File webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h (right): https://codereview.webrtc.org/2629563003/diff/1/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h#newcode22 webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h:22: explicit LikelihoodAggregator(size_t window_size); On 2017/01/13 12:15:57, the sun wrote: ...
3 years, 11 months ago (2017-01-13 13:38:32 UTC) #14
the sun
Caveat: I've never used the C++ priority_queue, only my own heap impls. https://codereview.webrtc.org/2629563003/diff/20001/webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h File webrtc/modules/audio_processing/echo_detector/likelihood_aggregator.h ...
3 years, 11 months ago (2017-01-13 13:55:28 UTC) #15
ivoc
I rewrote the class based on Per's suggestion. It's now a lot simpler and more ...
3 years, 11 months ago (2017-01-13 14:40:36 UTC) #16
the sun
https://codereview.webrtc.org/2629563003/diff/40001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/40001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode13 webrtc/modules/audio_processing/echo_detector/moving_max.cc:13: #include <algorithm> Not needed https://codereview.webrtc.org/2629563003/diff/40001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode27 webrtc/modules/audio_processing/echo_detector/moving_max.cc:27: max_value_ *= 0.99f; ...
3 years, 11 months ago (2017-01-13 14:51:23 UTC) #17
ivoc
https://codereview.webrtc.org/2629563003/diff/40001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/40001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode13 webrtc/modules/audio_processing/echo_detector/moving_max.cc:13: #include <algorithm> On 2017/01/13 14:51:23, the sun wrote: > ...
3 years, 11 months ago (2017-01-13 15:08:42 UTC) #18
the sun
lgtm % comments https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode34 webrtc/modules/audio_processing/echo_detector/moving_max.cc:34: counter_ = 0; return; otherwise you're ...
3 years, 11 months ago (2017-01-13 15:16:02 UTC) #19
hlundin-webrtc
lgtm https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode20 webrtc/modules/audio_processing/echo_detector/moving_max.cc:20: // decay to 1% of its former value ...
3 years, 11 months ago (2017-01-13 15:27:47 UTC) #20
ivoc
Thanks for the quick reviews! https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode20 webrtc/modules/audio_processing/echo_detector/moving_max.cc:20: // decay to 1% ...
3 years, 11 months ago (2017-01-13 15:48:52 UTC) #21
hlundin-webrtc
lgtm
3 years, 11 months ago (2017-01-13 16:23:43 UTC) #22
the sun
still lgtm https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc File webrtc/modules/audio_processing/echo_detector/moving_max.cc (right): https://codereview.webrtc.org/2629563003/diff/60001/webrtc/modules/audio_processing/echo_detector/moving_max.cc#newcode34 webrtc/modules/audio_processing/echo_detector/moving_max.cc:34: counter_ = 0; On 2017/01/13 15:48:52, ivoc ...
3 years, 11 months ago (2017-01-13 21:23:26 UTC) #23
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/2629563003/80001
3 years, 11 months ago (2017-01-15 13:48:04 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_dbg/builds/5271)
3 years, 11 months ago (2017-01-15 13:59:17 UTC) #27
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/2629563003/100001
3 years, 11 months ago (2017-01-15 15:42:01 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/external/webrtc/+/4e477a1d7b419bfb4b4a4887641ab9ab2ad825c2
3 years, 11 months ago (2017-01-15 16:29:55 UTC) #33
hbos
I didn't review this because we had an email discussion about adding stats instead, but ...
3 years, 11 months ago (2017-01-16 11:29:49 UTC) #34
hbos
https://codereview.webrtc.org/2629563003/diff/100001/webrtc/api/statscollector.cc File webrtc/api/statscollector.cc (right): https://codereview.webrtc.org/2629563003/diff/100001/webrtc/api/statscollector.cc#newcode131 webrtc/api/statscollector.cc:131: report->AddFloat( On 2017/01/16 11:29:49, hbos wrote: > This can ...
3 years, 11 months ago (2017-01-16 11:36:54 UTC) #35
hlundin-webrtc
3 years, 11 months ago (2017-01-16 13:44:56 UTC) #36
Message was sent while issue was closed.
https://codereview.webrtc.org/2629563003/diff/100001/webrtc/api/statscollecto...
File webrtc/api/statscollector.cc (right):

https://codereview.webrtc.org/2629563003/diff/100001/webrtc/api/statscollecto...
webrtc/api/statscollector.cc:131: report->AddFloat(
On 2017/01/16 11:36:54, hbos wrote:
> On 2017/01/16 11:29:49, hbos wrote:
> > This can leak the default residual_echo_likelihood_recent_max -1 to the
stats,
> > there should be an "if (residual_echo_likelihood_recent_max >= 0.0f)" or if
> the
> > two are tied together there should be a RTC_DCHECK_GE but that check would
get
> > hit before Chrome's implementation is able to land.
> 
> If the stat is optional, prefer rtc::Optional to -1.

I'm making a minimal fix for now in https://codereview.webrtc.org/2632243002/.

Powered by Google App Engine
This is Rietveld 408576698