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

Side by Side Diff: webrtc/modules/audio_processing/beamformer/nonlinear_beamformer_test.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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
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 29 matching lines...) Expand all
40 int main(int argc, char* argv[]) { 40 int main(int argc, char* argv[]) {
41 google::SetUsageMessage(kUsage); 41 google::SetUsageMessage(kUsage);
42 google::ParseCommandLineFlags(&argc, &argv, true); 42 google::ParseCommandLineFlags(&argc, &argv, true);
43 43
44 WavReader in_file(FLAGS_i); 44 WavReader in_file(FLAGS_i);
45 WavWriter out_file(FLAGS_o, in_file.sample_rate(), 1); 45 WavWriter out_file(FLAGS_o, in_file.sample_rate(), 1);
46 46
47 const size_t num_mics = in_file.num_channels(); 47 const size_t num_mics = in_file.num_channels();
48 const std::vector<Point> array_geometry = 48 const std::vector<Point> array_geometry =
49 ParseArrayGeometry(FLAGS_mic_positions, num_mics); 49 ParseArrayGeometry(FLAGS_mic_positions, num_mics);
50 CHECK_EQ(array_geometry.size(), num_mics); 50 RTC_CHECK_EQ(array_geometry.size(), num_mics);
51 51
52 NonlinearBeamformer bf(array_geometry); 52 NonlinearBeamformer bf(array_geometry);
53 bf.Initialize(kChunkSizeMs, in_file.sample_rate()); 53 bf.Initialize(kChunkSizeMs, in_file.sample_rate());
54 54
55 printf("Input file: %s\nChannels: %d, Sample rate: %d Hz\n\n", 55 printf("Input file: %s\nChannels: %d, Sample rate: %d Hz\n\n",
56 FLAGS_i.c_str(), in_file.num_channels(), in_file.sample_rate()); 56 FLAGS_i.c_str(), in_file.num_channels(), in_file.sample_rate());
57 printf("Output file: %s\nChannels: %d, Sample rate: %d Hz\n\n", 57 printf("Output file: %s\nChannels: %d, Sample rate: %d Hz\n\n",
58 FLAGS_o.c_str(), out_file.num_channels(), out_file.sample_rate()); 58 FLAGS_o.c_str(), out_file.num_channels(), out_file.sample_rate());
59 59
60 ChannelBuffer<float> in_buf( 60 ChannelBuffer<float> in_buf(
(...skipping 19 matching lines...) Expand all
80 } 80 }
81 81
82 return 0; 82 return 0;
83 } 83 }
84 84
85 } // namespace webrtc 85 } // namespace webrtc
86 86
87 int main(int argc, char* argv[]) { 87 int main(int argc, char* argv[]) {
88 return webrtc::main(argc, argv); 88 return webrtc::main(argc, argv);
89 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698