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

Side by Side Diff: webrtc/modules/audio_coding/acm2/rent_a_codec.cc

Issue 1481493004: audio_coding: remove "main" directory (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years 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_coding/main/acm2/rent_a_codec.h" 11 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h"
12 12
13 #include "webrtc/base/logging.h" 13 #include "webrtc/base/logging.h"
14 #include "webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h" 14 #include "webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h"
15 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h" 15 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h"
16 #ifdef WEBRTC_CODEC_G722 16 #ifdef WEBRTC_CODEC_G722
17 #include "webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h" 17 #include "webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h"
18 #endif 18 #endif
19 #ifdef WEBRTC_CODEC_ILBC 19 #ifdef WEBRTC_CODEC_ILBC
20 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h" 20 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h"
21 #endif 21 #endif
22 #ifdef WEBRTC_CODEC_ISACFX 22 #ifdef WEBRTC_CODEC_ISACFX
23 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_decoder_isac fix.h" 23 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_decoder_isac fix.h"
24 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_encoder_isac fix.h" 24 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_encoder_isac fix.h"
25 #endif 25 #endif
26 #ifdef WEBRTC_CODEC_ISAC 26 #ifdef WEBRTC_CODEC_ISAC
27 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isa c.h" 27 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isa c.h"
28 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_encoder_isa c.h" 28 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_encoder_isa c.h"
29 #endif 29 #endif
30 #ifdef WEBRTC_CODEC_OPUS 30 #ifdef WEBRTC_CODEC_OPUS
31 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h" 31 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h"
32 #endif 32 #endif
33 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h" 33 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h"
34 #ifdef WEBRTC_CODEC_RED 34 #ifdef WEBRTC_CODEC_RED
35 #include "webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h" 35 #include "webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h"
36 #endif 36 #endif
37 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" 37 #include "webrtc/modules/audio_coding/acm2/acm_codec_database.h"
38 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" 38 #include "webrtc/modules/audio_coding/acm2/acm_common_defs.h"
39 39
40 namespace webrtc { 40 namespace webrtc {
41 namespace acm2 { 41 namespace acm2 {
42 42
43 rtc::Optional<RentACodec::CodecId> RentACodec::CodecIdByParams( 43 rtc::Optional<RentACodec::CodecId> RentACodec::CodecIdByParams(
44 const char* payload_name, 44 const char* payload_name,
45 int sampling_freq_hz, 45 int sampling_freq_hz,
46 int channels) { 46 int channels) {
47 return CodecIdFromIndex( 47 return CodecIdFromIndex(
48 ACMCodecDB::CodecId(payload_name, sampling_freq_hz, channels)); 48 ACMCodecDB::CodecId(payload_name, sampling_freq_hz, channels));
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 297 }
298 298
299 AudioDecoder* RentACodec::RentIsacDecoder() { 299 AudioDecoder* RentACodec::RentIsacDecoder() {
300 if (!isac_decoder_) 300 if (!isac_decoder_)
301 isac_decoder_ = CreateIsacDecoder(&isac_bandwidth_info_); 301 isac_decoder_ = CreateIsacDecoder(&isac_bandwidth_info_);
302 return isac_decoder_.get(); 302 return isac_decoder_.get();
303 } 303 }
304 304
305 } // namespace acm2 305 } // namespace acm2
306 } // namespace webrtc 306 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/rent_a_codec.h ('k') | webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698