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

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2992043002: Renamed fields in common_types.h/RtcpStatistics. (Closed)
Patch Set: Rebase on new master Created 3 years, 4 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
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 // based on received packets. 2668 // based on received packets.
2669 RtcpStatistics statistics; 2669 RtcpStatistics statistics;
2670 StreamStatistician* statistician = 2670 StreamStatistician* statistician =
2671 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC()); 2671 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC());
2672 if (statistician) { 2672 if (statistician) {
2673 statistician->GetStatistics(&statistics, 2673 statistician->GetStatistics(&statistics,
2674 _rtpRtcpModule->RTCP() == RtcpMode::kOff); 2674 _rtpRtcpModule->RTCP() == RtcpMode::kOff);
2675 } 2675 }
2676 2676
2677 stats.fractionLost = statistics.fraction_lost; 2677 stats.fractionLost = statistics.fraction_lost;
2678 stats.cumulativeLost = statistics.cumulative_lost; 2678 stats.cumulativeLost = statistics.packets_lost;
2679 stats.extendedMax = statistics.extended_max_sequence_number; 2679 stats.extendedMax = statistics.extended_highest_sequence_number;
2680 stats.jitterSamples = statistics.jitter; 2680 stats.jitterSamples = statistics.jitter;
2681 2681
2682 // --- RTT 2682 // --- RTT
2683 stats.rttMs = GetRTT(true); 2683 stats.rttMs = GetRTT(true);
2684 2684
2685 // --- Data counters 2685 // --- Data counters
2686 2686
2687 size_t bytesSent(0); 2687 size_t bytesSent(0);
2688 uint32_t packetsSent(0); 2688 uint32_t packetsSent(0);
2689 size_t bytesReceived(0); 2689 size_t bytesReceived(0);
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
3161 int64_t min_rtt = 0; 3161 int64_t min_rtt = 0;
3162 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3162 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3163 0) { 3163 0) {
3164 return 0; 3164 return 0;
3165 } 3165 }
3166 return rtt; 3166 return rtt;
3167 } 3167 }
3168 3168
3169 } // namespace voe 3169 } // namespace voe
3170 } // namespace webrtc 3170 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698