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 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 info.framerate_input = stats.input_frame_rate; | 1969 info.framerate_input = stats.input_frame_rate; |
1970 info.framerate_sent = stats.encode_frame_rate; | 1970 info.framerate_sent = stats.encode_frame_rate; |
1971 info.avg_encode_ms = stats.avg_encode_time_ms; | 1971 info.avg_encode_ms = stats.avg_encode_time_ms; |
1972 info.encode_usage_percent = stats.encode_usage_percent; | 1972 info.encode_usage_percent = stats.encode_usage_percent; |
1973 info.frames_encoded = stats.frames_encoded; | 1973 info.frames_encoded = stats.frames_encoded; |
1974 info.qp_sum = stats.qp_sum; | 1974 info.qp_sum = stats.qp_sum; |
1975 | 1975 |
1976 info.nominal_bitrate = stats.media_bitrate_bps; | 1976 info.nominal_bitrate = stats.media_bitrate_bps; |
1977 info.preferred_bitrate = stats.preferred_media_bitrate_bps; | 1977 info.preferred_bitrate = stats.preferred_media_bitrate_bps; |
1978 | 1978 |
| 1979 info.content_type = stats.content_type; |
| 1980 |
1979 info.send_frame_width = 0; | 1981 info.send_frame_width = 0; |
1980 info.send_frame_height = 0; | 1982 info.send_frame_height = 0; |
1981 for (std::map<uint32_t, webrtc::VideoSendStream::StreamStats>::iterator it = | 1983 for (std::map<uint32_t, webrtc::VideoSendStream::StreamStats>::iterator it = |
1982 stats.substreams.begin(); | 1984 stats.substreams.begin(); |
1983 it != stats.substreams.end(); ++it) { | 1985 it != stats.substreams.end(); ++it) { |
1984 // TODO(pbos): Wire up additional stats, such as padding bytes. | 1986 // TODO(pbos): Wire up additional stats, such as padding bytes. |
1985 webrtc::VideoSendStream::StreamStats stream_stats = it->second; | 1987 webrtc::VideoSendStream::StreamStats stream_stats = it->second; |
1986 info.bytes_sent += stream_stats.rtp_stats.transmitted.payload_bytes + | 1988 info.bytes_sent += stream_stats.rtp_stats.transmitted.payload_bytes + |
1987 stream_stats.rtp_stats.transmitted.header_bytes + | 1989 stream_stats.rtp_stats.transmitted.header_bytes + |
1988 stream_stats.rtp_stats.transmitted.padding_bytes; | 1990 stream_stats.rtp_stats.transmitted.padding_bytes; |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2605 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - | 2607 stream.temporal_layer_thresholds_bps.resize(GetDefaultVp9TemporalLayers() - |
2606 1); | 2608 1); |
2607 } | 2609 } |
2608 | 2610 |
2609 std::vector<webrtc::VideoStream> streams; | 2611 std::vector<webrtc::VideoStream> streams; |
2610 streams.push_back(stream); | 2612 streams.push_back(stream); |
2611 return streams; | 2613 return streams; |
2612 } | 2614 } |
2613 | 2615 |
2614 } // namespace cricket | 2616 } // namespace cricket |
OLD | NEW |