| 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 |
| 11 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h" | 11 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 #include <math.h> | 14 #include <math.h> |
| 15 #include <stdlib.h> | 15 #include <stdlib.h> |
| 16 #include <string.h> | 16 #include <string.h> |
| 17 | 17 |
| 18 #include "webrtc/common_audio/signal_processing/include/real_fft.h" | 18 #include "webrtc/common_audio/signal_processing/include/real_fft.h" |
| 19 #include "webrtc/modules/audio_processing/ns/nsx_core.h" | 19 #include "webrtc/modules/audio_processing/ns/nsx_core.h" |
| 20 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 20 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 21 | 21 |
| (...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2103 | 2103 |
| 2104 //apply gain | 2104 //apply gain |
| 2105 for (i = 0; i < num_high_bands; ++i) { | 2105 for (i = 0; i < num_high_bands; ++i) { |
| 2106 for (j = 0; j < inst->blockLen10ms; j++) { | 2106 for (j = 0; j < inst->blockLen10ms; j++) { |
| 2107 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * | 2107 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * |
| 2108 inst->dataBufHBFX[i][j]) >> 14); // Q0 | 2108 inst->dataBufHBFX[i][j]) >> 14); // Q0 |
| 2109 } | 2109 } |
| 2110 } | 2110 } |
| 2111 } // end of H band gain computation | 2111 } // end of H band gain computation |
| 2112 } | 2112 } |
| OLD | NEW |