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

Side by Side Diff: webrtc/modules/audio_processing/vad/voice_activity_detector.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 "webrtc/modules/audio_processing/vad/voice_activity_detector.h" 11 #include "webrtc/modules/audio_processing/vad/voice_activity_detector.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 14
15 #include "webrtc/rtc_base/checks.h" 15 #include "webrtc/base/checks.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 namespace { 18 namespace {
19 19
20 const size_t kMaxLength = 320; 20 const size_t kMaxLength = 320;
21 const size_t kNumChannels = 1; 21 const size_t kNumChannels = 1;
22 22
23 const double kDefaultVoiceValue = 1.0; 23 const double kDefaultVoiceValue = 1.0;
24 const double kNeutralProbability = 0.5; 24 const double kNeutralProbability = 0.5;
25 const double kLowProbability = 0.01; 25 const double kLowProbability = 0.01;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 0); 78 0);
79 RTC_CHECK_GE(pitch_based_vad_.VoicingProbability( 79 RTC_CHECK_GE(pitch_based_vad_.VoicingProbability(
80 features_, &chunkwise_voice_probabilities_[0]), 80 features_, &chunkwise_voice_probabilities_[0]),
81 0); 81 0);
82 } 82 }
83 last_voice_probability_ = chunkwise_voice_probabilities_.back(); 83 last_voice_probability_ = chunkwise_voice_probabilities_.back();
84 } 84 }
85 } 85 }
86 86
87 } // namespace webrtc 87 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/vad/vad_audio_proc.cc ('k') | webrtc/modules/audio_processing/voice_detection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698