| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |