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

Side by Side Diff: webrtc/modules/audio_coding/neteq/expand.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) 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 #include "webrtc/modules/audio_coding/neteq/expand.h" 11 #include "webrtc/modules/audio_coding/neteq/expand.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <string.h> // memset 14 #include <string.h> // memset
15 15
16 #include <algorithm> // min, max 16 #include <algorithm> // min, max
17 #include <limits> // numeric_limits<T> 17 #include <limits> // numeric_limits<T>
18 18
19 #include "webrtc/base/safe_conversions.h"
19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
20 #include "webrtc/modules/audio_coding/neteq/background_noise.h" 21 #include "webrtc/modules/audio_coding/neteq/background_noise.h"
21 #include "webrtc/modules/audio_coding/neteq/cross_correlation.h" 22 #include "webrtc/modules/audio_coding/neteq/cross_correlation.h"
22 #include "webrtc/modules/audio_coding/neteq/dsp_helper.h" 23 #include "webrtc/modules/audio_coding/neteq/dsp_helper.h"
23 #include "webrtc/modules/audio_coding/neteq/random_vector.h" 24 #include "webrtc/modules/audio_coding/neteq/random_vector.h"
24 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h" 25 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h"
25 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" 26 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h"
26 #include "webrtc/rtc_base/safe_conversions.h"
27 27
28 namespace webrtc { 28 namespace webrtc {
29 29
30 Expand::Expand(BackgroundNoise* background_noise, 30 Expand::Expand(BackgroundNoise* background_noise,
31 SyncBuffer* sync_buffer, 31 SyncBuffer* sync_buffer,
32 RandomVector* random_vector, 32 RandomVector* random_vector,
33 StatisticsCalculator* statistics, 33 StatisticsCalculator* statistics,
34 int fs, 34 int fs,
35 size_t num_channels) 35 size_t num_channels)
36 : random_vector_(random_vector), 36 : random_vector_(random_vector),
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 const size_t kMaxRandSamples = RandomVector::kRandomTableSize; 969 const size_t kMaxRandSamples = RandomVector::kRandomTableSize;
970 while (samples_generated < length) { 970 while (samples_generated < length) {
971 size_t rand_length = std::min(length - samples_generated, kMaxRandSamples); 971 size_t rand_length = std::min(length - samples_generated, kMaxRandSamples);
972 random_vector_->IncreaseSeedIncrement(seed_increment); 972 random_vector_->IncreaseSeedIncrement(seed_increment);
973 random_vector_->Generate(rand_length, &random_vector[samples_generated]); 973 random_vector_->Generate(rand_length, &random_vector[samples_generated]);
974 samples_generated += rand_length; 974 samples_generated += rand_length;
975 } 975 }
976 } 976 }
977 977
978 } // namespace webrtc 978 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/expand.h ('k') | webrtc/modules/audio_coding/neteq/expand_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698