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

Issue 2589743002: Make OverheadObserver::OnOverheadChanged count RTP headers only (Closed)

Created:
4 years ago by nisse-webrtc
Modified:
3 years, 11 months 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
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make OverheadObserver::OnOverheadChanged count RTP headers only This lets the RTP code be unaware of lower layers, and the SetTransportOverhead method is deleted from RTPSender and RtpRtcp. Instead, that method is added to CongestionController and TransportFeedbackAdapter, where it is more appropriate. BUG=wertc:6847 Review-Url: https://codereview.webrtc.org/2589743002 Cr-Commit-Position: refs/heads/master@{#15995} Committed: https://chromium.googlesource.com/external/webrtc/+/284542b8827b3379a9be227b3563e2b2c7742b47

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use static_cast. #

Patch Set 3 : [Purge MTU knowledge from the RTP code. #

Patch Set 4 : Rebased. #

Total comments: 19

Patch Set 5 : Address easy nits. #

Total comments: 10

Patch Set 6 : Address nits. #

Patch Set 7 : More int --> size_t fixes. Some formatting fixes. #

Patch Set 8 : Keep SetMaxTransferUnit for backwards compatibility. #

Patch Set 9 : Add explicit cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -211 lines) Patch
M webrtc/modules/congestion_controller/congestion_controller.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/include/congestion_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/transport_feedback_adapter.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/transport_feedback_adapter.cc View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/include/rtp_rtcp.h View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -27 lines 0 comments Download
M webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h View 1 2 3 4 1 chunk +3 lines, -10 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 4 5 2 chunks +15 lines, -55 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.h View 1 2 6 chunks +6 lines, -8 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 8 7 chunks +18 lines, -38 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc View 4 chunks +5 lines, -18 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc View 1 2 1 chunk +4 lines, -14 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 6 chunks +43 lines, -19 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 2 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
nisse-webrtc
PTAL. Currently fails VideoSendStreamTest.ChangingTransportOverhead, it produces too large RTP packets. https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc#newcode1284 ...
4 years ago (2016-12-19 12:37:23 UTC) #2
stefan-webrtc
+michaelt who wrote most of this code, and may have additional comments. https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc ...
4 years ago (2016-12-19 13:55:41 UTC) #4
michaelt
https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc#newcode1284 webrtc/video/video_send_stream.cc:1284: // TODO(nisse): Also call SetMaxPayloadLength? Calling SetMaxTransferUnit here will ...
4 years ago (2016-12-19 14:17:02 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2589743002/diff/1/webrtc/video/video_send_stream.cc#newcode1203 webrtc/video/video_send_stream.cc:1203: (uint64_t) bitrate_bps * On 2016/12/19 13:55:41, stefan-webrtc (holmer) wrote: ...
4 years ago (2016-12-19 14:41:04 UTC) #6
nisse-webrtc
On 2016/12/19 14:41:04, nisse-webrtc wrote: > On 2016/12/19 14:17:01, michaelt wrote: > > Calling SetMaxTransferUnit ...
4 years ago (2016-12-20 08:24:20 UTC) #7
michaelt
On 2016/12/20 08:24:20, nisse-webrtc wrote: > On 2016/12/19 14:41:04, nisse-webrtc wrote: > > > On ...
4 years ago (2016-12-20 08:52:55 UTC) #8
nisse-webrtc
Reorganized to take out the MTU logic from the RTP code. (cl descriptions needs some ...
4 years ago (2016-12-20 10:03:46 UTC) #9
stefan-webrtc
https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc (right): https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc#newcode125 webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc:125: SetMaxRtpPacketSize(IP_PACKET_SIZE - 40); I think it would make sense ...
4 years ago (2016-12-20 13:05:02 UTC) #10
nisse-webrtc
https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc (right): https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc#newcode125 webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc:125: SetMaxRtpPacketSize(IP_PACKET_SIZE - 40); On 2016/12/20 13:05:01, stefan-webrtc (holmer) wrote: ...
4 years ago (2016-12-20 13:38:13 UTC) #11
michaelt
https://codereview.webrtc.org/2589743002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp.h (left): https://codereview.webrtc.org/2589743002/diff/80001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h#oldcode144 webrtc/modules/rtp_rtcp/include/rtp_rtcp.h:144: // configuration MaxTransferUnit, headers and TransportOverhead. nit: You removed ...
4 years ago (2016-12-20 14:11:42 UTC) #12
stefan-webrtc
lgtm https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc (right): https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc#newcode125 webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc:125: SetMaxRtpPacketSize(IP_PACKET_SIZE - 40); On 2016/12/20 13:38:13, nisse-webrtc wrote: ...
4 years ago (2016-12-20 14:18:23 UTC) #13
the sun
LGTM for voice engine channel, % nits, and then a question... https://codereview.webrtc.org/2589743002/diff/80001/webrtc/modules/congestion_controller/transport_feedback_adapter.cc File webrtc/modules/congestion_controller/transport_feedback_adapter.cc (right): ...
4 years ago (2016-12-21 10:33:03 UTC) #14
stefan-webrtc
https://codereview.webrtc.org/2589743002/diff/80001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2589743002/diff/80001/webrtc/voice_engine/channel.cc#newcode2898 webrtc/voice_engine/channel.cc:2898: void Channel::OnOverheadChanged(size_t overhead_bytes_per_packet) { On 2016/12/21 10:33:02, the sun ...
4 years ago (2016-12-21 11:31:43 UTC) #15
michaelt
lgtm
3 years, 11 months ago (2017-01-09 12:42:52 UTC) #16
nisse-webrtc
https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc (right): https://codereview.webrtc.org/2589743002/diff/60001/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc#newcode125 webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc:125: SetMaxRtpPacketSize(IP_PACKET_SIZE - 40); On 2016/12/20 14:18:23, stefan-webrtc_OOO_Jan9 wrote: > ...
3 years, 11 months ago (2017-01-09 16:02:24 UTC) #17
stefan-webrtc
https://codereview.webrtc.org/2589743002/diff/80001/webrtc/modules/congestion_controller/transport_feedback_adapter.cc File webrtc/modules/congestion_controller/transport_feedback_adapter.cc (right): https://codereview.webrtc.org/2589743002/diff/80001/webrtc/modules/congestion_controller/transport_feedback_adapter.cc#newcode83 webrtc/modules/congestion_controller/transport_feedback_adapter.cc:83: // TODO(nisse): Which lock? On 2017/01/09 16:02:24, nisse-webrtc wrote: ...
3 years, 11 months ago (2017-01-10 08:42:58 UTC) #20
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/2589743002/160001
3 years, 11 months ago (2017-01-10 16:09:30 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 16:58:38 UTC) #32
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/external/webrtc/+/284542b8827b3379a9be227b3...

Powered by Google App Engine
This is Rietveld 408576698