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 #include <string.h> | 12 #include <string.h> |
13 | 13 |
14 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h" | 14 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h" |
15 #include "webrtc/modules/audio_processing/ns/nsx_core.h" | 15 #include "webrtc/modules/audio_processing/ns/nsx_core.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 |
24 //snrLocPrior is the prior SNR for each frequency (in Q11) | 24 //snrLocPrior is the prior SNR for each frequency (in Q11) |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 "4: \n\t" | 993 "4: \n\t" |
994 ".set pop \n\t" | 994 ".set pop \n\t" |
995 : [t0] "=&r" (t0), [r0] "=&r" (r0), [r1] "=&r" (r1), | 995 : [t0] "=&r" (t0), [r0] "=&r" (r0), [r1] "=&r" (r1), |
996 [r2] "=&r" (r2), [r3] "=&r" (r3) | 996 [r2] "=&r" (r2), [r3] "=&r" (r3) |
997 : [len] "r" (len), [shift] "r" (shift), [in] "r" (in), | 997 : [len] "r" (len), [shift] "r" (shift), [in] "r" (in), |
998 [out] "r" (out) | 998 [out] "r" (out) |
999 : "memory" | 999 : "memory" |
1000 ); | 1000 ); |
1001 } | 1001 } |
1002 | 1002 |
OLD | NEW |