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

Issue 2524923002: Remove RTPPayloadStrategy and simplify RTPPayloadRegistry (Closed)

Created:
4 years ago by magjed_webrtc
Modified:
4 years ago
Reviewers:
the sun, danilchap, mflodman
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman, hta-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove RTPPayloadStrategy and simplify RTPPayloadRegistry This CL removes RTPPayloadStrategy that is currently used to handle audio/video specific aspects of payload handling. Instead, the audio and video specific aspects will now have different functions, with linear code flow. This CL does not contain any functional changes, and is just a preparation for future CL:s. The main purpose with this CL is to add this function: bool PayloadIsCompatible(const RtpUtility::Payload& payload, const webrtc::VideoCodec& video_codec); that can easily be extended in a future CL to look at video codec specific information. BUG=webrtc:6743 Committed: https://crrev.com/b881254dc86d2cc80a52e08155433458be002166 Cr-Commit-Position: refs/heads/master@{#15232}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 28

Patch Set 3 : Address comments. #

Total comments: 10

Patch Set 4 : Address comments #2 #

Patch Set 5 : Rebase #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -556 lines) Patch
M webrtc/modules/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h View 1 2 3 4 5 6 3 chunks +16 lines, -59 lines 0 comments Download
D webrtc/modules/rtp_rtcp/source/mock/mock_rtp_payload_strategy.h View 1 chunk +0 lines, -43 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc View 1 2 3 8 chunks +148 lines, -260 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc View 1 2 3 4 5 4 chunks +116 lines, -159 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h View 1 2 2 chunks +0 lines, -12 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_utility.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/test/rtp_player.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 59 (47 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:47 UTC) #22
danilchap
https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h File webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h (left): https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h#oldcode63 webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h:63: ~RTPPayloadRegistry(); restore destructor: it is default, but not trivial, ...
4 years ago (2016-11-23 19:06:18 UTC) #27
magjed_webrtc
Please take a look. solenberg: webrtc/voice_engine/channel.cc (and the rest of the CL as well if ...
4 years ago (2016-11-24 12:20:39 UTC) #33
danilchap
https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc File webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc (right): https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc#newcode116 webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc:116: const uint32_t rate = std::max(0, audio_codec.rate); On 2016/11/24 12:20:39, ...
4 years ago (2016-11-24 13:24:36 UTC) #34
the sun
lgtm lgtm for voice_engine/channel.cc
4 years ago (2016-11-24 13:48:28 UTC) #35
magjed_webrtc
https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc File webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc (right): https://codereview.webrtc.org/2524923002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc#newcode116 webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc:116: const uint32_t rate = std::max(0, audio_codec.rate); On 2016/11/24 13:24:36, ...
4 years ago (2016-11-24 14:29:29 UTC) #40
danilchap
lgtm!
4 years ago (2016-11-24 14:38:57 UTC) #41
mflodman
LGTM for webrtc/video/rtp_stream_receiver.cc
4 years ago (2016-11-24 17:30:09 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/2524923002/240001
4 years ago (2016-11-24 18:30:16 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:240001)
4 years ago (2016-11-24 18:43:49 UTC) #56
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/b881254dc86d2cc80a52e08155433458be002166 Cr-Commit-Position: refs/heads/master@{#15232}
4 years ago (2016-11-24 18:43:56 UTC) #58
magjed_webrtc
4 years ago (2016-11-24 19:08:30 UTC) #59
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:240001) has been created in
https://codereview.webrtc.org/2528993002/ by magjed@webrtc.org.

The reason for reverting is: Breaks downstream projects..

Powered by Google App Engine
This is Rietveld 408576698