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

Issue 1296633002: NetEq/ACM: Refactor how packet waiting times are calculated (Closed)

Created:
5 years, 4 months ago by hlundin-webrtc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, kwiberg-webrtc, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

NetEq/ACM: Refactor how packet waiting times are calculated With this change, the aggregates for packet waiting times are calculated in NetEq's StatisticsCalculator insead of in AcmReceiver. This simplifies things somewhat, and avoids having to copy the raw data on polling. R=ivoc@webrtc.org, minyue@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1bb8cf846d9a0bfe74fceae34ebef60f56d12fa4

Patch Set 1 : #

Total comments: 11

Patch Set 2 : Change from std::list to std::deque #

Patch Set 3 : rebase #

Total comments: 3

Patch Set 4 : Simplify median calculation #

Patch Set 5 : Rebasing #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -115 lines) Patch
M webrtc/modules/audio_coding/main/acm2/acm_receiver.cc View 1 2 3 4 2 chunks +5 lines, -25 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/interface/neteq.h View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.h View 1 2 3 4 2 chunks +0 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_unittest.cc View 1 2 3 4 1 chunk +13 lines, -36 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/statistics_calculator.h View 1 2 3 4 5 chunks +4 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/statistics_calculator.cc View 1 2 3 4 8 chunks +36 lines, -25 lines 2 comments Download

Messages

Total messages: 39 (15 generated)
hlundin-webrtc
Minyue, Ivo, Please, take a look at this CL. It's a refactoring preparing for some ...
5 years, 4 months ago (2015-08-14 15:01:51 UTC) #4
minyue-webrtc
On 2015/08/14 15:01:51, hlundin-webrtc wrote: > Minyue, Ivo, > > Please, take a look at ...
5 years, 4 months ago (2015-08-18 12:47:23 UTC) #5
minyue-webrtc
https://codereview.chromium.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.chromium.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode160 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:160: waiting_times_.sort(); std::vector may be faster than std::list in sorting ...
5 years, 4 months ago (2015-08-18 12:55:34 UTC) #6
hlundin-webrtc
https://codereview.webrtc.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.webrtc.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode160 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:160: waiting_times_.sort(); On 2015/08/18 12:55:34, minyue-webrtc wrote: > std::vector may ...
5 years, 4 months ago (2015-08-19 08:28:39 UTC) #7
minyue-webrtc
https://codereview.chromium.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.chromium.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode102 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:102: waiting_times_.pop_front(); Ok, I see the deletion according to age ...
5 years, 4 months ago (2015-08-19 11:21:52 UTC) #8
hlundin-webrtc
Change from std::list to std::deque
5 years, 4 months ago (2015-08-19 14:32:18 UTC) #9
hlundin-webrtc
https://codereview.webrtc.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.h File webrtc/modules/audio_coding/neteq/statistics_calculator.h (right): https://codereview.webrtc.org/1296633002/diff/20001/webrtc/modules/audio_coding/neteq/statistics_calculator.h#newcode99 webrtc/modules/audio_coding/neteq/statistics_calculator.h:99: std::list<int> waiting_times_; On 2015/08/19 11:21:52, minyue-webrtc wrote: > On ...
5 years, 4 months ago (2015-08-19 14:34:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296633002/40001
5 years, 3 months ago (2015-08-24 13:33:31 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_rel/builds/5209) linux on tryserver.webrtc (JOB_FAILED, ...
5 years, 3 months ago (2015-08-24 13:34:03 UTC) #15
hlundin-webrtc
rebase
5 years, 3 months ago (2015-08-24 13:46:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296633002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296633002/60001
5 years, 3 months ago (2015-08-24 13:52:01 UTC) #19
ivoc
LGTM, here's a suggestion for a simplification. https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode263 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:263: std::advance(middle_left, (waiting_times_.size() ...
5 years, 3 months ago (2015-08-24 14:22:17 UTC) #21
minyue-webrtc
https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode263 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:263: std::advance(middle_left, (waiting_times_.size() - 1) / 2); On 2015/08/24 14:22:17, ...
5 years, 3 months ago (2015-08-24 15:02:54 UTC) #22
minyue-webrtc
5 years, 3 months ago (2015-08-24 15:02:55 UTC) #23
hlundin-webrtc
Simplify median calculation
5 years, 3 months ago (2015-08-24 15:26:05 UTC) #24
hlundin-webrtc
https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.webrtc.org/1296633002/diff/60001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode263 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:263: std::advance(middle_left, (waiting_times_.size() - 1) / 2); On 2015/08/24 15:02:54, ...
5 years, 3 months ago (2015-08-24 15:27:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296633002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296633002/80001
5 years, 3 months ago (2015-08-24 15:28:06 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 3 months ago (2015-08-24 17:28:14 UTC) #30
hlundin-webrtc
Rebasing
5 years, 3 months ago (2015-08-25 08:45:47 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296633002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296633002/100001
5 years, 3 months ago (2015-08-25 08:46:28 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 3 months ago (2015-08-25 10:46:43 UTC) #35
hlundin-webrtc
Committed patchset #5 (id:100001) manually as 1bb8cf846d9a0bfe74fceae34ebef60f56d12fa4 (presubmit successful).
5 years, 3 months ago (2015-08-25 11:08:22 UTC) #36
Peter Kasting
https://codereview.webrtc.org/1296633002/diff/100001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right): https://codereview.webrtc.org/1296633002/diff/100001/webrtc/modules/audio_coding/neteq/statistics_calculator.cc#newcode198 webrtc/modules/audio_coding/neteq/statistics_calculator.cc:198: while (waiting_times_.size() >= kLenWaitingTimes) { Drive-by nit: This would ...
5 years, 3 months ago (2015-08-25 22:00:02 UTC) #38
hlundin-webrtc
5 years, 3 months ago (2015-08-27 11:51:54 UTC) #39
Message was sent while issue was closed.
Thanks for reviewing!

https://codereview.webrtc.org/1296633002/diff/100001/webrtc/modules/audio_cod...
File webrtc/modules/audio_coding/neteq/statistics_calculator.cc (right):

https://codereview.webrtc.org/1296633002/diff/100001/webrtc/modules/audio_cod...
webrtc/modules/audio_coding/neteq/statistics_calculator.cc:198: while
(waiting_times_.size() >= kLenWaitingTimes) {
On 2015/08/25 22:00:02, Peter Kasting wrote:
> Drive-by nit: This would violate the Chromium style guide, because you're
> partially handling a DCHECK failure, which contradicts the point of the
DCHECK. 
> You should probably change this to "if (waiting_times_.size() ==
> kLenWaitingTimes) {".

Fixed in https://codereview.webrtc.org/1319953002/.

Powered by Google App Engine
This is Rietveld 408576698