Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 std::unique_ptr<ApmDataDumper> data_dumper; | 121 std::unique_ptr<ApmDataDumper> data_dumper; |
| 122 | 122 |
| 123 CoherenceState coherence_state; | 123 CoherenceState coherence_state; |
| 124 | 124 |
| 125 int farBufWritePos, farBufReadPos; | 125 int farBufWritePos, farBufReadPos; |
| 126 | 126 |
| 127 int knownDelay; | 127 int knownDelay; |
| 128 int inSamples, outSamples; | 128 int inSamples, outSamples; |
| 129 int delayEstCtr; | 129 int delayEstCtr; |
| 130 | 130 |
| 131 RingBuffer* nearFrBuf; | 131 float nearend_buffer[NUM_HIGH_BANDS_MAX + 1] |
| 132 [PART_LEN - (FRAME_LEN - PART_LEN)]; | |
|
hlundin-webrtc
2016/09/07 21:28:46
Please, explain the sizes.
peah-webrtc
2016/09/08 09:50:26
Done.
| |
| 133 int nearend_buffer_size; | |
| 132 RingBuffer* outFrBuf; | 134 RingBuffer* outFrBuf; |
| 133 | 135 |
| 134 RingBuffer* nearFrBufH[NUM_HIGH_BANDS_MAX]; | |
| 135 RingBuffer* outFrBufH[NUM_HIGH_BANDS_MAX]; | 136 RingBuffer* outFrBufH[NUM_HIGH_BANDS_MAX]; |
| 136 | 137 |
| 137 float dBuf[PART_LEN2]; // nearend | |
| 138 float eBuf[PART_LEN2]; // error | 138 float eBuf[PART_LEN2]; // error |
| 139 | 139 |
| 140 float dBufH[NUM_HIGH_BANDS_MAX][PART_LEN2]; // nearend | 140 float previous_nearend_block[NUM_HIGH_BANDS_MAX + 1][PART_LEN]; |
| 141 | 141 |
| 142 float xPow[PART_LEN1]; | 142 float xPow[PART_LEN1]; |
| 143 float dPow[PART_LEN1]; | 143 float dPow[PART_LEN1]; |
| 144 float dMinPow[PART_LEN1]; | 144 float dMinPow[PART_LEN1]; |
| 145 float dInitMinPow[PART_LEN1]; | 145 float dInitMinPow[PART_LEN1]; |
| 146 float* noisePow; | 146 float* noisePow; |
| 147 | 147 |
| 148 float xfBuf[2][kExtendedNumPartitions * PART_LEN1]; // farend fft buffer | 148 float xfBuf[2][kExtendedNumPartitions * PART_LEN1]; // farend fft buffer |
| 149 float wfBuf[2][kExtendedNumPartitions * PART_LEN1]; // filter fft | 149 float wfBuf[2][kExtendedNumPartitions * PART_LEN1]; // filter fft |
| 150 // Farend windowed fft buffer. | 150 // Farend windowed fft buffer. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 int WebRtcAec_system_delay(AecCore* self); | 313 int WebRtcAec_system_delay(AecCore* self); |
| 314 | 314 |
| 315 // Sets the |system_delay| to |value|. Note that if the value is changed | 315 // Sets the |system_delay| to |value|. Note that if the value is changed |
| 316 // improperly, there can be a performance regression. So it should be used with | 316 // improperly, there can be a performance regression. So it should be used with |
| 317 // care. | 317 // care. |
| 318 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); | 318 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); |
| 319 | 319 |
| 320 } // namespace webrtc | 320 } // namespace webrtc |
| 321 | 321 |
| 322 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 322 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
| OLD | NEW |