OLD | NEW |
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/main/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/include/audio_encoder_cng.h" | 14 #include "webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h" |
15 #include "webrtc/modules/audio_coding/codecs/g711/include/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/include/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/include/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/include/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/include/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/main/acm2/acm_codec_database.h" |
38 #include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h" | 38 #include "webrtc/modules/audio_coding/main/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( |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 | 268 |
269 AudioDecoder* RentACodec::RentIsacDecoder() { | 269 AudioDecoder* RentACodec::RentIsacDecoder() { |
270 if (!isac_decoder_) | 270 if (!isac_decoder_) |
271 isac_decoder_ = CreateIsacDecoder(&isac_bandwidth_info_); | 271 isac_decoder_ = CreateIsacDecoder(&isac_bandwidth_info_); |
272 return isac_decoder_.get(); | 272 return isac_decoder_.get(); |
273 } | 273 } |
274 | 274 |
275 } // namespace acm2 | 275 } // namespace acm2 |
276 } // namespace webrtc | 276 } // namespace webrtc |
OLD | NEW |