| 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 12 matching lines...) Expand all Loading... |
| 23 #include "xcorr_coef.h" | 23 #include "xcorr_coef.h" |
| 24 #include "enhancer.h" | 24 #include "enhancer.h" |
| 25 #include "hp_output.h" | 25 #include "hp_output.h" |
| 26 | 26 |
| 27 | 27 |
| 28 | 28 |
| 29 /*----------------------------------------------------------------* | 29 /*----------------------------------------------------------------* |
| 30 * interface for enhancer | 30 * interface for enhancer |
| 31 *---------------------------------------------------------------*/ | 31 *---------------------------------------------------------------*/ |
| 32 | 32 |
| 33 size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */ | 33 size_t // (o) Estimated lag in end of in[] |
| 34 int16_t *out, /* (o) enhanced signal */ | 34 WebRtcIlbcfix_EnhancerInterface( |
| 35 int16_t *in, /* (i) unenhanced signal */ | 35 int16_t* out, // (o) enhanced signal |
| 36 IlbcDecoder *iLBCdec_inst /* (i) buffers etc */ | 36 const int16_t* in, // (i) unenhanced signal |
| 37 ){ | 37 IlbcDecoder* iLBCdec_inst) { // (i) buffers etc |
| 38 size_t iblock; | 38 size_t iblock; |
| 39 size_t lag=20, tlag=20; | 39 size_t lag=20, tlag=20; |
| 40 size_t inLen=iLBCdec_inst->blockl+120; | 40 size_t inLen=iLBCdec_inst->blockl+120; |
| 41 int16_t scale, scale1; | 41 int16_t scale, scale1; |
| 42 size_t plc_blockl; | 42 size_t plc_blockl; |
| 43 int16_t *enh_buf; | 43 int16_t *enh_buf; |
| 44 size_t *enh_period; | 44 size_t *enh_period; |
| 45 int32_t tmp1, tmp2, max; | 45 int32_t tmp1, tmp2, max; |
| 46 size_t new_blocks; | 46 size_t new_blocks; |
| 47 int16_t *enh_bufPtr1; | 47 int16_t *enh_bufPtr1; |
| 48 size_t i; | 48 size_t i; |
| 49 size_t k; | 49 size_t k; |
| 50 int16_t EnChange; | 50 int16_t EnChange; |
| 51 int16_t SqrtEnChange; | 51 int16_t SqrtEnChange; |
| 52 int16_t inc; | 52 int16_t inc; |
| 53 int16_t win; | 53 int16_t win; |
| 54 int16_t *tmpW16ptr; | 54 int16_t *tmpW16ptr; |
| 55 size_t startPos; | 55 size_t startPos; |
| 56 int16_t *plc_pred; | 56 int16_t *plc_pred; |
| 57 int16_t *target, *regressor; | 57 const int16_t *target, *regressor; |
| 58 int16_t max16; | 58 int16_t max16; |
| 59 int shifts; | 59 int shifts; |
| 60 int32_t ener; | 60 int32_t ener; |
| 61 int16_t enerSh; | 61 int16_t enerSh; |
| 62 int16_t corrSh; | 62 int16_t corrSh; |
| 63 size_t ind; | 63 size_t ind; |
| 64 int16_t sh; | 64 int16_t sh; |
| 65 size_t start, stop; | 65 size_t start, stop; |
| 66 /* Stack based */ | 66 /* Stack based */ |
| 67 int16_t totsh[3]; | 67 int16_t totsh[3]; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 WebRtcIlbcfix_Enhancer(out + iblock * ENH_BLOCKL, | 368 WebRtcIlbcfix_Enhancer(out + iblock * ENH_BLOCKL, |
| 369 enh_buf, | 369 enh_buf, |
| 370 ENH_BUFL, | 370 ENH_BUFL, |
| 371 iblock * ENH_BLOCKL + startPos, | 371 iblock * ENH_BLOCKL + startPos, |
| 372 enh_period, | 372 enh_period, |
| 373 WebRtcIlbcfix_kEnhPlocs, ENH_NBLOCKS_TOT); | 373 WebRtcIlbcfix_kEnhPlocs, ENH_NBLOCKS_TOT); |
| 374 } | 374 } |
| 375 | 375 |
| 376 return (lag); | 376 return (lag); |
| 377 } | 377 } |
| OLD | NEW |