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

Issue 2523843002: Send audio and video codecs to RTPPayloadRegistry (Closed)

Created:
4 years, 1 month ago by magjed_webrtc
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, yujie_mao (webrtc), zhuangzesen_agora.io, Andrew MacDonald, zhengzhonghou_agora.io, henrika_webrtc, stefan-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, mflodman, hta-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Send audio and video codecs to RTPPayloadRegistry The purpose with this CL is to be able to send video codec specific information down to RTPPayloadRegistry. We already do this for audio with explicit arguments for e.g. number of channels. Instead of extracting the arguments from webrtc::CodecInst (audio) and webrtc::VideoCodec, this CL sends the types unmodified all the way down to RTPPayloadRegistry. This CL does not contain any functional changes, and is just a preparation for future CL:s. In the dependent CL https://codereview.webrtc.org/2524923002/, RTPPayloadStrategy is removed. RTPPayloadStrategy previously handled audio/video specific aspects of payload handling. After this CL, we will know if we get audio or video codecs without any dependency injection, since we have different functions with different signatures for audio vs video. BUG=webrtc:6743 TBR=mflodman Committed: https://crrev.com/56124bd158f371e39aeae3dcff176cbbad75dbcd Cr-Commit-Position: refs/heads/master@{#15231}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments and add video test for RtpPayloadRegistry #

Total comments: 8

Patch Set 3 : Address more comments. #

Total comments: 1

Patch Set 4 : Keep old interface public to allow external code to migrate. #

Patch Set 5 : Change strcpy to strncpy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -158 lines) Patch
M webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h View 1 3 chunks +24 lines, -9 lines 0 comments Download
M webrtc/modules/rtp_rtcp/include/rtp_receiver.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc View 1 3 chunks +29 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc View 1 2 3 4 12 chunks +98 lines, -39 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc View 1 2 chunks +13 lines, -14 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc View 1 2 3 4 3 chunks +22 lines, -12 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc View 2 chunks +3 lines, -18 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc View 1 chunk +2 lines, -12 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc View 1 2 chunks +2 lines, -10 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 1 chunk +3 lines, -6 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 5 chunks +6 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 68 (53 generated)
magjed_webrtc
Please take a look. danilchap: Owner of webrtc/modules/rtp_rtcp hta: Mostly FYI, but review if you ...
4 years ago (2016-11-23 13:35:22 UTC) #18
danilchap
https://codereview.webrtc.org/2523843002/diff/40001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h File webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h (right): https://codereview.webrtc.org/2523843002/diff/40001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h#newcode24 webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h:24: forward declare CodecInst/VideoCodec and include webrtc/common_types.h in the .cc ...
4 years ago (2016-11-23 15:19:24 UTC) #19
hta-webrtc
lgtm Looks like a simplification all over the place. I like it. https://codereview.webrtc.org/2523843002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc File webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc ...
4 years ago (2016-11-23 16:08:25 UTC) #21
magjed_webrtc
https://codereview.webrtc.org/2523843002/diff/40001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h File webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h (right): https://codereview.webrtc.org/2523843002/diff/40001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h#newcode24 webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h:24: On 2016/11/23 15:19:23, danilchap wrote: > forward declare CodecInst/VideoCodec ...
4 years ago (2016-11-23 16:35:53 UTC) #33
danilchap
lgtm functions with 1-2 parameters are way easier to read than function with 6 parameters. ...
4 years ago (2016-11-23 17:12:50 UTC) #36
the sun
https://codereview.webrtc.org/2523843002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h File webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h (right): https://codereview.webrtc.org/2523843002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h#newcode70 webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h:70: int32_t RegisterReceivePayload(const VideoCodec& video_codec); While I do agree that ...
4 years ago (2016-11-23 19:29:35 UTC) #38
magjed_webrtc
https://codereview.webrtc.org/2523843002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h File webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h (right): https://codereview.webrtc.org/2523843002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h#newcode70 webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h:70: int32_t RegisterReceivePayload(const VideoCodec& video_codec); On 2016/11/23 19:29:35, the sun ...
4 years ago (2016-11-24 09:39:40 UTC) #40
magjed_webrtc
mflodman - Please review webrtc/video/rtp_stream_receiver.cc.
4 years ago (2016-11-24 09:41:59 UTC) #44
the sun
lgtm for voice_engine/channel.cc https://codereview.webrtc.org/2523843002/diff/100001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2523843002/diff/100001/webrtc/voice_engine/channel.cc#newcode1038 webrtc/voice_engine/channel.cc:1038: (rtp_receiver_->RegisterReceivePayload(codec) == -1)) { nice to ...
4 years ago (2016-11-24 14:27:08 UTC) #48
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/2523843002/140001
4 years ago (2016-11-24 16:39:19 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/10618)
4 years ago (2016-11-24 16:42:09 UTC) #59
mflodman
LGTM for webrtc/video/rtp_stream_receiver.cc
4 years ago (2016-11-24 17:15:03 UTC) #60
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/2523843002/160001
4 years ago (2016-11-24 17:19:54 UTC) #63
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years ago (2016-11-24 17:34:54 UTC) #66
commit-bot: I haz the power
4 years ago (2016-11-24 17:35:00 UTC) #68
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/56124bd158f371e39aeae3dcff176cbbad75dbcd
Cr-Commit-Position: refs/heads/master@{#15231}

Powered by Google App Engine
This is Rietveld 408576698