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

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

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

Powered by Google App Engine
This is Rietveld 408576698