OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator.h" | 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator.h" |
12 | 12 |
13 void WebRtcIsacfix_PitchFilterCore(int loopNumber, | 13 void WebRtcIsacfix_PitchFilterCore(int loopNumber, |
14 int16_t gain, | 14 int16_t gain, |
15 int index, | 15 size_t index, |
16 int16_t sign, | 16 int16_t sign, |
17 int16_t* inputState, | 17 int16_t* inputState, |
18 int16_t* outputBuf2, | 18 int16_t* outputBuf2, |
19 const int16_t* coefficient, | 19 const int16_t* coefficient, |
20 int16_t* inputBuf, | 20 int16_t* inputBuf, |
21 int16_t* outputBuf, | 21 int16_t* outputBuf, |
22 int* index2) { | 22 int* index2) { |
23 int ind2t = *index2; | 23 int ind2t = *index2; |
24 int i = 0; | 24 int i = 0; |
25 int16_t* out2_pos2 = &outputBuf2[PITCH_BUFFSIZE - (index + 2)] + ind2t; | 25 int16_t* out2_pos2 = &outputBuf2[PITCH_BUFFSIZE - (index + 2)] + ind2t; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 : [coefficient] "r" (coefficient), [inputState] "r" (inputState), | 124 : [coefficient] "r" (coefficient), [inputState] "r" (inputState), |
125 [gain32] "r" (gain32), [sign32] "r" (sign32), [kDampF0] "r" (kDampF0), | 125 [gain32] "r" (gain32), [sign32] "r" (sign32), [kDampF0] "r" (kDampF0), |
126 [kDampF1] "r" (kDampF1), [kDampF2] "r" (kDampF2), | 126 [kDampF1] "r" (kDampF1), [kDampF2] "r" (kDampF2), |
127 [coef1] "r" (coef1), [coef2] "r" (coef2), [coef3] "r" (coef3), | 127 [coef1] "r" (coef1), [coef2] "r" (coef2), [coef3] "r" (coef3), |
128 [coef4] "r" (coef4), [coef5] "r" (coef5) | 128 [coef4] "r" (coef4), [coef5] "r" (coef5) |
129 : "hi", "lo", "$ac1hi", "$ac1lo", "memory" | 129 : "hi", "lo", "$ac1hi", "$ac1lo", "memory" |
130 ); | 130 ); |
131 } | 131 } |
132 (*index2) += loopNumber; | 132 (*index2) += loopNumber; |
133 } | 133 } |
OLD | NEW |