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

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

Issue 2934833002: G722 implementation of the AudioEncoderFactoryTemplate API (Closed)
Patch Set: rebase Created 3 years, 6 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 return std::unique_ptr<AudioEncoder>(); 56 return std::unique_ptr<AudioEncoder>();
57 }; 57 };
58 58
59 return {T::GetPayloadName(), T::QueryAudioEncoder, constructor}; 59 return {T::GetPayloadName(), T::QueryAudioEncoder, constructor};
60 } 60 }
61 }; 61 };
62 62
63 NamedEncoderFactory encoder_factories[] = { 63 NamedEncoderFactory encoder_factories[] = {
64 #ifdef WEBRTC_CODEC_G722 64 #ifdef WEBRTC_CODEC_G722
65 NamedEncoderFactory::ForEncoder<AudioEncoderG722>(), 65 NamedEncoderFactory::ForEncoder<AudioEncoderG722Impl>(),
66 #endif 66 #endif
67 #ifdef WEBRTC_CODEC_ILBC 67 #ifdef WEBRTC_CODEC_ILBC
68 NamedEncoderFactory::ForEncoder<AudioEncoderIlbc>(), 68 NamedEncoderFactory::ForEncoder<AudioEncoderIlbc>(),
69 #endif 69 #endif
70 #if defined(WEBRTC_CODEC_ISACFX) 70 #if defined(WEBRTC_CODEC_ISACFX)
71 NamedEncoderFactory::ForEncoder<AudioEncoderIsacFix>(), 71 NamedEncoderFactory::ForEncoder<AudioEncoderIsacFix>(),
72 #elif defined(WEBRTC_CODEC_ISAC) 72 #elif defined(WEBRTC_CODEC_ISAC)
73 NamedEncoderFactory::ForEncoder<AudioEncoderIsac>(), 73 NamedEncoderFactory::ForEncoder<AudioEncoderIsac>(),
74 #endif 74 #endif
75 75
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 }; 136 };
137 137
138 rtc::scoped_refptr<AudioEncoderFactory> 138 rtc::scoped_refptr<AudioEncoderFactory>
139 CreateBuiltinAudioEncoderFactoryInternal() { 139 CreateBuiltinAudioEncoderFactoryInternal() {
140 return rtc::scoped_refptr<AudioEncoderFactory>( 140 return rtc::scoped_refptr<AudioEncoderFactory>(
141 new rtc::RefCountedObject<BuiltinAudioEncoderFactory>()); 141 new rtc::RefCountedObject<BuiltinAudioEncoderFactory>());
142 } 142 }
143 143
144 } // namespace webrtc 144 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/rent_a_codec.cc ('k') | webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698