| 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 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual void Reset(); | 138 virtual void Reset(); |
| 139 | 139 |
| 140 // Registers |rtp_payload_type| as a decoder of type |codec_type|. The |name| | 140 // Registers |rtp_payload_type| as a decoder of type |codec_type|. The |name| |
| 141 // is only used to populate the name field in the DecoderInfo struct in the | 141 // is only used to populate the name field in the DecoderInfo struct in the |
| 142 // database, and can be arbitrary (including empty). Returns kOK on success; | 142 // database, and can be arbitrary (including empty). Returns kOK on success; |
| 143 // otherwise an error code. | 143 // otherwise an error code. |
| 144 virtual int RegisterPayload(uint8_t rtp_payload_type, | 144 virtual int RegisterPayload(uint8_t rtp_payload_type, |
| 145 NetEqDecoder codec_type, | 145 NetEqDecoder codec_type, |
| 146 const std::string& name); | 146 const std::string& name); |
| 147 | 147 |
| 148 // Registers a decoder for the given payload type. Returns kOK on success; |
| 149 // otherwise an error code. |
| 150 virtual int RegisterPayload(int rtp_payload_type, |
| 151 const SdpAudioFormat& audio_format); |
| 152 |
| 148 // Registers an externally created AudioDecoder object, and associates it | 153 // Registers an externally created AudioDecoder object, and associates it |
| 149 // as a decoder of type |codec_type| with |rtp_payload_type|. | 154 // as a decoder of type |codec_type| with |rtp_payload_type|. |
| 150 virtual int InsertExternal(uint8_t rtp_payload_type, | 155 virtual int InsertExternal(uint8_t rtp_payload_type, |
| 151 NetEqDecoder codec_type, | 156 NetEqDecoder codec_type, |
| 152 const std::string& codec_name, | 157 const std::string& codec_name, |
| 153 AudioDecoder* decoder); | 158 AudioDecoder* decoder); |
| 154 | 159 |
| 155 // Removes the entry for |rtp_payload_type| from the database. | 160 // Removes the entry for |rtp_payload_type| from the database. |
| 156 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. | 161 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. |
| 157 virtual int Remove(uint8_t rtp_payload_type); | 162 virtual int Remove(uint8_t rtp_payload_type); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 int active_decoder_type_; | 220 int active_decoder_type_; |
| 216 int active_cng_decoder_type_; | 221 int active_cng_decoder_type_; |
| 217 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; | 222 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; |
| 218 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 223 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 219 | 224 |
| 220 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 225 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
| 221 }; | 226 }; |
| 222 | 227 |
| 223 } // namespace webrtc | 228 } // namespace webrtc |
| 224 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 229 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
| OLD | NEW |