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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 int16_t | 433 int16_t |
434 WebRtcIsac_CorrelateInterVec( | 434 WebRtcIsac_CorrelateInterVec( |
435 const double* data, | 435 const double* data, |
436 double* out, | 436 double* out, |
437 int16_t bandwidth) | 437 int16_t bandwidth) |
438 { | 438 { |
439 int16_t coeffCntr; | 439 int16_t coeffCntr; |
440 int16_t rowCntr; | 440 int16_t rowCntr; |
441 int16_t colCntr; | 441 int16_t colCntr; |
442 int16_t interVecDim; | 442 int16_t interVecDim; |
443 double myVec[UB16_LPC_VEC_PER_FRAME]; | 443 double myVec[UB16_LPC_VEC_PER_FRAME] = {0.0}; |
444 const double* interVecDecorrMat; | 444 const double* interVecDecorrMat; |
445 | 445 |
446 switch(bandwidth) | 446 switch(bandwidth) |
447 { | 447 { |
448 case isac12kHz: | 448 case isac12kHz: |
449 { | 449 { |
450 interVecDim = UB_LPC_VEC_PER_FRAME; | 450 interVecDim = UB_LPC_VEC_PER_FRAME; |
451 interVecDecorrMat = &WebRtcIsac_kInterVecDecorrMatUb12[0][0]; | 451 interVecDecorrMat = &WebRtcIsac_kInterVecDecorrMatUb12[0][0]; |
452 break; | 452 break; |
453 } | 453 } |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 int16_t WebRtcIsac_AddMeanToLinearDomain( | 699 int16_t WebRtcIsac_AddMeanToLinearDomain( |
700 double* lpcGains) | 700 double* lpcGains) |
701 { | 701 { |
702 int16_t coeffCntr; | 702 int16_t coeffCntr; |
703 for(coeffCntr = 0; coeffCntr < UB_LPC_GAIN_DIM; coeffCntr++) | 703 for(coeffCntr = 0; coeffCntr < UB_LPC_GAIN_DIM; coeffCntr++) |
704 { | 704 { |
705 lpcGains[coeffCntr] = exp(lpcGains[coeffCntr] + WebRtcIsac_kMeanLpcGain); | 705 lpcGains[coeffCntr] = exp(lpcGains[coeffCntr] + WebRtcIsac_kMeanLpcGain); |
706 } | 706 } |
707 return 0; | 707 return 0; |
708 } | 708 } |
OLD | NEW |