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

Side by Side Diff: webrtc/pc/rtcstatscollector.cc

Issue 2687483002: Revert of RTCInboundRTPStreamStats.qpSum collected. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « webrtc/pc/rtcstats_integrationtest.cc ('k') | webrtc/pc/rtcstatscollector_unittest.cc » ('j') | 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 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 RTCCodecStatsIDFromDirectionMediaAndPayload( 238 RTCCodecStatsIDFromDirectionMediaAndPayload(
239 true, false, *video_receiver_info.codec_payload_type); 239 true, false, *video_receiver_info.codec_payload_type);
240 } 240 }
241 inbound_video->fir_count = 241 inbound_video->fir_count =
242 static_cast<uint32_t>(video_receiver_info.firs_sent); 242 static_cast<uint32_t>(video_receiver_info.firs_sent);
243 inbound_video->pli_count = 243 inbound_video->pli_count =
244 static_cast<uint32_t>(video_receiver_info.plis_sent); 244 static_cast<uint32_t>(video_receiver_info.plis_sent);
245 inbound_video->nack_count = 245 inbound_video->nack_count =
246 static_cast<uint32_t>(video_receiver_info.nacks_sent); 246 static_cast<uint32_t>(video_receiver_info.nacks_sent);
247 inbound_video->frames_decoded = video_receiver_info.frames_decoded; 247 inbound_video->frames_decoded = video_receiver_info.frames_decoded;
248 if (video_receiver_info.qp_sum)
249 inbound_video->qp_sum = *video_receiver_info.qp_sum;
250 } 248 }
251 249
252 // Provides the media independent counters (both audio and video). 250 // Provides the media independent counters (both audio and video).
253 void SetOutboundRTPStreamStatsFromMediaSenderInfo( 251 void SetOutboundRTPStreamStatsFromMediaSenderInfo(
254 const cricket::MediaSenderInfo& media_sender_info, 252 const cricket::MediaSenderInfo& media_sender_info,
255 RTCOutboundRTPStreamStats* outbound_stats) { 253 RTCOutboundRTPStreamStats* outbound_stats) {
256 RTC_DCHECK(outbound_stats); 254 RTC_DCHECK(outbound_stats);
257 outbound_stats->ssrc = media_sender_info.ssrc(); 255 outbound_stats->ssrc = media_sender_info.ssrc();
258 // TODO(hbos): Support the remote case. crbug.com/657856 256 // TODO(hbos): Support the remote case. crbug.com/657856
259 outbound_stats->is_remote = false; 257 outbound_stats->is_remote = false;
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 const std::string& type) { 1244 const std::string& type) {
1247 return CandidateTypeToRTCIceCandidateType(type); 1245 return CandidateTypeToRTCIceCandidateType(type);
1248 } 1246 }
1249 1247
1250 const char* DataStateToRTCDataChannelStateForTesting( 1248 const char* DataStateToRTCDataChannelStateForTesting(
1251 DataChannelInterface::DataState state) { 1249 DataChannelInterface::DataState state) {
1252 return DataStateToRTCDataChannelState(state); 1250 return DataStateToRTCDataChannelState(state);
1253 } 1251 }
1254 1252
1255 } // namespace webrtc 1253 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/rtcstats_integrationtest.cc ('k') | webrtc/pc/rtcstatscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698