| 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/noise_suppression_x.h" |    11 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h" | 
|    12  |    12  | 
|    13 #include <math.h> |    13 #include <math.h> | 
|    14 #include <stdlib.h> |    14 #include <stdlib.h> | 
|    15 #include <string.h> |    15 #include <string.h> | 
|    16  |    16  | 
|    17 #include "webrtc/base/checks.h" |    17 #include "webrtc/rtc_base/checks.h" | 
|    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  | 
|    22 #if defined(WEBRTC_HAS_NEON) |    22 #if defined(WEBRTC_HAS_NEON) | 
|    23 /* Tables are defined in ARM assembly files. */ |    23 /* Tables are defined in ARM assembly files. */ | 
|    24 extern const int16_t WebRtcNsx_kLogTable[9]; |    24 extern const int16_t WebRtcNsx_kLogTable[9]; | 
|    25 extern const int16_t WebRtcNsx_kCounterDiv[201]; |    25 extern const int16_t WebRtcNsx_kCounterDiv[201]; | 
|    26 extern const int16_t WebRtcNsx_kLogTableFrac[256]; |    26 extern const int16_t WebRtcNsx_kLogTableFrac[256]; | 
|    27 #else |    27 #else | 
| (...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2098  |  2098  | 
|  2099     //apply gain |  2099     //apply gain | 
|  2100     for (i = 0; i < num_high_bands; ++i) { |  2100     for (i = 0; i < num_high_bands; ++i) { | 
|  2101       for (j = 0; j < inst->blockLen10ms; j++) { |  2101       for (j = 0; j < inst->blockLen10ms; j++) { | 
|  2102         outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * |  2102         outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * | 
|  2103             inst->dataBufHBFX[i][j]) >> 14);  // Q0 |  2103             inst->dataBufHBFX[i][j]) >> 14);  // Q0 | 
|  2104       } |  2104       } | 
|  2105     } |  2105     } | 
|  2106   }  // end of H band gain computation |  2106   }  // end of H band gain computation | 
|  2107 } |  2107 } | 
| OLD | NEW |