Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 } | 33 } |
| 34 for (k = 0; k < ORDERHI+1; k++) { | 34 for (k = 0; k < ORDERHI+1; k++) { |
| 35 maskdata->CorrBufHi[k] = 0.0; | 35 maskdata->CorrBufHi[k] = 0.0; |
| 36 maskdata->PreStateHiF[k] = 0.0; | 36 maskdata->PreStateHiF[k] = 0.0; |
| 37 maskdata->PreStateHiG[k] = 0.0; | 37 maskdata->PreStateHiG[k] = 0.0; |
| 38 maskdata->PostStateHiF[k] = 0.0; | 38 maskdata->PostStateHiF[k] = 0.0; |
| 39 maskdata->PostStateHiG[k] = 0.0; | 39 maskdata->PostStateHiG[k] = 0.0; |
| 40 } | 40 } |
| 41 | 41 |
| 42 maskdata->OldEnergy = 10.0; | 42 maskdata->OldEnergy = 10.0; |
| 43 | |
| 44 /* fill tables for transforms */ | |
| 45 WebRtcIsac_InitTransform(); | |
| 46 | |
|
the sun
2015/06/15 15:08:51
I don't know this code. What about the stuff above
kwiberg-webrtc
2015/06/15 21:57:28
No, because it operates on per-instance data.
| |
| 47 return; | 43 return; |
| 48 } | 44 } |
| 49 | 45 |
| 50 void WebRtcIsac_InitPreFilterbank(PreFiltBankstr *prefiltdata) | 46 void WebRtcIsac_InitPreFilterbank(PreFiltBankstr *prefiltdata) |
| 51 { | 47 { |
| 52 int k; | 48 int k; |
| 53 | 49 |
| 54 for (k = 0; k < QLOOKAHEAD; k++) { | 50 for (k = 0; k < QLOOKAHEAD; k++) { |
| 55 prefiltdata->INLABUF1[k] = 0; | 51 prefiltdata->INLABUF1[k] = 0; |
| 56 prefiltdata->INLABUF2[k] = 0; | 52 prefiltdata->INLABUF2[k] = 0; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 State->whitened_buf[k] = 0.0; | 162 State->whitened_buf[k] = 0.0; |
| 167 for (k = 0; k < QLOOKAHEAD; k++) | 163 for (k = 0; k < QLOOKAHEAD; k++) |
| 168 State->inbuf[k] = 0.0; | 164 State->inbuf[k] = 0.0; |
| 169 | 165 |
| 170 WebRtcIsac_InitPitchFilter(&(State->PFstr_wght)); | 166 WebRtcIsac_InitPitchFilter(&(State->PFstr_wght)); |
| 171 | 167 |
| 172 WebRtcIsac_InitPitchFilter(&(State->PFstr)); | 168 WebRtcIsac_InitPitchFilter(&(State->PFstr)); |
| 173 | 169 |
| 174 WebRtcIsac_InitWeightingFilter(&(State->Wghtstr)); | 170 WebRtcIsac_InitWeightingFilter(&(State->Wghtstr)); |
| 175 } | 171 } |
| OLD | NEW |