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

Issue 2516993002: Pass SdpAudioFormat through Channel, without converting to CodecInst (Closed)

Created:
4 years, 1 month ago by kwiberg-webrtc
Modified:
3 years, 7 months ago
Reviewers:
the sun, ossu
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, peah-webrtc, Andrew MacDonald, henrika_webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Pass SdpAudioFormat through Channel, without converting to CodecInst BUG=webrtc:5805 Review-Url: https://codereview.webrtc.org/2516993002 Cr-Commit-Position: refs/heads/master@{#16165} Committed: https://chromium.googlesource.com/external/webrtc/+/d32bf7572138812dda9bd0028ac099a6e440fc61

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 37

Patch Set 6 : easy comments #

Total comments: 3

Patch Set 7 : no pass-by-T&& #

Patch Set 8 : Check that codecs are supported #

Patch Set 9 : Better check for supported codecs #

Patch Set 10 : Fix SetRecvCodecsAfterAddingStreams #

Total comments: 21

Patch Set 11 : Better IsSupportedDecoder implementation #

Patch Set 12 : Review comments #

Total comments: 2

Patch Set 13 : Erase Potemkin from the history books #

Patch Set 14 : rebase #

Total comments: 6

Patch Set 15 : nits + rebase #

Patch Set 16 : opus default stereo #

Total comments: 1

Patch Set 17 : fix #

Patch Set 18 : more fix #

Patch Set 19 : rebase #

Patch Set 20 : rebase #

Patch Set 21 : emulate bug 6986 #

Total comments: 2

Patch Set 22 : rebase #

Patch Set 23 : don't fail if we have to ignore extra parameters #

Patch Set 24 : rebase #

Patch Set 25 : add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -137 lines) Patch
M webrtc/audio/audio_receive_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/call/audio_receive_stream.h View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M webrtc/media/engine/payload_type_mapper.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/media/engine/payload_type_mapper.cc View 1 2 3 4 5 6 1 chunk +5 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 16 17 18 19 4 chunks +48 lines, -50 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 17 18 19 3 chunks +9 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/rent_a_codec.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_decoder_factory.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_decoder_factory_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_format.h View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_format.cc View 1 2 3 4 5 6 1 chunk +16 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_format_conversion.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_format_conversion.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +61 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +109 lines, -54 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_decoder_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -0 lines 0 comments Download
M webrtc/tools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +24 lines, -6 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 103 (75 generated)
kwiberg-webrtc
4 years, 1 month ago (2016-11-21 05:43:16 UTC) #6
the sun
https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h File webrtc/voice_engine/include/voe_codec.h (right): https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h#newcode83 webrtc/voice_engine/include/voe_codec.h:83: virtual int SetRecPayloadType(int channel, Why do we need to ...
4 years, 1 month ago (2016-11-21 08:37:05 UTC) #8
ossu
https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h File webrtc/voice_engine/include/voe_codec.h (right): https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h#newcode83 webrtc/voice_engine/include/voe_codec.h:83: virtual int SetRecPayloadType(int channel, On 2016/11/21 08:37:05, the sun ...
4 years ago (2016-11-30 12:43:43 UTC) #9
the sun
On 2016/11/30 12:43:43, ossu wrote: > https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h > File webrtc/voice_engine/include/voe_codec.h (right): > > https://codereview.webrtc.org/2516993002/diff/1/webrtc/voice_engine/include/voe_codec.h#newcode83 > ...
4 years ago (2016-11-30 14:12:52 UTC) #10
kwiberg-webrtc
Please have a look. (But don't try to diff against previous patch sets.) https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File ...
4 years ago (2016-12-08 09:44:06 UTC) #27
the sun
Good stuff! https://codereview.webrtc.org/2516993002/diff/80001/webrtc/call/audio_receive_stream.h File webrtc/call/audio_receive_stream.h (right): https://codereview.webrtc.org/2516993002/diff/80001/webrtc/call/audio_receive_stream.h#newcode105 webrtc/call/audio_receive_stream.h:105: // Decoders for every payload that we ...
4 years ago (2016-12-08 10:53:53 UTC) #28
kwiberg-webrtc
Posted new patch set with the easy stuff fixed. https://codereview.webrtc.org/2516993002/diff/80001/webrtc/call/audio_receive_stream.h File webrtc/call/audio_receive_stream.h (right): https://codereview.webrtc.org/2516993002/diff/80001/webrtc/call/audio_receive_stream.h#newcode105 webrtc/call/audio_receive_stream.h:105: ...
4 years ago (2016-12-09 02:39:02 UTC) #29
the sun
https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1670 webrtc/media/engine/webrtcvoiceengine.cc:1670: auto ext = recv_rtp_extensions_; // Make a copy. On ...
4 years ago (2016-12-09 12:29:50 UTC) #30
ossu
https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1670 webrtc/media/engine/webrtcvoiceengine.cc:1670: auto ext = recv_rtp_extensions_; // Make a copy. On ...
4 years ago (2016-12-09 13:23:39 UTC) #31
kwiberg-webrtc
https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2516993002/diff/80001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1670 webrtc/media/engine/webrtcvoiceengine.cc:1670: auto ext = recv_rtp_extensions_; // Make a copy. On ...
4 years ago (2016-12-11 11:24:56 UTC) #36
kwiberg-webrtc
OK, a bunch of new patch sets uploaded. As of the last one (#10), I ...
4 years ago (2016-12-12 02:09:56 UTC) #45
ossu
Almost there! I have some reservations against the way IsSupportedDecoder is implemented. As you say ...
4 years ago (2016-12-12 13:24:46 UTC) #46
the sun
https://codereview.webrtc.org/2516993002/diff/180001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2516993002/diff/180001/webrtc/audio/audio_receive_stream.cc#newcode104 webrtc/audio/audio_receive_stream.cc:104: for (const auto& dec : config.decoder_map) { nit: dec ...
4 years ago (2016-12-14 08:58:27 UTC) #47
ossu
https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode111 webrtc/media/engine/webrtcvoiceengine_unittest.cc:111: webrtc::MockAudioDecoderFactory::CreateUnusedPotemkinFactory(); On 2016/12/14 08:58:24, the sun wrote: > I ...
4 years ago (2016-12-14 10:21:36 UTC) #48
the sun
https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc#newcode2227 webrtc/media/engine/webrtcvoiceengine.cc:2227: if (engine()->voe()->codec()->SetRecPayloadType(channel, voe_codec) == -1) { We should be ...
4 years ago (2016-12-14 10:37:38 UTC) #49
kwiberg-webrtc
New patch sets posted. https://codereview.webrtc.org/2516993002/diff/180001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2516993002/diff/180001/webrtc/audio/audio_receive_stream.cc#newcode104 webrtc/audio/audio_receive_stream.cc:104: for (const auto& dec : ...
4 years ago (2016-12-14 13:09:37 UTC) #52
ossu
lgtm provided the questions below about the Potemkin mock are resolved, either through a patch ...
4 years ago (2016-12-14 13:53:35 UTC) #55
kwiberg-webrtc
New patch sets uploaded. https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/2516993002/diff/180001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode111 webrtc/media/engine/webrtcvoiceengine_unittest.cc:111: webrtc::MockAudioDecoderFactory::CreateUnusedPotemkinFactory(); On 2016/12/14 13:53:35, ossu ...
4 years ago (2016-12-15 14:30:50 UTC) #58
ossu
AWESOMEPANTS!
4 years ago (2016-12-15 14:36:12 UTC) #59
the sun
LGTM Solid! https://codereview.webrtc.org/2516993002/diff/260001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/2516993002/diff/260001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode120 webrtc/media/engine/webrtcvoiceengine_unittest.cc:120: // factory. Those tests should probably be ...
4 years ago (2016-12-15 15:34:13 UTC) #62
kwiberg-webrtc
https://codereview.webrtc.org/2516993002/diff/260001/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc File webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc (right): https://codereview.webrtc.org/2516993002/diff/260001/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc#newcode220 webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc:220: std::unique_ptr<AudioDecoder> dec; On 2016/12/15 15:34:13, the sun wrote: > ...
4 years ago (2016-12-16 14:20:54 UTC) #65
ossu
Drive-by reviewing! https://codereview.webrtc.org/2516993002/diff/320001/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc File webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc (right): https://codereview.webrtc.org/2516993002/diff/320001/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc#newcode179 webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc:179: { { "opus", 48000, 2, { Should ...
4 years ago (2016-12-19 10:38:26 UTC) #73
kwiberg-webrtc
OK, it looks like I've gotten all the bots to like this... take a look ...
3 years, 11 months ago (2017-01-19 12:22:36 UTC) #92
the sun
https://codereview.webrtc.org/2516993002/diff/420001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2516993002/diff/420001/webrtc/voice_engine/channel.cc#newcode1393 webrtc/voice_engine/channel.cc:1393: // Bug 6986: Emulate an old bug that caused ...
3 years, 11 months ago (2017-01-19 13:05:14 UTC) #93
ossu
On 2017/01/19 12:22:36, kwiberg-webrtc wrote: > OK, it looks like I've gotten all the bots ...
3 years, 11 months ago (2017-01-19 13:18:10 UTC) #96
kwiberg-webrtc
https://codereview.webrtc.org/2516993002/diff/420001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2516993002/diff/420001/webrtc/voice_engine/channel.cc#newcode1393 webrtc/voice_engine/channel.cc:1393: // Bug 6986: Emulate an old bug that caused ...
3 years, 11 months ago (2017-01-19 13:28:46 UTC) #97
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/2516993002/540001
3 years, 11 months ago (2017-01-19 13:29:09 UTC) #100
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 15:04:07 UTC) #103
Message was sent while issue was closed.
Committed patchset #25 (id:540001) as
https://chromium.googlesource.com/external/webrtc/+/d32bf7572138812dda9bd0028...

Powered by Google App Engine
This is Rietveld 408576698