OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 302 |
303 | 303 |
304 if( (ISACdec_obj->plcstr_obj).used != PLC_WAS_USED ) | 304 if( (ISACdec_obj->plcstr_obj).used != PLC_WAS_USED ) |
305 { | 305 { |
306 (ISACdec_obj->plcstr_obj).pitchCycles = 0; | 306 (ISACdec_obj->plcstr_obj).pitchCycles = 0; |
307 | 307 |
308 (ISACdec_obj->plcstr_obj).lastPitchLP = | 308 (ISACdec_obj->plcstr_obj).lastPitchLP = |
309 &((ISACdec_obj->plcstr_obj).prevPitchInvIn[FRAMESAMPLES_HALF - lag0]); | 309 &((ISACdec_obj->plcstr_obj).prevPitchInvIn[FRAMESAMPLES_HALF - lag0]); |
310 minCorr = WEBRTC_SPL_WORD32_MAX; | 310 minCorr = WEBRTC_SPL_WORD32_MAX; |
311 | 311 |
312 if ( (FRAMESAMPLES_HALF - 2*lag0 - 10) > 0 ) | 312 if ((FRAMESAMPLES_HALF - 10) > 2 * lag0) |
313 { | 313 { |
314 minIdx = 11; | 314 minIdx = 11; |
315 for( i = 0; i < 21; i++ ) | 315 for( i = 0; i < 21; i++ ) |
316 { | 316 { |
317 corr = 0; | 317 corr = 0; |
318 for( k = 0; k < lag0; k++ ) | 318 for( k = 0; k < lag0; k++ ) |
319 { | 319 { |
320 corr = WebRtcSpl_AddSatW32(corr, WEBRTC_SPL_ABS_W32( | 320 corr = WebRtcSpl_AddSatW32(corr, WEBRTC_SPL_ABS_W32( |
321 WebRtcSpl_SubSatW16( | 321 WebRtcSpl_SubSatW16( |
322 (ISACdec_obj->plcstr_obj).lastPitchLP[k], | 322 (ISACdec_obj->plcstr_obj).lastPitchLP[k], |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 | 792 |
793 | 793 |
794 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1, | 794 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1, |
795 Vector_Word16_2, signal_out16, &ISACdec_obj->p
ostfiltbankstr_obj); | 795 Vector_Word16_2, signal_out16, &ISACdec_obj->p
ostfiltbankstr_obj); |
796 | 796 |
797 (ISACdec_obj->plcstr_obj).used = PLC_WAS_USED; | 797 (ISACdec_obj->plcstr_obj).used = PLC_WAS_USED; |
798 *current_framesamples = 480; | 798 *current_framesamples = 480; |
799 | 799 |
800 return len; | 800 return len; |
801 } | 801 } |
OLD | NEW |