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

Issue 1948483002: Using ring buffer for AudioVector in NetEq. (Closed)

Created:
4 years, 7 months ago by minyue-webrtc
Modified:
4 years, 7 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, Andrew MacDonald, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, the sun, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Using ring buffer for AudioVector in NetEq. AudioVector used NetEq was based on a shift buffer, which has a high complexity, and the complexity is very much dependent on the capacity of the buffer. This CL changes the shift buffer to a ring buffer. Reduction in the CPU usages of NetEq is expected. BUG=608644 R=henrik.lundin@webrtc.org Committed: https://crrev.com/79553cb66e4c2d0651a0236e25ad06dd0ee2e59b Cr-Commit-Position: refs/heads/master@{#12676}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : refinements #

Total comments: 22

Patch Set 3 : on comments #

Patch Set 4 : removing a unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -131 lines) Patch
M webrtc/modules/audio_coding/neteq/audio_multi_vector.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_vector.h View 1 4 chunks +36 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_vector.cc View 1 2 3 chunks +275 lines, -72 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_vector_unittest.cc View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/background_noise.cc View 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/comfort_noise.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/dsp_helper.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/dsp_helper.cc View 2 chunks +17 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 5 chunks +29 lines, -17 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/merge.cc View 1 5 chunks +14 lines, -10 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/normal.cc View 1 4 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948483002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948483002/80001
4 years, 7 months ago (2016-05-07 23:01:48 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/14919)
4 years, 7 months ago (2016-05-07 23:09:19 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948483002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948483002/100001
4 years, 7 months ago (2016-05-07 23:15:18 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/2344) win_x64_rel on ...
4 years, 7 months ago (2016-05-07 23:21:29 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948483002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948483002/120001
4 years, 7 months ago (2016-05-07 23:38:38 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-08 01:22:49 UTC) #18
minyue-webrtc
Hi Henrik, I changed the shift buffer in AudioVector to ring buffer. The CPU usage ...
4 years, 7 months ago (2016-05-08 06:13:53 UTC) #22
hlundin-webrtc
Impressive work! I just have a few minor comments and questions. https://codereview.webrtc.org/1948483002/diff/160001/webrtc/modules/audio_coding/neteq/audio_vector.cc File webrtc/modules/audio_coding/neteq/audio_vector.cc (right): ...
4 years, 7 months ago (2016-05-10 07:53:19 UTC) #24
minyue-webrtc
PTAL https://codereview.webrtc.org/1948483002/diff/160001/webrtc/modules/audio_coding/neteq/audio_vector.cc File webrtc/modules/audio_coding/neteq/audio_vector.cc (right): https://codereview.webrtc.org/1948483002/diff/160001/webrtc/modules/audio_coding/neteq/audio_vector.cc#newcode23 webrtc/modules/audio_coding/neteq/audio_vector.cc:23: : array_(new int16_t[kDefaultInitialSize + 1]), On 2016/05/10 07:53:18, ...
4 years, 7 months ago (2016-05-10 12:48:07 UTC) #26
hlundin-webrtc
lgtm
4 years, 7 months ago (2016-05-10 13:16:26 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948483002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948483002/200001
4 years, 7 months ago (2016-05-10 13:35:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/14978)
4 years, 7 months ago (2016-05-10 13:43:11 UTC) #31
minyue-webrtc
Hi Henrik, since we becomes stricter to nullptr as input to CopyTo, we need to ...
4 years, 7 months ago (2016-05-10 14:53:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948483002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948483002/220001
4 years, 7 months ago (2016-05-10 14:54:11 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_x86_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x86_dbg/builds/3872)
4 years, 7 months ago (2016-05-10 15:00:22 UTC) #37
minyue-webrtc
4 years, 7 months ago (2016-05-10 17:56:18 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:220001) manually as
79553cb66e4c2d0651a0236e25ad06dd0ee2e59b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698