| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 int width = render_width_counter_.Avg(kMinRequiredSamples); | 57 int width = render_width_counter_.Avg(kMinRequiredSamples); |
| 58 int height = render_height_counter_.Avg(kMinRequiredSamples); | 58 int height = render_height_counter_.Avg(kMinRequiredSamples); |
| 59 if (width != -1) { | 59 if (width != -1) { |
| 60 RTC_LOGGED_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedWidthInPixels", | 60 RTC_LOGGED_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedWidthInPixels", |
| 61 width); | 61 width); |
| 62 RTC_LOGGED_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedHeightInPixels", | 62 RTC_LOGGED_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedHeightInPixels", |
| 63 height); | 63 height); |
| 64 } | 64 } |
| 65 int sync_offset_ms = sync_offset_counter_.Avg(kMinRequiredSamples); | 65 int sync_offset_ms = sync_offset_counter_.Avg(kMinRequiredSamples); |
| 66 if (sync_offset_ms != -1) | 66 if (sync_offset_ms != -1) { |
| 67 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.AVSyncOffsetInMs", sync_offset_ms); | 67 RTC_LOGGED_HISTOGRAM_COUNTS_10000("WebRTC.Video.AVSyncOffsetInMs", |
| 68 sync_offset_ms); |
| 69 } |
| 68 | 70 |
| 69 int qp = qp_counters_.vp8.Avg(kMinRequiredSamples); | 71 int qp = qp_counters_.vp8.Avg(kMinRequiredSamples); |
| 70 if (qp != -1) | 72 if (qp != -1) |
| 71 RTC_LOGGED_HISTOGRAM_COUNTS_200("WebRTC.Video.Decoded.Vp8.Qp", qp); | 73 RTC_LOGGED_HISTOGRAM_COUNTS_200("WebRTC.Video.Decoded.Vp8.Qp", qp); |
| 72 | 74 |
| 73 // TODO(asapersson): DecoderTiming() is call periodically (each 1000ms) and | 75 // TODO(asapersson): DecoderTiming() is call periodically (each 1000ms) and |
| 74 // not per frame. Change decode time to include every frame. | 76 // not per frame. Change decode time to include every frame. |
| 75 const int kMinRequiredDecodeSamples = 5; | 77 const int kMinRequiredDecodeSamples = 5; |
| 76 int decode_ms = decode_time_counter_.Avg(kMinRequiredDecodeSamples); | 78 int decode_ms = decode_time_counter_.Avg(kMinRequiredDecodeSamples); |
| 77 if (decode_ms != -1) | 79 if (decode_ms != -1) |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 ++num_samples; | 301 ++num_samples; |
| 300 } | 302 } |
| 301 | 303 |
| 302 int ReceiveStatisticsProxy::SampleCounter::Avg(int min_required_samples) const { | 304 int ReceiveStatisticsProxy::SampleCounter::Avg(int min_required_samples) const { |
| 303 if (num_samples < min_required_samples || num_samples == 0) | 305 if (num_samples < min_required_samples || num_samples == 0) |
| 304 return -1; | 306 return -1; |
| 305 return sum / num_samples; | 307 return sum / num_samples; |
| 306 } | 308 } |
| 307 | 309 |
| 308 } // namespace webrtc | 310 } // namespace webrtc |
| OLD | NEW |