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

Side by Side Diff: webrtc/tools/agc/activity_metric.cc

Issue 2381013002: Sort #includes that got unsorted when gmock.h and gtest.h moved to webrtc/test/ (Closed)
Patch Set: rebase Created 4 years, 2 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/test/test_suite.cc ('k') | webrtc/tools/frame_editing/frame_editing_unittest.cc » ('j') | 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 #include <math.h> 12 #include <math.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include <algorithm> 16 #include <algorithm>
17 #include <memory> 17 #include <memory>
18 18
19 #include "gflags/gflags.h" 19 #include "gflags/gflags.h"
20 #include "webrtc/test/gtest.h"
21 #include "webrtc/modules/audio_processing/agc/agc.h" 20 #include "webrtc/modules/audio_processing/agc/agc.h"
22 #include "webrtc/modules/audio_processing/agc/loudness_histogram.h" 21 #include "webrtc/modules/audio_processing/agc/loudness_histogram.h"
23 #include "webrtc/modules/audio_processing/agc/utility.h" 22 #include "webrtc/modules/audio_processing/agc/utility.h"
24 #include "webrtc/modules/audio_processing/vad/vad_audio_proc.h"
25 #include "webrtc/modules/audio_processing/vad/common.h" 23 #include "webrtc/modules/audio_processing/vad/common.h"
26 #include "webrtc/modules/audio_processing/vad/pitch_based_vad.h" 24 #include "webrtc/modules/audio_processing/vad/pitch_based_vad.h"
27 #include "webrtc/modules/audio_processing/vad/standalone_vad.h" 25 #include "webrtc/modules/audio_processing/vad/standalone_vad.h"
26 #include "webrtc/modules/audio_processing/vad/vad_audio_proc.h"
28 #include "webrtc/modules/include/module_common_types.h" 27 #include "webrtc/modules/include/module_common_types.h"
28 #include "webrtc/test/gtest.h"
29 29
30 static const int kAgcAnalWindowSamples = 100; 30 static const int kAgcAnalWindowSamples = 100;
31 static const double kDefaultActivityThreshold = 0.3; 31 static const double kDefaultActivityThreshold = 0.3;
32 32
33 DEFINE_bool(standalone_vad, true, "enable stand-alone VAD"); 33 DEFINE_bool(standalone_vad, true, "enable stand-alone VAD");
34 DEFINE_string(true_vad, "", "name of a file containing true VAD in 'int'" 34 DEFINE_string(true_vad, "", "name of a file containing true VAD in 'int'"
35 " format"); 35 " format");
36 DEFINE_string(video_vad, "", "name of a file containing video VAD (activity" 36 DEFINE_string(video_vad, "", "name of a file containing video VAD (activity"
37 " probabilities) in double format. One activity per 10ms is" 37 " probabilities) in double format. One activity per 10ms is"
38 " required. If no file is given the video information is not" 38 " required. If no file is given the video information is not"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 " one probability per frame.\n" 376 " one probability per frame.\n"
377 "\nUsage:\n\n" 377 "\nUsage:\n\n"
378 "activity_metric input_pcm [options]\n" 378 "activity_metric input_pcm [options]\n"
379 "where 'input_pcm' is the input audio sampled at 16 kHz in 16 bits " 379 "where 'input_pcm' is the input audio sampled at 16 kHz in 16 bits "
380 "format.\n\n"; 380 "format.\n\n";
381 google::SetUsageMessage(kUsage); 381 google::SetUsageMessage(kUsage);
382 google::ParseCommandLineFlags(&argc, &argv, true); 382 google::ParseCommandLineFlags(&argc, &argv, true);
383 webrtc::void_main(argc, argv); 383 webrtc::void_main(argc, argv);
384 return 0; 384 return 0;
385 } 385 }
OLDNEW
« no previous file with comments | « webrtc/test/test_suite.cc ('k') | webrtc/tools/frame_editing/frame_editing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698