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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // as a decoder of type |codec_type| with |rtp_payload_type|. | 129 // as a decoder of type |codec_type| with |rtp_payload_type|. |
130 virtual int InsertExternal(uint8_t rtp_payload_type, | 130 virtual int InsertExternal(uint8_t rtp_payload_type, |
131 NetEqDecoder codec_type, | 131 NetEqDecoder codec_type, |
132 const std::string& codec_name, | 132 const std::string& codec_name, |
133 AudioDecoder* decoder); | 133 AudioDecoder* decoder); |
134 | 134 |
135 // Removes the entry for |rtp_payload_type| from the database. | 135 // Removes the entry for |rtp_payload_type| from the database. |
136 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. | 136 // Returns kDecoderNotFound or kOK depending on the outcome of the operation. |
137 virtual int Remove(uint8_t rtp_payload_type); | 137 virtual int Remove(uint8_t rtp_payload_type); |
138 | 138 |
139 // Remove all entries. | |
140 void RemoveAll(); | |
141 | |
142 // Returns a pointer to the DecoderInfo struct for |rtp_payload_type|. If | 139 // Returns a pointer to the DecoderInfo struct for |rtp_payload_type|. If |
143 // no decoder is registered with that |rtp_payload_type|, NULL is returned. | 140 // no decoder is registered with that |rtp_payload_type|, NULL is returned. |
144 virtual const DecoderInfo* GetDecoderInfo(uint8_t rtp_payload_type) const; | 141 virtual const DecoderInfo* GetDecoderInfo(uint8_t rtp_payload_type) const; |
145 | 142 |
146 // Returns one RTP payload type associated with |codec_type|, or | 143 // Returns one RTP payload type associated with |codec_type|, or |
147 // kDecoderNotFound if no entry exists for that value. Note that one | 144 // kDecoderNotFound if no entry exists for that value. Note that one |
148 // |codec_type| may be registered with several RTP payload types, and the | 145 // |codec_type| may be registered with several RTP payload types, and the |
149 // method may return any of them. | 146 // method may return any of them. |
150 virtual uint8_t GetRtpPayloadType(NetEqDecoder codec_type) const; | 147 virtual uint8_t GetRtpPayloadType(NetEqDecoder codec_type) const; |
151 | 148 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 int active_decoder_type_; | 195 int active_decoder_type_; |
199 int active_cng_decoder_type_; | 196 int active_cng_decoder_type_; |
200 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; | 197 mutable std::unique_ptr<ComfortNoiseDecoder> active_cng_decoder_; |
201 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 198 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
202 | 199 |
203 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); | 200 RTC_DISALLOW_COPY_AND_ASSIGN(DecoderDatabase); |
204 }; | 201 }; |
205 | 202 |
206 } // namespace webrtc | 203 } // namespace webrtc |
207 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ | 204 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DECODER_DATABASE_H_ |
OLD | NEW |