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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 video_track_stats->remote_source = true; | 433 video_track_stats->remote_source = true; |
434 video_track_stats->detached = false; | 434 video_track_stats->detached = false; |
435 if (video_receiver_info.frame_width > 0 && | 435 if (video_receiver_info.frame_width > 0 && |
436 video_receiver_info.frame_height > 0) { | 436 video_receiver_info.frame_height > 0) { |
437 video_track_stats->frame_width = static_cast<uint32_t>( | 437 video_track_stats->frame_width = static_cast<uint32_t>( |
438 video_receiver_info.frame_width); | 438 video_receiver_info.frame_width); |
439 video_track_stats->frame_height = static_cast<uint32_t>( | 439 video_track_stats->frame_height = static_cast<uint32_t>( |
440 video_receiver_info.frame_height); | 440 video_receiver_info.frame_height); |
441 } | 441 } |
442 video_track_stats->frames_received = video_receiver_info.frames_received; | 442 video_track_stats->frames_received = video_receiver_info.frames_received; |
| 443 // TODO(hbos): When we support receiving simulcast, this should be the total |
| 444 // number of frames correctly decoded, independent of which SSRC it was |
| 445 // received from. Since we don't support that, this is correct and is the same |
| 446 // value as "RTCInboundRTPStreamStats.framesDecoded". crbug.com/659137 |
| 447 video_track_stats->frames_decoded = video_receiver_info.frames_decoded; |
443 return video_track_stats; | 448 return video_track_stats; |
444 } | 449 } |
445 | 450 |
446 void ProduceMediaStreamAndTrackStats( | 451 void ProduceMediaStreamAndTrackStats( |
447 int64_t timestamp_us, | 452 int64_t timestamp_us, |
448 const TrackMediaInfoMap& track_media_info_map, | 453 const TrackMediaInfoMap& track_media_info_map, |
449 rtc::scoped_refptr<StreamCollectionInterface> streams, | 454 rtc::scoped_refptr<StreamCollectionInterface> streams, |
450 bool is_local, | 455 bool is_local, |
451 RTCStatsReport* report) { | 456 RTCStatsReport* report) { |
452 // TODO(hbos): When "AddTrack" is implemented we should iterate tracks to | 457 // TODO(hbos): When "AddTrack" is implemented we should iterate tracks to |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 const std::string& type) { | 1218 const std::string& type) { |
1214 return CandidateTypeToRTCIceCandidateType(type); | 1219 return CandidateTypeToRTCIceCandidateType(type); |
1215 } | 1220 } |
1216 | 1221 |
1217 const char* DataStateToRTCDataChannelStateForTesting( | 1222 const char* DataStateToRTCDataChannelStateForTesting( |
1218 DataChannelInterface::DataState state) { | 1223 DataChannelInterface::DataState state) { |
1219 return DataStateToRTCDataChannelState(state); | 1224 return DataStateToRTCDataChannelState(state); |
1220 } | 1225 } |
1221 | 1226 |
1222 } // namespace webrtc | 1227 } // namespace webrtc |
OLD | NEW |