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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc

Issue 1491843004: [rtp_rtcp] RTT intermidiate calculation use ntp time instead of milliseconds. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 void ModuleRtpRtcpImpl::OnRequestSendReport() { 889 void ModuleRtpRtcpImpl::OnRequestSendReport() {
890 SendRTCP(kRtcpSr); 890 SendRTCP(kRtcpSr);
891 } 891 }
892 892
893 int32_t ModuleRtpRtcpImpl::SendRTCPReferencePictureSelection( 893 int32_t ModuleRtpRtcpImpl::SendRTCPReferencePictureSelection(
894 const uint64_t picture_id) { 894 const uint64_t picture_id) {
895 return rtcp_sender_.SendRTCP( 895 return rtcp_sender_.SendRTCP(
896 GetFeedbackState(), kRtcpRpsi, 0, 0, false, picture_id); 896 GetFeedbackState(), kRtcpRpsi, 0, 0, false, picture_id);
897 } 897 }
898 898
899 int64_t ModuleRtpRtcpImpl::SendTimeOfSendReport(
900 const uint32_t send_report) {
901 return rtcp_sender_.SendTimeOfSendReport(send_report);
902 }
903
904 bool ModuleRtpRtcpImpl::SendTimeOfXrRrReport(
905 uint32_t mid_ntp, int64_t* time_ms) const {
906 return rtcp_sender_.SendTimeOfXrRrReport(mid_ntp, time_ms);
907 }
908
909 void ModuleRtpRtcpImpl::OnReceivedNACK( 899 void ModuleRtpRtcpImpl::OnReceivedNACK(
910 const std::list<uint16_t>& nack_sequence_numbers) { 900 const std::list<uint16_t>& nack_sequence_numbers) {
911 for (uint16_t nack_sequence_number : nack_sequence_numbers) { 901 for (uint16_t nack_sequence_number : nack_sequence_numbers) {
912 send_loss_stats_.AddLostPacket(nack_sequence_number); 902 send_loss_stats_.AddLostPacket(nack_sequence_number);
913 } 903 }
914 if (!rtp_sender_.StorePackets() || 904 if (!rtp_sender_.StorePackets() ||
915 nack_sequence_numbers.size() == 0) { 905 nack_sequence_numbers.size() == 0) {
916 return; 906 return;
917 } 907 }
918 // Use RTT from RtcpRttStats class if provided. 908 // Use RTT from RtcpRttStats class if provided.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( 978 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback(
989 StreamDataCountersCallback* callback) { 979 StreamDataCountersCallback* callback) {
990 rtp_sender_.RegisterRtpStatisticsCallback(callback); 980 rtp_sender_.RegisterRtpStatisticsCallback(callback);
991 } 981 }
992 982
993 StreamDataCountersCallback* 983 StreamDataCountersCallback*
994 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { 984 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const {
995 return rtp_sender_.GetRtpStatisticsCallback(); 985 return rtp_sender_.GetRtpStatisticsCallback();
996 } 986 }
997 } // namespace webrtc 987 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698