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

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

Issue 3009793002: Implement googContentType GetStats metric reported on receive side. (Closed)
Patch Set: Fix ce Created 3 years, 3 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 (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 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 info.min_playout_delay_ms = stats.min_playout_delay_ms; 2457 info.min_playout_delay_ms = stats.min_playout_delay_ms;
2458 info.render_delay_ms = stats.render_delay_ms; 2458 info.render_delay_ms = stats.render_delay_ms;
2459 info.frames_received = stats.frame_counts.key_frames + 2459 info.frames_received = stats.frame_counts.key_frames +
2460 stats.frame_counts.delta_frames; 2460 stats.frame_counts.delta_frames;
2461 info.frames_decoded = stats.frames_decoded; 2461 info.frames_decoded = stats.frames_decoded;
2462 info.frames_rendered = stats.frames_rendered; 2462 info.frames_rendered = stats.frames_rendered;
2463 info.qp_sum = stats.qp_sum; 2463 info.qp_sum = stats.qp_sum;
2464 2464
2465 info.interframe_delay_max_ms = stats.interframe_delay_max_ms; 2465 info.interframe_delay_max_ms = stats.interframe_delay_max_ms;
2466 2466
2467 info.content_type = stats.content_type;
2468
2467 info.codec_name = GetCodecNameFromPayloadType(stats.current_payload_type); 2469 info.codec_name = GetCodecNameFromPayloadType(stats.current_payload_type);
2468 2470
2469 info.firs_sent = stats.rtcp_packet_type_counts.fir_packets; 2471 info.firs_sent = stats.rtcp_packet_type_counts.fir_packets;
2470 info.plis_sent = stats.rtcp_packet_type_counts.pli_packets; 2472 info.plis_sent = stats.rtcp_packet_type_counts.pli_packets;
2471 info.nacks_sent = stats.rtcp_packet_type_counts.nack_packets; 2473 info.nacks_sent = stats.rtcp_packet_type_counts.nack_packets;
2472 2474
2473 info.timing_frame_info = stream_->GetAndResetTimingFrameInfo(); 2475 info.timing_frame_info = stream_->GetAndResetTimingFrameInfo();
2474 2476
2475 if (log_stats) 2477 if (log_stats)
2476 LOG(LS_INFO) << stats.ToString(rtc::TimeMillis()); 2478 LOG(LS_INFO) << stats.ToString(rtc::TimeMillis());
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - 2651 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() -
2650 1); 2652 1);
2651 } 2653 }
2652 2654
2653 std::vector<webrtc::VideoStream> streams; 2655 std::vector<webrtc::VideoStream> streams;
2654 streams.push_back(stream); 2656 streams.push_back(stream);
2655 return streams; 2657 return streams;
2656 } 2658 }
2657 2659
2658 } // namespace cricket 2660 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698