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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
248 } | 250 } |
249 | 251 |
250 // Provides the media independent counters (both audio and video). | 252 // Provides the media independent counters (both audio and video). |
251 void SetOutboundRTPStreamStatsFromMediaSenderInfo( | 253 void SetOutboundRTPStreamStatsFromMediaSenderInfo( |
252 const cricket::MediaSenderInfo& media_sender_info, | 254 const cricket::MediaSenderInfo& media_sender_info, |
253 RTCOutboundRTPStreamStats* outbound_stats) { | 255 RTCOutboundRTPStreamStats* outbound_stats) { |
254 RTC_DCHECK(outbound_stats); | 256 RTC_DCHECK(outbound_stats); |
255 outbound_stats->ssrc = media_sender_info.ssrc(); | 257 outbound_stats->ssrc = media_sender_info.ssrc(); |
256 // TODO(hbos): Support the remote case. crbug.com/657856 | 258 // TODO(hbos): Support the remote case. crbug.com/657856 |
257 outbound_stats->is_remote = false; | 259 outbound_stats->is_remote = false; |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 const std::string& type) { | 1246 const std::string& type) { |
1245 return CandidateTypeToRTCIceCandidateType(type); | 1247 return CandidateTypeToRTCIceCandidateType(type); |
1246 } | 1248 } |
1247 | 1249 |
1248 const char* DataStateToRTCDataChannelStateForTesting( | 1250 const char* DataStateToRTCDataChannelStateForTesting( |
1249 DataChannelInterface::DataState state) { | 1251 DataChannelInterface::DataState state) { |
1250 return DataStateToRTCDataChannelState(state); | 1252 return DataStateToRTCDataChannelState(state); |
1251 } | 1253 } |
1252 | 1254 |
1253 } // namespace webrtc | 1255 } // namespace webrtc |
OLD | NEW |