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

Issue 2362703002: Adding audio network adaptor to AudioEncoderOpus. (Closed)

Created:
4 years, 3 months ago by minyue-webrtc
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding audio network adaptor to AudioEncoderOpus. BUG=webrtc:6303 Committed: https://crrev.com/41b9c801c2b8153e43485a583ae512e7ad486123 Cr-Commit-Position: refs/heads/master@{#14555}

Patch Set 1 #

Total comments: 5

Patch Set 2 : some updates #

Total comments: 30

Patch Set 3 : updates #

Total comments: 20

Patch Set 4 : rebasing #

Patch Set 5 : on Karl's comments #

Total comments: 5

Patch Set 6 : using factory #

Total comments: 9

Patch Set 7 : repolishing #

Total comments: 3

Patch Set 8 : using old struct #

Total comments: 3

Patch Set 9 : fixing #

Total comments: 7

Patch Set 10 : final polish #

Patch Set 11 : fixing bots #

Total comments: 2

Patch Set 12 : adding a missing deps #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -74 lines) Patch
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -1 line 1 comment Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_audio_network_adaptor.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.h View 1 2 3 4 2 chunks +27 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +35 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +137 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +213 lines, -60 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.c View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 58 (18 generated)
minyue-webrtc
hi Michael, This is not truly finished, but I'd like to hear you opinion before ...
4 years, 3 months ago (2016-09-22 11:54:48 UTC) #3
michaelt
https://codereview.webrtc.org/2362703002/diff/1/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc (right): https://codereview.webrtc.org/2362703002/diff/1/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc#newcode312 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc:312: if (config.fec_enabled) { Use new function to set FEC ...
4 years, 3 months ago (2016-09-22 12:13:14 UTC) #4
minyue-webrtc
Hi Karl, Michael has taken a look and had no big concern. I want to ...
4 years, 2 months ago (2016-09-27 08:30:36 UTC) #6
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h File webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h (left): https://codereview.webrtc.org/2362703002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h#oldcode16 webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h:16: This seems unrelated to the rest of the CL. ...
4 years, 2 months ago (2016-09-27 09:35:55 UTC) #7
minyue-webrtc
Hi Karl, Thanks for the comments! Before I continue, it would be good to discuss ...
4 years, 2 months ago (2016-09-27 16:02:33 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h File webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h (left): https://codereview.webrtc.org/2362703002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h#oldcode16 webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h:16: On 2016/09/27 16:02:32, minyue-webrtc wrote: > On 2016/09/27 09:35:54, ...
4 years, 2 months ago (2016-09-28 08:24:09 UTC) #9
minyue-webrtc
Hi reviewers, Now this is rebased on https://codereview.webrtc.org/2364403004/ which is almost ready to land. Sorry ...
4 years, 2 months ago (2016-09-29 15:34:25 UTC) #10
minyue-webrtc
Hi reviewers, Since the landing of a CL that this one is based on, this ...
4 years, 2 months ago (2016-10-03 05:18:07 UTC) #11
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/40001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (left): https://codereview.webrtc.org/2362703002/diff/40001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#oldcode65 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:65: void AudioNetworkAdaptorImpl::SetReceiverFrameLengthRange( Also because rebase? https://codereview.webrtc.org/2362703002/diff/40001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): ...
4 years, 2 months ago (2016-10-03 12:48:11 UTC) #12
minyue-webrtc
Hi Karl, Thanks for the comments! Some quick replies from me, a patch set will ...
4 years, 2 months ago (2016-10-03 12:57:15 UTC) #13
minyue-webrtc
Hi Karl, Here is a new patch set that addressed your comments. PTAL again! Thanks! ...
4 years, 2 months ago (2016-10-03 14:51:37 UTC) #14
kwiberg-webrtc
lgtm. You don't need to take my advice on ANA injection if you don't want ...
4 years, 2 months ago (2016-10-04 08:52:35 UTC) #15
minyue-webrtc
Hi Karl, I followed your suggestion in using factory. I did my best, but I ...
4 years, 2 months ago (2016-10-04 15:33:01 UTC) #16
minyue-webrtc
I found a nit, but it should not affect reviewing. Please go ahead. https://codereview.webrtc.org/2362703002/diff/80001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File ...
4 years, 2 months ago (2016-10-04 15:35:59 UTC) #17
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/100001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc (right): https://codereview.webrtc.org/2362703002/diff/100001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc#newcode122 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc:122: std::placeholders::_2)) { (Almost) Never use std::bind when you have ...
4 years, 2 months ago (2016-10-04 16:04:06 UTC) #18
minyue-webrtc
Hi Karl, Thanks for the inspiring comments! Now some further polish is made. https://codereview.webrtc.org/2362703002/diff/100001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc File ...
4 years, 2 months ago (2016-10-04 17:07:13 UTC) #19
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode58 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:58: } Much better! However, you could have kept ...
4 years, 2 months ago (2016-10-04 17:40:37 UTC) #20
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode58 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:58: } On 2016/10/04 17:40:37, kwiberg-webrtc wrote: > Much better! ...
4 years, 2 months ago (2016-10-04 20:31:03 UTC) #21
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode58 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:58: } On 2016/10/04 20:31:03, minyue-webrtc wrote: > On 2016/10/04 ...
4 years, 2 months ago (2016-10-04 20:47:48 UTC) #22
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode49 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:49: AudioEncoderOpus::AudioNetworkAdaptorCreator creator = [&states]( I now adopt your suggestion, ...
4 years, 2 months ago (2016-10-05 06:08:28 UTC) #23
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode49 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:49: AudioEncoderOpus::AudioNetworkAdaptorCreator creator = [&states]( On 2016/10/05 06:08:28, minyue-webrtc wrote: ...
4 years, 2 months ago (2016-10-05 10:43:41 UTC) #24
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/140001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode49 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:49: AudioEncoderOpus::AudioNetworkAdaptorCreator creator = [&states]( On 2016/10/05 10:43:41, kwiberg-webrtc wrote: ...
4 years, 2 months ago (2016-10-05 13:40:38 UTC) #25
minyue-webrtc
4 years, 2 months ago (2016-10-05 13:40:39 UTC) #26
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode46 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:46: new MockAudioNetworkAdaptor*(nullptr)); This is different from your suggestion. We ...
4 years, 2 months ago (2016-10-05 14:18:24 UTC) #27
minyue-webrtc
Hi Karl, Does this read good now?
4 years, 2 months ago (2016-10-06 08:19:15 UTC) #28
kwiberg-webrtc
lgtm. The comments are optional. https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode46 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:46: new MockAudioNetworkAdaptor*(nullptr)); On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 08:51:10 UTC) #30
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2362703002/diff/160001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode46 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:46: new MockAudioNetworkAdaptor*(nullptr)); On 2016/10/06 08:51:10, kwiberg-webrtc wrote: > On ...
4 years, 2 months ago (2016-10-06 09:57:06 UTC) #31
minyue-webrtc
Hi Michael, I will try to commit this CL due to Karl's approval. I'd like ...
4 years, 2 months ago (2016-10-06 09:58:36 UTC) #32
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/2362703002/180001
4 years, 2 months ago (2016-10-06 09:59:09 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_libfuzzer_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/builds/6202) win_drmemory_light on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 2 months ago (2016-10-06 10:02:17 UTC) #37
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/2362703002/200001
4 years, 2 months ago (2016-10-06 10:23:29 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/14931) win_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 2 months ago (2016-10-06 10:27:59 UTC) #42
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/220001/webrtc/modules/audio_coding/codecs/opus/opus_interface.h File webrtc/modules/audio_coding/codecs/opus/opus_interface.h (right): https://codereview.webrtc.org/2362703002/diff/220001/webrtc/modules/audio_coding/codecs/opus/opus_interface.h#newcode218 webrtc/modules/audio_coding/codecs/opus/opus_interface.h:218: int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, size_t num_channels); I found that size_t ...
4 years, 2 months ago (2016-10-06 11:24:05 UTC) #44
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/2362703002/220001
4 years, 2 months ago (2016-10-06 11:24:33 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_libfuzzer_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/builds/6209)
4 years, 2 months ago (2016-10-06 11:56:01 UTC) #49
kwiberg-webrtc
https://codereview.webrtc.org/2362703002/diff/220001/webrtc/modules/audio_coding/codecs/opus/opus_interface.h File webrtc/modules/audio_coding/codecs/opus/opus_interface.h (right): https://codereview.webrtc.org/2362703002/diff/220001/webrtc/modules/audio_coding/codecs/opus/opus_interface.h#newcode218 webrtc/modules/audio_coding/codecs/opus/opus_interface.h:218: int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, size_t num_channels); On 2016/10/06 11:24:05, minyue-webrtc ...
4 years, 2 months ago (2016-10-06 12:18:11 UTC) #50
minyue-webrtc
https://codereview.webrtc.org/2362703002/diff/240001/webrtc/modules/audio_coding/BUILD.gn File webrtc/modules/audio_coding/BUILD.gn (right): https://codereview.webrtc.org/2362703002/diff/240001/webrtc/modules/audio_coding/BUILD.gn#newcode743 webrtc/modules/audio_coding/BUILD.gn:743: "../../system_wrappers", ANA depends on FileWrapper, which belongs to system_wrappers. ...
4 years, 2 months ago (2016-10-06 13:39:41 UTC) #51
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/2362703002/240001
4 years, 2 months ago (2016-10-06 13:40:03 UTC) #54
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 2 months ago (2016-10-06 14:13:57 UTC) #56
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 14:14:05 UTC) #58
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/41b9c801c2b8153e43485a583ae512e7ad486123
Cr-Commit-Position: refs/heads/master@{#14555}

Powered by Google App Engine
This is Rietveld 408576698