| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 report->AddInt(i.name, i.value); | 265 report->AddInt(i.name, i.value); |
| 266 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); | 266 report->AddString(StatsReport::kStatsValueNameMediaType, "video"); |
| 267 | 267 |
| 268 if (info.timing_frame_info) { | 268 if (info.timing_frame_info) { |
| 269 report->AddString(StatsReport::kStatsValueNameTimingFrameInfo, | 269 report->AddString(StatsReport::kStatsValueNameTimingFrameInfo, |
| 270 info.timing_frame_info->ToString()); | 270 info.timing_frame_info->ToString()); |
| 271 } | 271 } |
| 272 | 272 |
| 273 report->AddInt64(StatsReport::kStatsValueNameInterframeDelayMaxMs, | 273 report->AddInt64(StatsReport::kStatsValueNameInterframeDelayMaxMs, |
| 274 info.interframe_delay_max_ms); | 274 info.interframe_delay_max_ms); |
| 275 |
| 276 report->AddString( |
| 277 StatsReport::kStatsValueNameContentType, |
| 278 webrtc::videocontenttypehelpers::ToString(info.content_type)); |
| 275 } | 279 } |
| 276 | 280 |
| 277 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { | 281 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { |
| 278 ExtractCommonSendProperties(info, report); | 282 ExtractCommonSendProperties(info, report); |
| 279 | 283 |
| 280 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, | 284 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, |
| 281 info.encoder_implementation_name); | 285 info.encoder_implementation_name); |
| 282 report->AddBoolean(StatsReport::kStatsValueNameBandwidthLimitedResolution, | 286 report->AddBoolean(StatsReport::kStatsValueNameBandwidthLimitedResolution, |
| 283 (info.adapt_reason & 0x2) > 0); | 287 (info.adapt_reason & 0x2) > 0); |
| 284 report->AddBoolean(StatsReport::kStatsValueNameCpuLimitedResolution, | 288 report->AddBoolean(StatsReport::kStatsValueNameCpuLimitedResolution, |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 StatsReport* report = entry.second; | 1030 StatsReport* report = entry.second; |
| 1027 report->set_timestamp(stats_gathering_started_); | 1031 report->set_timestamp(stats_gathering_started_); |
| 1028 } | 1032 } |
| 1029 } | 1033 } |
| 1030 | 1034 |
| 1031 void StatsCollector::ClearUpdateStatsCacheForTest() { | 1035 void StatsCollector::ClearUpdateStatsCacheForTest() { |
| 1032 stats_gathering_started_ = 0; | 1036 stats_gathering_started_ = 0; |
| 1033 } | 1037 } |
| 1034 | 1038 |
| 1035 } // namespace webrtc | 1039 } // namespace webrtc |
| OLD | NEW |