| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual void Reset(); | 120 virtual void Reset(); |
| 121 | 121 |
| 122 // Registers |rtp_payload_type| as a decoder of type |codec_type|. The |name| | 122 // Registers |rtp_payload_type| as a decoder of type |codec_type|. The |name| |
| 123 // is only used to populate the name field in the DecoderInfo struct in the | 123 // is only used to populate the name field in the DecoderInfo struct in the |
| 124 // database, and can be arbitrary (including empty). Returns kOK on success; | 124 // database, and can be arbitrary (including empty). Returns kOK on success; |
| 125 // otherwise an error code. | 125 // otherwise an error code. |
| 126 virtual int RegisterPayload(uint8_t rtp_payload_type, | 126 virtual int RegisterPayload(uint8_t rtp_payload_type, |
| 127 NetEqDecoder codec_type, | 127 NetEqDecoder codec_type, |
| 128 const std::string& name); | 128 const std::string& name); |
| 129 | 129 |
| 130 // Registers a decoder for the given payload type. Returns kOK on success; |
| 131 // otherwise an error code. |
| 132 virtual int RegisterPayload(int rtp_payload_type, |
| 133 const SdpAudioFormat& audio_format); |
| 134 |
| 130 // Registers an externally created AudioDecoder object, and associates it | 135 // Registers an externally created AudioDecoder object, and associates it |
| 131 // as a decoder of type |codec_type| with |rtp_payload_type|. | 136 // as a decoder of type |codec_type| with |rtp_payload_type|. |
| 132 virtual int InsertExternal(uint8_t rtp_payload_type, | 137 virtual int InsertExternal(uint8_t rtp_payload_type, |
| 133 NetEqDecoder codec_type, | 138 NetEqDecoder codec_type, |
| 134 const std::string& codec_name, | 139 const std::string& codec_name, |
| 135 AudioDecoder* decoder); | 140 AudioDecoder* decoder); |
| 136 | 141 |
| 137 // Removes the entry for |rtp_payload_type| from the database. | 142 // Removes the entry for |rtp_payload_type| from the database. |
| 138 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. | 143 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. |
| 139 virtual int Remove(uint8_t rtp_payload_type); | 144 virtual int Remove(uint8_t rtp_payload_type); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 int active_decoder_type_; | 202 int active_decoder_type_; |
| 198 int active_cng_decoder_type_; | 203 int active_cng_decoder_type_; |
| 199 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; | 204 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; |
| 200 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 205 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 201 | 206 |
| 202 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 207 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
| 203 }; | 208 }; |
| 204 | 209 |
| 205 } // namespace webrtc | 210 } // namespace webrtc |
| 206 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 211 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
| OLD | NEW |