OLD | NEW |
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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <sstream> | 12 #include <sstream> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "gflags/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/common_audio/channel_buffer.h" | 18 #include "webrtc/common_audio/channel_buffer.h" |
19 #include "webrtc/common_audio/wav_file.h" | 19 #include "webrtc/common_audio/wav_file.h" |
20 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 20 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
21 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" | 21 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" |
22 #include "webrtc/modules/audio_processing/test/test_utils.h" | 22 #include "webrtc/modules/audio_processing/test/test_utils.h" |
23 #include "webrtc/system_wrappers/interface/tick_util.h" | 23 #include "webrtc/system_wrappers/include/tick_util.h" |
24 #include "webrtc/test/testsupport/trace_to_stderr.h" | 24 #include "webrtc/test/testsupport/trace_to_stderr.h" |
25 | 25 |
26 DEFINE_string(dump, "", "The name of the debug dump file to read from."); | 26 DEFINE_string(dump, "", "The name of the debug dump file to read from."); |
27 DEFINE_string(i, "", "The name of the input file to read from."); | 27 DEFINE_string(i, "", "The name of the input file to read from."); |
28 DEFINE_string(i_rev, "", "The name of the reverse input file to read from."); | 28 DEFINE_string(i_rev, "", "The name of the reverse input file to read from."); |
29 DEFINE_string(o, "out.wav", "Name of the output file to write to."); | 29 DEFINE_string(o, "out.wav", "Name of the output file to write to."); |
30 DEFINE_string(o_rev, | 30 DEFINE_string(o_rev, |
31 "out_rev.wav", | 31 "out_rev.wav", |
32 "Name of the reverse output file to write to."); | 32 "Name of the reverse output file to write to."); |
33 DEFINE_int32(out_channels, 0, "Number of output channels. Defaults to input."); | 33 DEFINE_int32(out_channels, 0, "Number of output channels. Defaults to input."); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 execution_time_ms * 1.f / num_chunks); | 233 execution_time_ms * 1.f / num_chunks); |
234 } | 234 } |
235 return 0; | 235 return 0; |
236 } | 236 } |
237 | 237 |
238 } // namespace webrtc | 238 } // namespace webrtc |
239 | 239 |
240 int main(int argc, char* argv[]) { | 240 int main(int argc, char* argv[]) { |
241 return webrtc::main(argc, argv); | 241 return webrtc::main(argc, argv); |
242 } | 242 } |
OLD | NEW |