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

Side by Side Diff: webrtc/common.h

Issue 1700703005: Boilerplate code addition in order to be able to test upcoming AEC additions (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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) 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 13 matching lines...) Expand all
24 kAlgo1CostFunctionForTest, 24 kAlgo1CostFunctionForTest,
25 kTemporalLayersFactory, 25 kTemporalLayersFactory,
26 kNetEqCapacityConfig, 26 kNetEqCapacityConfig,
27 kNetEqFastAccelerate, 27 kNetEqFastAccelerate,
28 kVoicePacing, 28 kVoicePacing,
29 kExtendedFilter, 29 kExtendedFilter,
30 kDelayAgnostic, 30 kDelayAgnostic,
31 kExperimentalAgc, 31 kExperimentalAgc,
32 kExperimentalNs, 32 kExperimentalNs,
33 kBeamforming, 33 kBeamforming,
34 kIntelligibility 34 kIntelligibility,
35 kNextGenerationAec
35 }; 36 };
36 37
37 // Class Config is designed to ease passing a set of options across webrtc code. 38 // Class Config is designed to ease passing a set of options across webrtc code.
38 // Options are identified by typename in order to avoid incorrect casts. 39 // Options are identified by typename in order to avoid incorrect casts.
39 // 40 //
40 // Usage: 41 // Usage:
41 // * declaring an option: 42 // * declaring an option:
42 // struct Algo1_CostFunction { 43 // struct Algo1_CostFunction {
43 // virtual float cost(int x) const { return x; } 44 // virtual float cost(int x) const { return x; }
44 // virtual ~Algo1_CostFunction() {} 45 // virtual ~Algo1_CostFunction() {}
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 template<typename T> 129 template<typename T>
129 void Config::Set(T* value) { 130 void Config::Set(T* value) {
130 BaseOption*& it = options_[identifier<T>()]; 131 BaseOption*& it = options_[identifier<T>()];
131 delete it; 132 delete it;
132 it = new Option<T>(value); 133 it = new Option<T>(value);
133 } 134 }
134 135
135 } // namespace webrtc 136 } // namespace webrtc
136 137
137 #endif // WEBRTC_COMMON_H_ 138 #endif // WEBRTC_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec/aec_core.h » ('j') | webrtc/modules/audio_processing/aec/aec_core.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698