OLD | NEW |
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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" | 18 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" |
19 #include "webrtc/api/audio_codecs/audio_format.h" | 19 #include "webrtc/api/audio_codecs/audio_format.h" |
| 20 #include "webrtc/base/constructormagic.h" |
| 21 #include "webrtc/base/scoped_ref_ptr.h" |
20 #include "webrtc/common_types.h" // NULL | 22 #include "webrtc/common_types.h" // NULL |
21 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" | 23 #include "webrtc/modules/audio_coding/codecs/cng/webrtc_cng.h" |
22 #include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h" | 24 #include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h" |
23 #include "webrtc/modules/audio_coding/neteq/packet.h" | 25 #include "webrtc/modules/audio_coding/neteq/packet.h" |
24 #include "webrtc/rtc_base/constructormagic.h" | |
25 #include "webrtc/rtc_base/scoped_ref_ptr.h" | |
26 #include "webrtc/typedefs.h" | 26 #include "webrtc/typedefs.h" |
27 | 27 |
28 namespace webrtc { | 28 namespace webrtc { |
29 | 29 |
30 class DecoderDatabase { | 30 class DecoderDatabase { |
31 public: | 31 public: |
32 enum DatabaseReturnCodes { | 32 enum DatabaseReturnCodes { |
33 kOK = 0, | 33 kOK = 0, |
34 kInvalidRtpPayloadType = -1, | 34 kInvalidRtpPayloadType = -1, |
35 kCodecNotSupported = -2, | 35 kCodecNotSupported = -2, |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 int active_decoder_type_; | 237 int active_decoder_type_; |
238 int active_cng_decoder_type_; | 238 int active_cng_decoder_type_; |
239 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; | 239 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; |
240 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 240 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
241 | 241 |
242 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 242 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace webrtc | 245 } // namespace webrtc |
246 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 246 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
OLD | NEW |