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

Side by Side Diff: webrtc/video_send_stream.h

Issue 1264693003: Add QP stats for sent video streams to StatsReport. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add unit tests Created 5 years 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/video/send_statistics_proxy_unittest.cc ('k') | no next file » | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int width = 0; 52 int width = 0;
53 int height = 0; 53 int height = 0;
54 // TODO(holmer): Move bitrate_bps out to the webrtc::Call layer. 54 // TODO(holmer): Move bitrate_bps out to the webrtc::Call layer.
55 int total_bitrate_bps = 0; 55 int total_bitrate_bps = 0;
56 int retransmit_bitrate_bps = 0; 56 int retransmit_bitrate_bps = 0;
57 int avg_delay_ms = 0; 57 int avg_delay_ms = 0;
58 int max_delay_ms = 0; 58 int max_delay_ms = 0;
59 StreamDataCounters rtp_stats; 59 StreamDataCounters rtp_stats;
60 RtcpPacketTypeCounter rtcp_packet_type_counts; 60 RtcpPacketTypeCounter rtcp_packet_type_counts;
61 RtcpStatistics rtcp_stats; 61 RtcpStatistics rtcp_stats;
62 int qp = -1; // Average codec quantizer value (range: 0-127 for VP8).
62 }; 63 };
63 64
64 struct Stats { 65 struct Stats {
65 int input_frame_rate = 0; 66 int input_frame_rate = 0;
66 int encode_frame_rate = 0; 67 int encode_frame_rate = 0;
67 int avg_encode_time_ms = 0; 68 int avg_encode_time_ms = 0;
68 int encode_usage_percent = 0; 69 int encode_usage_percent = 0;
69 int target_media_bitrate_bps = 0; 70 int target_media_bitrate_bps = 0;
70 int media_bitrate_bps = 0; 71 int media_bitrate_bps = 0;
71 bool suspended = false; 72 bool suspended = false;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // in the config. Encoder settings are passed on to the encoder instance along 175 // in the config. Encoder settings are passed on to the encoder instance along
175 // with the VideoStream settings. 176 // with the VideoStream settings.
176 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; 177 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0;
177 178
178 virtual Stats GetStats() = 0; 179 virtual Stats GetStats() = 0;
179 }; 180 };
180 181
181 } // namespace webrtc 182 } // namespace webrtc
182 183
183 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ 184 #endif // WEBRTC_VIDEO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/send_statistics_proxy_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698