| 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 24 matching lines...) Expand all Loading... |
| 35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */ | 35 int16_t *lsf, /* (i) the unquantized lsf coefficients Q13 */ |
| 36 int16_t *lsfdeq, /* (i) the dequantized lsf coefficients Q13 */ | 36 int16_t *lsfdeq, /* (i) the dequantized lsf coefficients Q13 */ |
| 37 int16_t *lsfold, /* (i) the unquantized lsf coefficients of | 37 int16_t *lsfold, /* (i) the unquantized lsf coefficients of |
| 38 the previous signal frame Q13 */ | 38 the previous signal frame Q13 */ |
| 39 int16_t *lsfdeqold, /* (i) the dequantized lsf coefficients of the | 39 int16_t *lsfdeqold, /* (i) the dequantized lsf coefficients of the |
| 40 previous signal frame Q13 */ | 40 previous signal frame Q13 */ |
| 41 int16_t length, /* (i) should equate FILTERORDER */ | 41 int16_t length, /* (i) should equate FILTERORDER */ |
| 42 IlbcEncoder *iLBCenc_inst | 42 IlbcEncoder *iLBCenc_inst |
| 43 /* (i/o) the encoder state structure */ | 43 /* (i/o) the encoder state structure */ |
| 44 ) { | 44 ) { |
| 45 int i, pos, lp_length; | 45 size_t i; |
| 46 int pos, lp_length; |
| 46 | 47 |
| 47 int16_t *lsf2, *lsfdeq2; | 48 int16_t *lsf2, *lsfdeq2; |
| 48 /* Stack based */ | 49 /* Stack based */ |
| 49 int16_t lp[LPC_FILTERORDER + 1]; | 50 int16_t lp[LPC_FILTERORDER + 1]; |
| 50 | 51 |
| 51 lsf2 = lsf + length; | 52 lsf2 = lsf + length; |
| 52 lsfdeq2 = lsfdeq + length; | 53 lsfdeq2 = lsfdeq + length; |
| 53 lp_length = length + 1; | 54 lp_length = length + 1; |
| 54 | 55 |
| 55 if (iLBCenc_inst->mode==30) { | 56 if (iLBCenc_inst->mode==30) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 122 |
| 122 /* update memory */ | 123 /* update memory */ |
| 123 | 124 |
| 124 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf, length); | 125 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf, length); |
| 125 WEBRTC_SPL_MEMCPY_W16(lsfdeqold, lsfdeq, length); | 126 WEBRTC_SPL_MEMCPY_W16(lsfdeqold, lsfdeq, length); |
| 126 | 127 |
| 127 } | 128 } |
| 128 | 129 |
| 129 return; | 130 return; |
| 130 } | 131 } |
| OLD | NEW |