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

Side by Side Diff: webrtc/video_send_stream.h

Issue 1502173002: Wire up bandwidth limitation info to GetStats and adapt_reason. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix test 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.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 struct Stats { 64 struct Stats {
65 int input_frame_rate = 0; 65 int input_frame_rate = 0;
66 int encode_frame_rate = 0; 66 int encode_frame_rate = 0;
67 int avg_encode_time_ms = 0; 67 int avg_encode_time_ms = 0;
68 int encode_usage_percent = 0; 68 int encode_usage_percent = 0;
69 int target_media_bitrate_bps = 0; 69 int target_media_bitrate_bps = 0;
70 int media_bitrate_bps = 0; 70 int media_bitrate_bps = 0;
71 bool suspended = false; 71 bool suspended = false;
72 bool bw_limited_resolution = false;
72 std::map<uint32_t, StreamStats> substreams; 73 std::map<uint32_t, StreamStats> substreams;
73 }; 74 };
74 75
75 struct Config { 76 struct Config {
76 Config() = delete; 77 Config() = delete;
77 explicit Config(Transport* send_transport) 78 explicit Config(Transport* send_transport)
78 : send_transport(send_transport) {} 79 : send_transport(send_transport) {}
79 80
80 std::string ToString() const; 81 std::string ToString() const;
81 82
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // in the config. Encoder settings are passed on to the encoder instance along 178 // in the config. Encoder settings are passed on to the encoder instance along
178 // with the VideoStream settings. 179 // with the VideoStream settings.
179 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; 180 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0;
180 181
181 virtual Stats GetStats() = 0; 182 virtual Stats GetStats() = 0;
182 }; 183 };
183 184
184 } // namespace webrtc 185 } // namespace webrtc
185 186
186 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ 187 #endif // WEBRTC_VIDEO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/send_statistics_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698