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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Initial magnitude spectrum estimate. | 70 // Initial magnitude spectrum estimate. |
71 uint32_t initMagnEst[HALF_ANAL_BLOCKL]; | 71 uint32_t initMagnEst[HALF_ANAL_BLOCKL]; |
72 // Pink noise parameters: | 72 // Pink noise parameters: |
73 int32_t pinkNoiseNumerator; // Numerator. | 73 int32_t pinkNoiseNumerator; // Numerator. |
74 int32_t pinkNoiseExp; // Power of freq. | 74 int32_t pinkNoiseExp; // Power of freq. |
75 int minNorm; // Smallest normalization factor. | 75 int minNorm; // Smallest normalization factor. |
76 int zeroInputSignal; // Zero input signal flag. | 76 int zeroInputSignal; // Zero input signal flag. |
77 | 77 |
78 // Noise spectrum from previous frame. | 78 // Noise spectrum from previous frame. |
79 uint32_t prevNoiseU32[HALF_ANAL_BLOCKL]; | 79 uint32_t prevNoiseU32[HALF_ANAL_BLOCKL]; |
| 80 uint16_t prevNoiseU16[HALF_ANAL_BLOCKL]; |
80 // Magnitude spectrum from previous frame. | 81 // Magnitude spectrum from previous frame. |
81 uint16_t prevMagnU16[HALF_ANAL_BLOCKL]; | 82 uint16_t prevMagnU16[HALF_ANAL_BLOCKL]; |
82 // Prior speech/noise probability in Q14. | 83 // Prior speech/noise probability in Q14. |
83 int16_t priorNonSpeechProb; | 84 int16_t priorNonSpeechProb; |
84 | 85 |
85 int blockIndex; // Frame index counter. | 86 int blockIndex; // Frame index counter. |
86 // Parameter for updating or estimating thresholds/weights for prior model. | 87 // Parameter for updating or estimating thresholds/weights for prior model. |
87 int modelUpdate; | 88 int modelUpdate; |
88 int cntThresUpdate; | 89 int cntThresUpdate; |
89 | 90 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 int factor); | 255 int factor); |
255 #endif | 256 #endif |
256 | 257 |
257 #endif | 258 #endif |
258 | 259 |
259 #ifdef __cplusplus | 260 #ifdef __cplusplus |
260 } | 261 } |
261 #endif | 262 #endif |
262 | 263 |
263 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_MAIN_SOURCE_NSX_CORE_H_ | 264 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_NS_MAIN_SOURCE_NSX_CORE_H_ |
OLD | NEW |