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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 80, lag, -1); | 199 80, lag, -1); |
200 } else { | 200 } else { |
201 lag = (int16_t)WebRtcIlbcfix_XcorrCoef( | 201 lag = (int16_t)WebRtcIlbcfix_XcorrCoef( |
202 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL], | 202 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL], |
203 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL-lag], | 203 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL-lag], |
204 ENH_BLOCKL, | 204 ENH_BLOCKL, |
205 100, lag, -1); | 205 100, lag, -1); |
206 } | 206 } |
207 | 207 |
208 /* Store lag (it is needed if next packet is lost) */ | 208 /* Store lag (it is needed if next packet is lost) */ |
209 (*iLBCdec_inst).last_lag = (int)lag; | 209 (*iLBCdec_inst).last_lag = lag; |
210 | 210 |
211 /* copy data and run synthesis filter */ | 211 /* copy data and run synthesis filter */ |
212 WEBRTC_SPL_MEMCPY_W16(data, decresidual, iLBCdec_inst->blockl); | 212 WEBRTC_SPL_MEMCPY_W16(data, decresidual, iLBCdec_inst->blockl); |
213 | 213 |
214 /* Set up the filter state */ | 214 /* Set up the filter state */ |
215 WEBRTC_SPL_MEMCPY_W16(&data[-LPC_FILTERORDER], iLBCdec_inst->syntMem, LPC_FI
LTERORDER); | 215 WEBRTC_SPL_MEMCPY_W16(&data[-LPC_FILTERORDER], iLBCdec_inst->syntMem, LPC_FI
LTERORDER); |
216 | 216 |
217 for (i=0; i < iLBCdec_inst->nsub; i++) { | 217 for (i=0; i < iLBCdec_inst->nsub; i++) { |
218 WebRtcSpl_FilterARFastQ12( | 218 WebRtcSpl_FilterARFastQ12( |
219 data+i*SUBL, data+i*SUBL, | 219 data+i*SUBL, data+i*SUBL, |
(...skipping 14 matching lines...) Expand all Loading... |
234 | 234 |
235 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->old_syntdenum, | 235 WEBRTC_SPL_MEMCPY_W16(iLBCdec_inst->old_syntdenum, |
236 syntdenum, iLBCdec_inst->nsub*(LPC_FILTERORDER+1)); | 236 syntdenum, iLBCdec_inst->nsub*(LPC_FILTERORDER+1)); |
237 | 237 |
238 iLBCdec_inst->prev_enh_pl=0; | 238 iLBCdec_inst->prev_enh_pl=0; |
239 | 239 |
240 if (mode==0) { /* PLC was used */ | 240 if (mode==0) { /* PLC was used */ |
241 iLBCdec_inst->prev_enh_pl=1; | 241 iLBCdec_inst->prev_enh_pl=1; |
242 } | 242 } |
243 } | 243 } |
OLD | NEW |