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

Side by Side Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.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) 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 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_enhanc er.h" 11 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_enhanc er.h"
12 12
13 #include <math.h> 13 #include <math.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <algorithm> 15 #include <algorithm>
16 #include <limits> 16 #include <limits>
17 #include <numeric> 17 #include <numeric>
18 18
19 #include "webrtc/base/checks.h"
20 #include "webrtc/base/logging.h"
21 #include "webrtc/base/safe_minmax.h"
19 #include "webrtc/common_audio/include/audio_util.h" 22 #include "webrtc/common_audio/include/audio_util.h"
20 #include "webrtc/common_audio/window_generator.h" 23 #include "webrtc/common_audio/window_generator.h"
21 #include "webrtc/rtc_base/checks.h"
22 #include "webrtc/rtc_base/logging.h"
23 #include "webrtc/rtc_base/safe_minmax.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 26
27 namespace { 27 namespace {
28 28
29 const size_t kErbResolution = 2; 29 const size_t kErbResolution = 2;
30 const int kWindowSizeMs = 16; 30 const int kWindowSizeMs = 16;
31 const int kChunkSizeMs = 10; // Size provided by APM. 31 const int kChunkSizeMs = 10; // Size provided by APM.
32 const float kClipFreqKhz = 0.2f; 32 const float kClipFreqKhz = 0.2f;
33 const float kKbdAlpha = 1.5f; 33 const float kKbdAlpha = 1.5f;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 void IntelligibilityEnhancer::DelayHighBands(AudioBuffer* audio) { 383 void IntelligibilityEnhancer::DelayHighBands(AudioBuffer* audio) {
384 RTC_DCHECK_EQ(audio->num_bands(), high_bands_buffers_.size() + 1); 384 RTC_DCHECK_EQ(audio->num_bands(), high_bands_buffers_.size() + 1);
385 for (size_t i = 0u; i < high_bands_buffers_.size(); ++i) { 385 for (size_t i = 0u; i < high_bands_buffers_.size(); ++i) {
386 Band band = static_cast<Band>(i + 1); 386 Band band = static_cast<Band>(i + 1);
387 high_bands_buffers_[i]->Delay(audio->split_channels_f(band), chunk_length_); 387 high_bands_buffers_[i]->Delay(audio->split_channels_f(band), chunk_length_);
388 } 388 }
389 } 389 }
390 390
391 } // namespace webrtc 391 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698