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

Issue 1491843004: [rtp_rtcp] RTT intermidiate calculation use ntp time instead of milliseconds. (Closed)

Created:
5 years ago by danilchap
Modified:
4 years, 10 months ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

RTT intermediate calculation use ntp time instead of milliseconds. Compact NTP representation was designed exactly for that purpose: calculate RTT. No need to map to ms before doing arithmetic on this values. Because of this change there is no need to keep mapping between compact ntp presentation and milliseconds in the RTCPSender. BUG=webrtc:5565 R=stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/a094fd1550322552809fea8bcdd8f3e297318323

Patch Set 1 #

Patch Set 2 : rebase & make use of time_util ntp functions #

Patch Set 3 : rebase & reduced RtpRtcpImplUnittest to more reasanable expectations #

Total comments: 16

Patch Set 4 : #

Patch Set 5 : CompactNtpIntervalToMs rounds to nearest #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -182 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc View 1 2 3 4 chunks +37 lines, -63 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc View 1 2 3 4 5 8 chunks +71 lines, -11 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.h View 1 2 3 4 5 2 chunks +0 lines, -15 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 1 2 3 4 5 3 chunks +0 lines, -46 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -28 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc View 1 2 3 4 5 3 chunks +10 lines, -8 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/time_util.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (9 generated)
danilchap
5 years ago (2015-12-02 14:55:19 UTC) #1
stefan-webrtc
Seems like a nice improvement! https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode525 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:525: uint32_t RTT = 0; ...
4 years, 10 months ago (2016-02-03 10:03:11 UTC) #6
danilchap
https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode525 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:525: uint32_t RTT = 0; On 2016/02/03 10:03:10, stefan-webrtc (holmer) ...
4 years, 10 months ago (2016-02-03 13:27:11 UTC) #7
danilchap
changed rounding to nearest instead of lowest. test would now pass with expectation changed to ...
4 years, 10 months ago (2016-02-12 16:01:00 UTC) #8
stefan-webrtc
On 2016/02/12 16:01:00, danilchap wrote: > changed rounding to nearest instead of lowest. > test ...
4 years, 10 months ago (2016-02-22 16:14:26 UTC) #9
stefan-webrtc
https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (right): https://codereview.webrtc.org/1491843004/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode217 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:217: EXPECT_NEAR(kRttMs, rtt_ms, 1); On 2016/02/03 13:27:11, danilchap wrote: > ...
4 years, 10 months ago (2016-02-22 16:14:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491843004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491843004/100001
4 years, 10 months ago (2016-02-22 16:19:48 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/7552)
4 years, 10 months ago (2016-02-22 16:21:54 UTC) #15
danilchap
Committed patchset #6 (id:100001) manually as a094fd1550322552809fea8bcdd8f3e297318323 (presubmit successful).
4 years, 10 months ago (2016-02-22 17:59:53 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 17:59:54 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a094fd1550322552809fea8bcdd8f3e297318323
Cr-Commit-Position: refs/heads/master@{#11710}

Powered by Google App Engine
This is Rietveld 408576698