OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 2152 matching lines...) Loading... |
2163 if (stats.bw_limited_resolution) | 2163 if (stats.bw_limited_resolution) |
2164 info.adapt_reason |= ADAPTREASON_BANDWIDTH; | 2164 info.adapt_reason |= ADAPTREASON_BANDWIDTH; |
2165 | 2165 |
2166 info.encoder_implementation_name = stats.encoder_implementation_name; | 2166 info.encoder_implementation_name = stats.encoder_implementation_name; |
2167 info.ssrc_groups = ssrc_groups_; | 2167 info.ssrc_groups = ssrc_groups_; |
2168 info.framerate_input = stats.input_frame_rate; | 2168 info.framerate_input = stats.input_frame_rate; |
2169 info.framerate_sent = stats.encode_frame_rate; | 2169 info.framerate_sent = stats.encode_frame_rate; |
2170 info.avg_encode_ms = stats.avg_encode_time_ms; | 2170 info.avg_encode_ms = stats.avg_encode_time_ms; |
2171 info.encode_usage_percent = stats.encode_usage_percent; | 2171 info.encode_usage_percent = stats.encode_usage_percent; |
2172 info.frames_encoded = stats.frames_encoded; | 2172 info.frames_encoded = stats.frames_encoded; |
| 2173 info.qp_sum = stats.qp_sum; |
2173 | 2174 |
2174 info.nominal_bitrate = stats.media_bitrate_bps; | 2175 info.nominal_bitrate = stats.media_bitrate_bps; |
2175 info.preferred_bitrate = stats.preferred_media_bitrate_bps; | 2176 info.preferred_bitrate = stats.preferred_media_bitrate_bps; |
2176 | 2177 |
2177 info.send_frame_width = 0; | 2178 info.send_frame_width = 0; |
2178 info.send_frame_height = 0; | 2179 info.send_frame_height = 0; |
2179 for (std::map<uint32_t, webrtc::VideoSendStream::StreamStats>::iterator it = | 2180 for (std::map<uint32_t, webrtc::VideoSendStream::StreamStats>::iterator it = |
2180 stats.substreams.begin(); | 2181 stats.substreams.begin(); |
2181 it != stats.substreams.end(); ++it) { | 2182 it != stats.substreams.end(); ++it) { |
2182 // TODO(pbos): Wire up additional stats, such as padding bytes. | 2183 // TODO(pbos): Wire up additional stats, such as padding bytes. |
(...skipping 515 matching lines...) Loading... |
2698 rtx_mapping[video_codecs[i].codec.id] != | 2699 rtx_mapping[video_codecs[i].codec.id] != |
2699 ulpfec_config.red_payload_type) { | 2700 ulpfec_config.red_payload_type) { |
2700 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2701 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2701 } | 2702 } |
2702 } | 2703 } |
2703 | 2704 |
2704 return video_codecs; | 2705 return video_codecs; |
2705 } | 2706 } |
2706 | 2707 |
2707 } // namespace cricket | 2708 } // namespace cricket |
OLD | NEW |