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

Side by Side Diff: webrtc/video/video_send_stream.cc

Issue 2368223002: Add VideoSendStream::Stats::prefered_media_bitrate_bps (Closed)
Patch Set: Addressed nits Created 4 years, 2 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/video/send_statistics_proxy_unittest.cc ('k') | webrtc/video/vie_encoder.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) 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 #include "webrtc/video/video_send_stream.h" 10 #include "webrtc/video/video_send_stream.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 std::string VideoSendStream::Stats::ToString(int64_t time_ms) const { 157 std::string VideoSendStream::Stats::ToString(int64_t time_ms) const {
158 std::stringstream ss; 158 std::stringstream ss;
159 ss << "VideoSendStream stats: " << time_ms << ", {"; 159 ss << "VideoSendStream stats: " << time_ms << ", {";
160 ss << "input_fps: " << input_frame_rate << ", "; 160 ss << "input_fps: " << input_frame_rate << ", ";
161 ss << "encode_fps: " << encode_frame_rate << ", "; 161 ss << "encode_fps: " << encode_frame_rate << ", ";
162 ss << "encode_ms: " << avg_encode_time_ms << ", "; 162 ss << "encode_ms: " << avg_encode_time_ms << ", ";
163 ss << "encode_usage_perc: " << encode_usage_percent << ", "; 163 ss << "encode_usage_perc: " << encode_usage_percent << ", ";
164 ss << "target_bps: " << target_media_bitrate_bps << ", "; 164 ss << "target_bps: " << target_media_bitrate_bps << ", ";
165 ss << "media_bps: " << media_bitrate_bps << ", "; 165 ss << "media_bps: " << media_bitrate_bps << ", ";
166 ss << "preferred_media_bitrate_bps: " << preferred_media_bitrate_bps << ", ";
166 ss << "suspended: " << (suspended ? "true" : "false") << ", "; 167 ss << "suspended: " << (suspended ? "true" : "false") << ", ";
167 ss << "bw_adapted: " << (bw_limited_resolution ? "true" : "false"); 168 ss << "bw_adapted: " << (bw_limited_resolution ? "true" : "false");
168 ss << '}'; 169 ss << '}';
169 for (const auto& substream : substreams) { 170 for (const auto& substream : substreams) {
170 if (!substream.second.is_rtx) { 171 if (!substream.second.is_rtx) {
171 ss << " {ssrc: " << substream.first << ", "; 172 ss << " {ssrc: " << substream.first << ", ";
172 ss << substream.second.ToString(); 173 ss << substream.second.ToString();
173 ss << '}'; 174 ss << '}';
174 } 175 }
175 } 176 }
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 &module_nack_rate); 1108 &module_nack_rate);
1108 *sent_video_rate_bps += module_video_rate; 1109 *sent_video_rate_bps += module_video_rate;
1109 *sent_nack_rate_bps += module_nack_rate; 1110 *sent_nack_rate_bps += module_nack_rate;
1110 *sent_fec_rate_bps += module_fec_rate; 1111 *sent_fec_rate_bps += module_fec_rate;
1111 } 1112 }
1112 return 0; 1113 return 0;
1113 } 1114 }
1114 1115
1115 } // namespace internal 1116 } // namespace internal
1116 } // namespace webrtc 1117 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/send_statistics_proxy_unittest.cc ('k') | webrtc/video/vie_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698