| OLD | NEW |
| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 SetInboundRTPStreamStatsFromMediaReceiverInfo( | 226 SetInboundRTPStreamStatsFromMediaReceiverInfo( |
| 227 video_receiver_info, inbound_video); | 227 video_receiver_info, inbound_video); |
| 228 inbound_video->media_type = "video"; | 228 inbound_video->media_type = "video"; |
| 229 inbound_video->fir_count = | 229 inbound_video->fir_count = |
| 230 static_cast<uint32_t>(video_receiver_info.firs_sent); | 230 static_cast<uint32_t>(video_receiver_info.firs_sent); |
| 231 inbound_video->pli_count = | 231 inbound_video->pli_count = |
| 232 static_cast<uint32_t>(video_receiver_info.plis_sent); | 232 static_cast<uint32_t>(video_receiver_info.plis_sent); |
| 233 inbound_video->nack_count = | 233 inbound_video->nack_count = |
| 234 static_cast<uint32_t>(video_receiver_info.nacks_sent); | 234 static_cast<uint32_t>(video_receiver_info.nacks_sent); |
| 235 inbound_video->frames_decoded = video_receiver_info.frames_decoded; | 235 inbound_video->frames_decoded = video_receiver_info.frames_decoded; |
| 236 if (video_receiver_info.qp_sum) |
| 237 inbound_video->qp_sum = *video_receiver_info.qp_sum; |
| 236 } | 238 } |
| 237 | 239 |
| 238 // Provides the media independent counters (both audio and video). | 240 // Provides the media independent counters (both audio and video). |
| 239 void SetOutboundRTPStreamStatsFromMediaSenderInfo( | 241 void SetOutboundRTPStreamStatsFromMediaSenderInfo( |
| 240 const cricket::MediaSenderInfo& media_sender_info, | 242 const cricket::MediaSenderInfo& media_sender_info, |
| 241 RTCOutboundRTPStreamStats* outbound_stats) { | 243 RTCOutboundRTPStreamStats* outbound_stats) { |
| 242 RTC_DCHECK(outbound_stats); | 244 RTC_DCHECK(outbound_stats); |
| 243 outbound_stats->ssrc = rtc::ToString<>(media_sender_info.ssrc()); | 245 outbound_stats->ssrc = rtc::ToString<>(media_sender_info.ssrc()); |
| 244 // TODO(hbos): Support the remote case. crbug.com/657856 | 246 // TODO(hbos): Support the remote case. crbug.com/657856 |
| 245 outbound_stats->is_remote = false; | 247 outbound_stats->is_remote = false; |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 const std::string& type) { | 1224 const std::string& type) { |
| 1223 return CandidateTypeToRTCIceCandidateType(type); | 1225 return CandidateTypeToRTCIceCandidateType(type); |
| 1224 } | 1226 } |
| 1225 | 1227 |
| 1226 const char* DataStateToRTCDataChannelStateForTesting( | 1228 const char* DataStateToRTCDataChannelStateForTesting( |
| 1227 DataChannelInterface::DataState state) { | 1229 DataChannelInterface::DataState state) { |
| 1228 return DataStateToRTCDataChannelState(state); | 1230 return DataStateToRTCDataChannelState(state); |
| 1229 } | 1231 } |
| 1230 | 1232 |
| 1231 } // namespace webrtc | 1233 } // namespace webrtc |
| OLD | NEW |