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 // | 11 // |
12 // Command line tool for speech intelligibility enhancement. Provides for | 12 // Command line tool for speech intelligibility enhancement. Provides for |
13 // running and testing intelligibility_enhancer as an independent process. | 13 // running and testing intelligibility_enhancer as an independent process. |
14 // Use --help for options. | 14 // Use --help for options. |
15 // | 15 // |
16 | 16 |
17 #include <stdint.h> | 17 #include <stdint.h> |
18 #include <stdlib.h> | 18 #include <stdlib.h> |
19 #include <sys/stat.h> | 19 #include <sys/stat.h> |
20 #include <sys/types.h> | 20 #include <sys/types.h> |
21 #include <string> | 21 #include <string> |
22 | 22 |
23 #include "gflags/gflags.h" | 23 #include "gflags/gflags.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "webrtc/base/checks.h" | 25 #include "webrtc/base/checks.h" |
26 #include "webrtc/common_audio/real_fourier.h" | 26 #include "webrtc/common_audio/real_fourier.h" |
27 #include "webrtc/common_audio/wav_file.h" | 27 #include "webrtc/common_audio/wav_file.h" |
28 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_enhanc
er.h" | 28 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_enhanc
er.h" |
29 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
h" | 29 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
h" |
30 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 30 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
31 #include "webrtc/test/testsupport/fileutils.h" | 31 #include "webrtc/test/testsupport/fileutils.h" |
32 | 32 |
33 using std::complex; | 33 using std::complex; |
34 using webrtc::intelligibility::VarianceArray; | 34 using webrtc::intelligibility::VarianceArray; |
35 | 35 |
36 namespace webrtc { | 36 namespace webrtc { |
37 namespace { | 37 namespace { |
38 | 38 |
39 bool ValidateClearWindow(const char* flagname, int32_t value) { | 39 bool ValidateClearWindow(const char* flagname, int32_t value) { |
40 return value > 0; | 40 return value > 0; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 } // namespace | 146 } // namespace |
147 } // namespace webrtc | 147 } // namespace webrtc |
148 | 148 |
149 int main(int argc, char* argv[]) { | 149 int main(int argc, char* argv[]) { |
150 webrtc::void_main(argc, argv); | 150 webrtc::void_main(argc, argv); |
151 return 0; | 151 return 0; |
152 } | 152 } |
OLD | NEW |