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

Side by Side Diff: webrtc/modules/audio_processing/test/audioproc_float.cc

Issue 2684983004: Added handling of 'agc_compression_gain' flag in audioproc_f. (Closed)
Patch Set: Added option for experimental_agc Created 3 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
« no previous file with comments | « webrtc/modules/audio_processing/test/audio_processing_simulator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 "Activate (1) or deactivate(0) the AEC extended filter mode"); 114 "Activate (1) or deactivate(0) the AEC extended filter mode");
115 DEFINE_int32(drift_compensation, 115 DEFINE_int32(drift_compensation,
116 kParameterNotSpecifiedValue, 116 kParameterNotSpecifiedValue,
117 "Activate (1) or deactivate(0) the drift compensation"); 117 "Activate (1) or deactivate(0) the drift compensation");
118 DEFINE_int32(aec3, 118 DEFINE_int32(aec3,
119 kParameterNotSpecifiedValue, 119 kParameterNotSpecifiedValue,
120 "Activate (1) or deactivate(0) the experimental AEC mode AEC3"); 120 "Activate (1) or deactivate(0) the experimental AEC mode AEC3");
121 DEFINE_int32(lc, 121 DEFINE_int32(lc,
122 kParameterNotSpecifiedValue, 122 kParameterNotSpecifiedValue,
123 "Activate (1) or deactivate(0) the level control"); 123 "Activate (1) or deactivate(0) the level control");
124 DEFINE_int32(experimental_agc,
125 kParameterNotSpecifiedValue,
126 "Activate (1) or deactivate(0) the experimental AGC");
124 DEFINE_int32( 127 DEFINE_int32(
125 refined_adaptive_filter, 128 refined_adaptive_filter,
126 kParameterNotSpecifiedValue, 129 kParameterNotSpecifiedValue,
127 "Activate (1) or deactivate(0) the refined adaptive filter functionality"); 130 "Activate (1) or deactivate(0) the refined adaptive filter functionality");
128 DEFINE_int32(aecm_routing_mode, 131 DEFINE_int32(aecm_routing_mode,
129 kParameterNotSpecifiedValue, 132 kParameterNotSpecifiedValue,
130 "Specify the AECM routing mode (0-4)"); 133 "Specify the AECM routing mode (0-4)");
131 DEFINE_int32(aecm_comfort_noise, 134 DEFINE_int32(aecm_comfort_noise,
132 kParameterNotSpecifiedValue, 135 kParameterNotSpecifiedValue,
133 "Activate (1) or deactivate(0) the AECM comfort noise"); 136 "Activate (1) or deactivate(0) the AECM comfort noise");
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 &settings.aec_suppression_level); 241 &settings.aec_suppression_level);
239 SetSettingIfFlagSet(FLAGS_delay_agnostic, &settings.use_delay_agnostic); 242 SetSettingIfFlagSet(FLAGS_delay_agnostic, &settings.use_delay_agnostic);
240 SetSettingIfFlagSet(FLAGS_extended_filter, &settings.use_extended_filter); 243 SetSettingIfFlagSet(FLAGS_extended_filter, &settings.use_extended_filter);
241 SetSettingIfFlagSet(FLAGS_drift_compensation, 244 SetSettingIfFlagSet(FLAGS_drift_compensation,
242 &settings.use_drift_compensation); 245 &settings.use_drift_compensation);
243 SetSettingIfFlagSet(FLAGS_refined_adaptive_filter, 246 SetSettingIfFlagSet(FLAGS_refined_adaptive_filter,
244 &settings.use_refined_adaptive_filter); 247 &settings.use_refined_adaptive_filter);
245 248
246 SetSettingIfFlagSet(FLAGS_aec3, &settings.use_aec3); 249 SetSettingIfFlagSet(FLAGS_aec3, &settings.use_aec3);
247 SetSettingIfFlagSet(FLAGS_lc, &settings.use_lc); 250 SetSettingIfFlagSet(FLAGS_lc, &settings.use_lc);
251 SetSettingIfFlagSet(FLAGS_experimental_agc, &settings.use_experimental_agc);
248 SetSettingIfSpecified(FLAGS_aecm_routing_mode, &settings.aecm_routing_mode); 252 SetSettingIfSpecified(FLAGS_aecm_routing_mode, &settings.aecm_routing_mode);
249 SetSettingIfFlagSet(FLAGS_aecm_comfort_noise, 253 SetSettingIfFlagSet(FLAGS_aecm_comfort_noise,
250 &settings.use_aecm_comfort_noise); 254 &settings.use_aecm_comfort_noise);
251 SetSettingIfSpecified(FLAGS_agc_mode, &settings.agc_mode); 255 SetSettingIfSpecified(FLAGS_agc_mode, &settings.agc_mode);
252 SetSettingIfSpecified(FLAGS_agc_target_level, &settings.agc_target_level); 256 SetSettingIfSpecified(FLAGS_agc_target_level, &settings.agc_target_level);
253 SetSettingIfFlagSet(FLAGS_agc_limiter, &settings.use_agc_limiter); 257 SetSettingIfFlagSet(FLAGS_agc_limiter, &settings.use_agc_limiter);
254 SetSettingIfSpecified(FLAGS_agc_compression_gain, 258 SetSettingIfSpecified(FLAGS_agc_compression_gain,
255 &settings.agc_compression_gain); 259 &settings.agc_compression_gain);
256 SetSettingIfSpecified(FLAGS_vad_likelihood, &settings.vad_likelihood); 260 SetSettingIfSpecified(FLAGS_vad_likelihood, &settings.vad_likelihood);
257 SetSettingIfSpecified(FLAGS_ns_level, &settings.ns_level); 261 SetSettingIfSpecified(FLAGS_ns_level, &settings.ns_level);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 458
455 return 0; 459 return 0;
456 } 460 }
457 461
458 } // namespace test 462 } // namespace test
459 } // namespace webrtc 463 } // namespace webrtc
460 464
461 int main(int argc, char* argv[]) { 465 int main(int argc, char* argv[]) {
462 return webrtc::test::main(argc, argv); 466 return webrtc::test::main(argc, argv);
463 } 467 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/audio_processing_simulator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698