OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ |
13 | 13 |
14 #include <stddef.h> | |
perkj_webrtc
2016/06/10 09:01:24
why this now? git cl lint?
nisse-webrtc
2016/06/10 11:36:57
I got a compilation error from one of the bots (po
| |
15 | |
14 #include <list> | 16 #include <list> |
15 | 17 |
16 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
17 | 19 |
18 namespace webrtc { | 20 namespace webrtc { |
19 template <class T> | 21 template <class T> |
20 class MovingAverage { | 22 class MovingAverage { |
21 public: | 23 public: |
22 MovingAverage(); | 24 MovingAverage(); |
23 void AddSample(T sample); | 25 void AddSample(T sample); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 } | 64 } |
63 | 65 |
64 template <class T> | 66 template <class T> |
65 int MovingAverage<T>::size() { | 67 int MovingAverage<T>::size() { |
66 return samples_.size(); | 68 return samples_.size(); |
67 } | 69 } |
68 | 70 |
69 } // namespace webrtc | 71 } // namespace webrtc |
70 | 72 |
71 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ | 73 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_MOVING_AVERAGE_H_ |
OLD | NEW |