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

Side by Side Diff: webrtc/modules/audio_coding/neteq/normal.cc

Issue 2668523004: Move AudioDecoder and related stuff to the api/ directory (Closed)
Patch Set: more review fixes Created 3 years, 10 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/normal.h" 11 #include "webrtc/modules/audio_coding/neteq/normal.h"
12 12
13 #include <string.h> // memset, memcpy 13 #include <string.h> // memset, memcpy
14 14
15 #include <algorithm> // min 15 #include <algorithm> // min
16 16
17 #include "webrtc/api/audio_codecs/audio_decoder.h"
17 #include "webrtc/base/checks.h" 18 #include "webrtc/base/checks.h"
18 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
19 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h"
20 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" 20 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h"
21 #include "webrtc/modules/audio_coding/neteq/background_noise.h" 21 #include "webrtc/modules/audio_coding/neteq/background_noise.h"
22 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" 22 #include "webrtc/modules/audio_coding/neteq/decoder_database.h"
23 #include "webrtc/modules/audio_coding/neteq/expand.h" 23 #include "webrtc/modules/audio_coding/neteq/expand.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 26
27 int Normal::Process(const int16_t* input, 27 int Normal::Process(const int16_t* input,
28 size_t length, 28 size_t length,
29 Modes last_mode, 29 Modes last_mode,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 external_mute_factor_array[channel_ix] = static_cast<int16_t>(std::min( 202 external_mute_factor_array[channel_ix] = static_cast<int16_t>(std::min(
203 16384, external_mute_factor_array[channel_ix] + increment)); 203 16384, external_mute_factor_array[channel_ix] + increment));
204 } 204 }
205 } 205 }
206 } 206 }
207 207
208 return static_cast<int>(length); 208 return static_cast<int>(length);
209 } 209 }
210 210
211 } // namespace webrtc 211 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698