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

Side by Side Diff: webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory_internal.cc

Issue 2951873002: Expose ILBC codec in webrtc/api/audio_codecs/ (Closed)
Patch Set: Fix tests 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return true; 71 return true;
72 } else { 72 } else {
73 return false; 73 return false;
74 } 74 }
75 }}, 75 }},
76 #ifdef WEBRTC_CODEC_ILBC 76 #ifdef WEBRTC_CODEC_ILBC
77 {"ilbc", 77 {"ilbc",
78 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { 78 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) {
79 if (format.clockrate_hz == 8000 && format.num_channels == 1) { 79 if (format.clockrate_hz == 8000 && format.num_channels == 1) {
80 if (out) { 80 if (out) {
81 out->reset(new AudioDecoderIlbc); 81 out->reset(new AudioDecoderIlbcImpl);
82 } 82 }
83 return true; 83 return true;
84 } else { 84 } else {
85 return false; 85 return false;
86 } 86 }
87 }}, 87 }},
88 #endif 88 #endif
89 #if defined(WEBRTC_CODEC_ISACFX) 89 #if defined(WEBRTC_CODEC_ISACFX)
90 {"isac", 90 {"isac",
91 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { 91 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 } // namespace 249 } // namespace
250 250
251 rtc::scoped_refptr<AudioDecoderFactory> 251 rtc::scoped_refptr<AudioDecoderFactory>
252 CreateBuiltinAudioDecoderFactoryInternal() { 252 CreateBuiltinAudioDecoderFactoryInternal() {
253 return rtc::scoped_refptr<AudioDecoderFactory>( 253 return rtc::scoped_refptr<AudioDecoderFactory>(
254 new rtc::RefCountedObject<BuiltinAudioDecoderFactory>); 254 new rtc::RefCountedObject<BuiltinAudioDecoderFactory>);
255 } 255 }
256 256
257 } // namespace webrtc 257 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698