OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 // Commandline tool to unpack audioproc debug files. | 11 // Commandline tool to unpack audioproc debug files. |
12 // | 12 // |
13 // The debug files are dumped as protobuf blobs. For analysis, it's necessary | 13 // The debug files are dumped as protobuf blobs. For analysis, it's necessary |
14 // to unpack the file into its component parts: audio and other data. | 14 // to unpack the file into its component parts: audio and other data. |
15 | 15 |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 | 17 |
18 #include <memory> | 18 #include <memory> |
19 | 19 |
20 #include "gflags/gflags.h" | 20 #include "gflags/gflags.h" |
| 21 #include "webrtc/base/format_macros.h" |
| 22 #include "webrtc/base/ignore_wundef.h" |
21 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" | 23 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" |
22 #include "webrtc/modules/audio_processing/test/test_utils.h" | 24 #include "webrtc/modules/audio_processing/test/test_utils.h" |
23 #include "webrtc/rtc_base/format_macros.h" | |
24 #include "webrtc/rtc_base/ignore_wundef.h" | |
25 #include "webrtc/typedefs.h" | 25 #include "webrtc/typedefs.h" |
26 | 26 |
27 RTC_PUSH_IGNORING_WUNDEF() | 27 RTC_PUSH_IGNORING_WUNDEF() |
28 #include "webrtc/modules/audio_processing/debug.pb.h" | 28 #include "webrtc/modules/audio_processing/debug.pb.h" |
29 RTC_POP_IGNORING_WUNDEF() | 29 RTC_POP_IGNORING_WUNDEF() |
30 | 30 |
31 // TODO(andrew): unpack more of the data. | 31 // TODO(andrew): unpack more of the data. |
32 DEFINE_string(input_file, "input", "The name of the input stream file."); | 32 DEFINE_string(input_file, "input", "The name of the input stream file."); |
33 DEFINE_string(output_file, "ref_out", | 33 DEFINE_string(output_file, "ref_out", |
34 "The name of the reference output stream file."); | 34 "The name of the reference output stream file."); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 | 328 |
329 return 0; | 329 return 0; |
330 } | 330 } |
331 | 331 |
332 } // namespace webrtc | 332 } // namespace webrtc |
333 | 333 |
334 int main(int argc, char* argv[]) { | 334 int main(int argc, char* argv[]) { |
335 return webrtc::do_main(argc, argv); | 335 return webrtc::do_main(argc, argv); |
336 } | 336 } |
OLD | NEW |