OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 |
11 #include "webrtc/video/stats_counter.h" | 11 #include "webrtc/video/stats_counter.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <limits> | 14 #include <limits> |
15 #include <map> | 15 #include <map> |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/rtc_base/checks.h" |
18 #include "webrtc/system_wrappers/include/clock.h" | 18 #include "webrtc/system_wrappers/include/clock.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 namespace { | 22 namespace { |
23 // Default periodic time interval for processing samples. | 23 // Default periodic time interval for processing samples. |
24 const int64_t kDefaultProcessIntervalMs = 2000; | 24 const int64_t kDefaultProcessIntervalMs = 2000; |
25 const uint32_t kStreamId0 = 0; | 25 const uint32_t kStreamId0 = 0; |
26 } // namespace | 26 } // namespace |
27 | 27 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 *metric = (diff * 1000 + process_intervals_ms_ / 2) / process_intervals_ms_; | 454 *metric = (diff * 1000 + process_intervals_ms_ / 2) / process_intervals_ms_; |
455 return true; | 455 return true; |
456 } | 456 } |
457 | 457 |
458 int RateAccCounter::GetValueForEmptyInterval() const { | 458 int RateAccCounter::GetValueForEmptyInterval() const { |
459 return 0; | 459 return 0; |
460 } | 460 } |
461 | 461 |
462 } // namespace webrtc | 462 } // namespace webrtc |
OLD | NEW |