OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <assert.h> | 11 #include <assert.h> |
12 | 12 |
13 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h" | 13 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h" |
14 #include "webrtc/modules/audio_processing/ns/nsx_core.h" | 14 #include "webrtc/modules/audio_processing/ns/nsx_core.h" |
15 #include "webrtc/modules/audio_processing/ns/nsx_defines.h" | 15 #include "webrtc/modules/audio_processing/ns/nsx_defines.h" |
16 | 16 |
17 static const int16_t kIndicatorTable[17] = { | 17 static const int16_t kIndicatorTable[17] = { |
18 0, 2017, 3809, 5227, 6258, 6963, 7424, 7718, | 18 0, 2017, 3809, 5227, 6258, 6963, 7424, 7718, |
19 7901, 8014, 8084, 8126, 8152, 8168, 8177, 8183, 8187 | 19 7901, 8014, 8084, 8126, 8152, 8168, 8177, 8183, 8187 |
20 }; | 20 }; |
21 | 21 |
22 // Compute speech/noise probability | 22 // Compute speech/noise probability |
23 // speech/noise probability is returned in: probSpeechFinal | 23 // speech/noise probability is returned in: probSpeechFinal |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 tmp32no1 = (int32_t)inst->priorNonSpeechProb << 8; // Q22 | 252 tmp32no1 = (int32_t)inst->priorNonSpeechProb << 8; // Q22 |
253 | 253 |
254 nonSpeechProbFinal[i] = tmp32no1 / | 254 nonSpeechProbFinal[i] = tmp32no1 / |
255 (inst->priorNonSpeechProb + invLrtFX); // Q8 | 255 (inst->priorNonSpeechProb + invLrtFX); // Q8 |
256 } | 256 } |
257 } | 257 } |
258 } | 258 } |
259 } | 259 } |
260 } | 260 } |
261 | 261 |
OLD | NEW |