OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 AudioDecoderIsacT<T>::AudioDecoderIsacT() | 180 AudioDecoderIsacT<T>::AudioDecoderIsacT() |
181 : AudioDecoderIsacT(nullptr) { | 181 : AudioDecoderIsacT(nullptr) { |
182 } | 182 } |
183 | 183 |
184 template <typename T> | 184 template <typename T> |
185 AudioDecoderIsacT<T>::AudioDecoderIsacT(LockedIsacBandwidthInfo* bwinfo) | 185 AudioDecoderIsacT<T>::AudioDecoderIsacT(LockedIsacBandwidthInfo* bwinfo) |
186 : bwinfo_(bwinfo), decoder_sample_rate_hz_(-1) { | 186 : bwinfo_(bwinfo), decoder_sample_rate_hz_(-1) { |
187 CHECK_EQ(0, T::Create(&isac_state_)); | 187 CHECK_EQ(0, T::Create(&isac_state_)); |
188 CHECK_EQ(0, T::DecoderInit(isac_state_)); | 188 CHECK_EQ(0, T::DecoderInit(isac_state_)); |
189 if (bwinfo_) { | 189 if (bwinfo_) { |
190 IsacBandwidthInfo bwinfo; | 190 IsacBandwidthInfo bi; |
191 T::GetBandwidthInfo(isac_state_, &bwinfo); | 191 T::GetBandwidthInfo(isac_state_, &bi); |
192 bwinfo_->Set(bwinfo); | 192 bwinfo_->Set(bi); |
193 } | 193 } |
194 } | 194 } |
195 | 195 |
196 template <typename T> | 196 template <typename T> |
197 AudioDecoderIsacT<T>::~AudioDecoderIsacT() { | 197 AudioDecoderIsacT<T>::~AudioDecoderIsacT() { |
198 CHECK_EQ(0, T::Free(isac_state_)); | 198 CHECK_EQ(0, T::Free(isac_state_)); |
199 } | 199 } |
200 | 200 |
201 template <typename T> | 201 template <typename T> |
202 int AudioDecoderIsacT<T>::DecodeInternal(const uint8_t* encoded, | 202 int AudioDecoderIsacT<T>::DecodeInternal(const uint8_t* encoded, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 template <typename T> | 261 template <typename T> |
262 size_t AudioDecoderIsacT<T>::Channels() const { | 262 size_t AudioDecoderIsacT<T>::Channels() const { |
263 return 1; | 263 return 1; |
264 } | 264 } |
265 | 265 |
266 } // namespace webrtc | 266 } // namespace webrtc |
267 | 267 |
268 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ | 268 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ |
OLD | NEW |