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

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

Issue 2368223002: Add VideoSendStream::Stats::prefered_media_bitrate_bps (Closed)
Patch Set: Use SimulcastRateAllocator 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
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 std::string VideoSendStream::Stats::ToString(int64_t time_ms) const { 155 std::string VideoSendStream::Stats::ToString(int64_t time_ms) const {
156 std::stringstream ss; 156 std::stringstream ss;
157 ss << "VideoSendStream stats: " << time_ms << ", {"; 157 ss << "VideoSendStream stats: " << time_ms << ", {";
158 ss << "input_fps: " << input_frame_rate << ", "; 158 ss << "input_fps: " << input_frame_rate << ", ";
159 ss << "encode_fps: " << encode_frame_rate << ", "; 159 ss << "encode_fps: " << encode_frame_rate << ", ";
160 ss << "encode_ms: " << avg_encode_time_ms << ", "; 160 ss << "encode_ms: " << avg_encode_time_ms << ", ";
161 ss << "encode_usage_perc: " << encode_usage_percent << ", "; 161 ss << "encode_usage_perc: " << encode_usage_percent << ", ";
162 ss << "target_bps: " << target_media_bitrate_bps << ", "; 162 ss << "target_bps: " << target_media_bitrate_bps << ", ";
163 ss << "media_bps: " << media_bitrate_bps << ", "; 163 ss << "media_bps: " << media_bitrate_bps << ", ";
164 ss << "preferred_media_bitrate_bps: " << preferred_media_bitrate_bps << ", ";
164 ss << "suspended: " << (suspended ? "true" : "false") << ", "; 165 ss << "suspended: " << (suspended ? "true" : "false") << ", ";
165 ss << "bw_adapted: " << (bw_limited_resolution ? "true" : "false"); 166 ss << "bw_adapted: " << (bw_limited_resolution ? "true" : "false");
166 ss << '}'; 167 ss << '}';
167 for (const auto& substream : substreams) { 168 for (const auto& substream : substreams) {
168 if (!substream.second.is_rtx) { 169 if (!substream.second.is_rtx) {
169 ss << " {ssrc: " << substream.first << ", "; 170 ss << " {ssrc: " << substream.first << ", ";
170 ss << substream.second.ToString(); 171 ss << substream.second.ToString();
171 ss << '}'; 172 ss << '}';
172 } 173 }
173 } 174 }
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 &module_nack_rate); 1085 &module_nack_rate);
1085 *sent_video_rate_bps += module_video_rate; 1086 *sent_video_rate_bps += module_video_rate;
1086 *sent_nack_rate_bps += module_nack_rate; 1087 *sent_nack_rate_bps += module_nack_rate;
1087 *sent_fec_rate_bps += module_fec_rate; 1088 *sent_fec_rate_bps += module_fec_rate;
1088 } 1089 }
1089 return 0; 1090 return 0;
1090 } 1091 }
1091 1092
1092 } // namespace internal 1093 } // namespace internal
1093 } // namespace webrtc 1094 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698