Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: webrtc/modules/video_coding/utility/moving_average.h

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address pbos' comments. More consistent init of refptr. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698