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

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

Issue 2848593002: AGC2 as a new APM sub-module operating with hard-coded gain. (Closed)
Patch Set: unneeded DCHECK removed Created 3 years, 7 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 DEFINE_int32(aecm, 71 DEFINE_int32(aecm,
72 kParameterNotSpecifiedValue, 72 kParameterNotSpecifiedValue,
73 "Activate (1) or deactivate(0) the mobile echo controller"); 73 "Activate (1) or deactivate(0) the mobile echo controller");
74 DEFINE_int32(ed, 74 DEFINE_int32(ed,
75 kParameterNotSpecifiedValue, 75 kParameterNotSpecifiedValue,
76 "Activate (1) or deactivate (0) the residual echo detector"); 76 "Activate (1) or deactivate (0) the residual echo detector");
77 DEFINE_string(ed_graph, "", "Output filename for graph of echo likelihood"); 77 DEFINE_string(ed_graph, "", "Output filename for graph of echo likelihood");
78 DEFINE_int32(agc, 78 DEFINE_int32(agc,
79 kParameterNotSpecifiedValue, 79 kParameterNotSpecifiedValue,
80 "Activate (1) or deactivate(0) the AGC"); 80 "Activate (1) or deactivate(0) the AGC");
81 DEFINE_int32(agc2,
82 kParameterNotSpecifiedValue,
83 "Activate (1) or deactivate(0) the AGC2");
81 DEFINE_int32(hpf, 84 DEFINE_int32(hpf,
82 kParameterNotSpecifiedValue, 85 kParameterNotSpecifiedValue,
83 "Activate (1) or deactivate(0) the high-pass filter"); 86 "Activate (1) or deactivate(0) the high-pass filter");
84 DEFINE_int32(ns, 87 DEFINE_int32(ns,
85 kParameterNotSpecifiedValue, 88 kParameterNotSpecifiedValue,
86 "Activate (1) or deactivate(0) the noise suppressor"); 89 "Activate (1) or deactivate(0) the noise suppressor");
87 DEFINE_int32(ts, 90 DEFINE_int32(ts,
88 kParameterNotSpecifiedValue, 91 kParameterNotSpecifiedValue,
89 "Activate (1) or deactivate(0) the transient suppressor"); 92 "Activate (1) or deactivate(0) the transient suppressor");
90 DEFINE_int32(bf, 93 DEFINE_int32(bf,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 &settings.output_sample_rate_hz); 226 &settings.output_sample_rate_hz);
224 SetSettingIfSpecified(FLAGS_reverse_output_sample_rate_hz, 227 SetSettingIfSpecified(FLAGS_reverse_output_sample_rate_hz,
225 &settings.reverse_output_sample_rate_hz); 228 &settings.reverse_output_sample_rate_hz);
226 SetSettingIfSpecified(FLAGS_mic_positions, &settings.microphone_positions); 229 SetSettingIfSpecified(FLAGS_mic_positions, &settings.microphone_positions);
227 settings.target_angle_degrees = FLAGS_target_angle_degrees; 230 settings.target_angle_degrees = FLAGS_target_angle_degrees;
228 SetSettingIfFlagSet(FLAGS_aec, &settings.use_aec); 231 SetSettingIfFlagSet(FLAGS_aec, &settings.use_aec);
229 SetSettingIfFlagSet(FLAGS_aecm, &settings.use_aecm); 232 SetSettingIfFlagSet(FLAGS_aecm, &settings.use_aecm);
230 SetSettingIfFlagSet(FLAGS_ed, &settings.use_ed); 233 SetSettingIfFlagSet(FLAGS_ed, &settings.use_ed);
231 SetSettingIfSpecified(FLAGS_ed_graph, &settings.ed_graph_output_filename); 234 SetSettingIfSpecified(FLAGS_ed_graph, &settings.ed_graph_output_filename);
232 SetSettingIfFlagSet(FLAGS_agc, &settings.use_agc); 235 SetSettingIfFlagSet(FLAGS_agc, &settings.use_agc);
236 SetSettingIfFlagSet(FLAGS_agc2, &settings.use_agc2);
233 SetSettingIfFlagSet(FLAGS_hpf, &settings.use_hpf); 237 SetSettingIfFlagSet(FLAGS_hpf, &settings.use_hpf);
234 SetSettingIfFlagSet(FLAGS_ns, &settings.use_ns); 238 SetSettingIfFlagSet(FLAGS_ns, &settings.use_ns);
235 SetSettingIfFlagSet(FLAGS_ts, &settings.use_ts); 239 SetSettingIfFlagSet(FLAGS_ts, &settings.use_ts);
236 SetSettingIfFlagSet(FLAGS_bf, &settings.use_bf); 240 SetSettingIfFlagSet(FLAGS_bf, &settings.use_bf);
237 SetSettingIfFlagSet(FLAGS_ie, &settings.use_ie); 241 SetSettingIfFlagSet(FLAGS_ie, &settings.use_ie);
238 SetSettingIfFlagSet(FLAGS_vad, &settings.use_vad); 242 SetSettingIfFlagSet(FLAGS_vad, &settings.use_vad);
239 SetSettingIfFlagSet(FLAGS_le, &settings.use_le); 243 SetSettingIfFlagSet(FLAGS_le, &settings.use_le);
240 SetSettingIfSpecified(FLAGS_aec_suppression_level, 244 SetSettingIfSpecified(FLAGS_aec_suppression_level,
241 &settings.aec_suppression_level); 245 &settings.aec_suppression_level);
242 SetSettingIfFlagSet(FLAGS_delay_agnostic, &settings.use_delay_agnostic); 246 SetSettingIfFlagSet(FLAGS_delay_agnostic, &settings.use_delay_agnostic);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 462
459 return 0; 463 return 0;
460 } 464 }
461 465
462 } // namespace test 466 } // namespace test
463 } // namespace webrtc 467 } // namespace webrtc
464 468
465 int main(int argc, char* argv[]) { 469 int main(int argc, char* argv[]) {
466 return webrtc::test::main(argc, argv); 470 return webrtc::test::main(argc, argv);
467 } 471 }
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