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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine.cc

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: rebase Created 3 years, 5 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/media/engine/fakewebrtccall.cc ('k') | webrtc/modules/include/module_common_types.h » ('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 (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 info.frames_decoded = stats.frames_decoded; 2476 info.frames_decoded = stats.frames_decoded;
2477 info.frames_rendered = stats.frames_rendered; 2477 info.frames_rendered = stats.frames_rendered;
2478 info.qp_sum = stats.qp_sum; 2478 info.qp_sum = stats.qp_sum;
2479 2479
2480 info.codec_name = GetCodecNameFromPayloadType(stats.current_payload_type); 2480 info.codec_name = GetCodecNameFromPayloadType(stats.current_payload_type);
2481 2481
2482 info.firs_sent = stats.rtcp_packet_type_counts.fir_packets; 2482 info.firs_sent = stats.rtcp_packet_type_counts.fir_packets;
2483 info.plis_sent = stats.rtcp_packet_type_counts.pli_packets; 2483 info.plis_sent = stats.rtcp_packet_type_counts.pli_packets;
2484 info.nacks_sent = stats.rtcp_packet_type_counts.nack_packets; 2484 info.nacks_sent = stats.rtcp_packet_type_counts.nack_packets;
2485 2485
2486 info.timing_frame_info = stream_->GetAndResetTimingFrameInfo();
2487
2486 if (log_stats) 2488 if (log_stats)
2487 LOG(LS_INFO) << stats.ToString(rtc::TimeMillis()); 2489 LOG(LS_INFO) << stats.ToString(rtc::TimeMillis());
2488 2490
2489 return info; 2491 return info;
2490 } 2492 }
2491 2493
2492 WebRtcVideoChannel::VideoCodecSettings::VideoCodecSettings() 2494 WebRtcVideoChannel::VideoCodecSettings::VideoCodecSettings()
2493 : flexfec_payload_type(-1), rtx_payload_type(-1) {} 2495 : flexfec_payload_type(-1), rtx_payload_type(-1) {}
2494 2496
2495 bool WebRtcVideoChannel::VideoCodecSettings::operator==( 2497 bool WebRtcVideoChannel::VideoCodecSettings::operator==(
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - 2662 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() -
2661 1); 2663 1);
2662 } 2664 }
2663 2665
2664 std::vector<webrtc::VideoStream> streams; 2666 std::vector<webrtc::VideoStream> streams;
2665 streams.push_back(stream); 2667 streams.push_back(stream);
2666 return streams; 2668 return streams;
2667 } 2669 }
2668 2670
2669 } // namespace cricket 2671 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/modules/include/module_common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698