| 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 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedHeightInPixels", height); | 70 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedHeightInPixels", height); |
| 71 } | 71 } |
| 72 int sync_offset_ms = sync_offset_counter_.Avg(kMinRequiredSamples); | 72 int sync_offset_ms = sync_offset_counter_.Avg(kMinRequiredSamples); |
| 73 if (sync_offset_ms != -1) { | 73 if (sync_offset_ms != -1) { |
| 74 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.AVSyncOffsetInMs", sync_offset_ms); | 74 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.AVSyncOffsetInMs", sync_offset_ms); |
| 75 } | 75 } |
| 76 AggregatedStats freq_offset_stats = freq_offset_counter_.GetStats(); | 76 AggregatedStats freq_offset_stats = freq_offset_counter_.GetStats(); |
| 77 if (freq_offset_stats.num_samples > 0) { | 77 if (freq_offset_stats.num_samples > 0) { |
| 78 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.RtpToNtpFreqOffsetInKhz", | 78 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.RtpToNtpFreqOffsetInKhz", |
| 79 freq_offset_stats.average); | 79 freq_offset_stats.average); |
| 80 LOG(LS_INFO) << "WebRTC.Video.RtpToNtpFreqOffsetInKhz, " |
| 81 << freq_offset_stats.ToString(); |
| 80 } | 82 } |
| 81 | 83 |
| 82 int qp = qp_counters_.vp8.Avg(kMinRequiredSamples); | 84 int qp = qp_counters_.vp8.Avg(kMinRequiredSamples); |
| 83 if (qp != -1) | 85 if (qp != -1) |
| 84 RTC_HISTOGRAM_COUNTS_200("WebRTC.Video.Decoded.Vp8.Qp", qp); | 86 RTC_HISTOGRAM_COUNTS_200("WebRTC.Video.Decoded.Vp8.Qp", qp); |
| 85 | 87 |
| 86 // TODO(asapersson): DecoderTiming() is call periodically (each 1000ms) and | 88 // TODO(asapersson): DecoderTiming() is call periodically (each 1000ms) and |
| 87 // not per frame. Change decode time to include every frame. | 89 // not per frame. Change decode time to include every frame. |
| 88 const int kMinRequiredDecodeSamples = 5; | 90 const int kMinRequiredDecodeSamples = 5; |
| 89 int decode_ms = decode_time_counter_.Avg(kMinRequiredDecodeSamples); | 91 int decode_ms = decode_time_counter_.Avg(kMinRequiredDecodeSamples); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 ++num_samples; | 334 ++num_samples; |
| 333 } | 335 } |
| 334 | 336 |
| 335 int ReceiveStatisticsProxy::SampleCounter::Avg(int min_required_samples) const { | 337 int ReceiveStatisticsProxy::SampleCounter::Avg(int min_required_samples) const { |
| 336 if (num_samples < min_required_samples || num_samples == 0) | 338 if (num_samples < min_required_samples || num_samples == 0) |
| 337 return -1; | 339 return -1; |
| 338 return sum / num_samples; | 340 return sum / num_samples; |
| 339 } | 341 } |
| 340 | 342 |
| 341 } // namespace webrtc | 343 } // namespace webrtc |
| OLD | NEW |