| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { | 245 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { |
| 246 ExtractCommonSendProperties(info, report); | 246 ExtractCommonSendProperties(info, report); |
| 247 | 247 |
| 248 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, | 248 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, |
| 249 info.encoder_implementation_name); | 249 info.encoder_implementation_name); |
| 250 report->AddBoolean(StatsReport::kStatsValueNameBandwidthLimitedResolution, | 250 report->AddBoolean(StatsReport::kStatsValueNameBandwidthLimitedResolution, |
| 251 (info.adapt_reason & 0x2) > 0); | 251 (info.adapt_reason & 0x2) > 0); |
| 252 report->AddBoolean(StatsReport::kStatsValueNameCpuLimitedResolution, | 252 report->AddBoolean(StatsReport::kStatsValueNameCpuLimitedResolution, |
| 253 (info.adapt_reason & 0x1) > 0); | 253 (info.adapt_reason & 0x1) > 0); |
| 254 report->AddBoolean(StatsReport::kStatsValueNameViewLimitedResolution, | |
| 255 (info.adapt_reason & 0x4) > 0); | |
| 256 if (info.qp_sum) | 254 if (info.qp_sum) |
| 257 report->AddInt(StatsReport::kStatsValueNameQpSum, *info.qp_sum); | 255 report->AddInt(StatsReport::kStatsValueNameQpSum, *info.qp_sum); |
| 258 | 256 |
| 259 const IntForAdd ints[] = { | 257 const IntForAdd ints[] = { |
| 260 { StatsReport::kStatsValueNameAdaptationChanges, info.adapt_changes }, | 258 { StatsReport::kStatsValueNameAdaptationChanges, info.adapt_changes }, |
| 261 { StatsReport::kStatsValueNameAvgEncodeMs, info.avg_encode_ms }, | 259 { StatsReport::kStatsValueNameAvgEncodeMs, info.avg_encode_ms }, |
| 262 { StatsReport::kStatsValueNameEncodeUsagePercent, | 260 { StatsReport::kStatsValueNameEncodeUsagePercent, |
| 263 info.encode_usage_percent }, | 261 info.encode_usage_percent }, |
| 264 { StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd }, | 262 { StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd }, |
| 265 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, | 263 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 StatsReport* report = entry.second; | 978 StatsReport* report = entry.second; |
| 981 report->set_timestamp(stats_gathering_started_); | 979 report->set_timestamp(stats_gathering_started_); |
| 982 } | 980 } |
| 983 } | 981 } |
| 984 | 982 |
| 985 void StatsCollector::ClearUpdateStatsCacheForTest() { | 983 void StatsCollector::ClearUpdateStatsCacheForTest() { |
| 986 stats_gathering_started_ = 0; | 984 stats_gathering_started_ = 0; |
| 987 } | 985 } |
| 988 | 986 |
| 989 } // namespace webrtc | 987 } // namespace webrtc |
| OLD | NEW |