| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |    2  *  Copyright (c) 2014 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 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHANCER
     _H_ |   11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHANCER
     _H_ | 
|   12 #define WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHANCER
     _H_ |   12 #define WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHANCER
     _H_ | 
|   13  |   13  | 
|   14 #include <complex> |   14 #include <complex> | 
|   15 #include <memory> |   15 #include <memory> | 
|   16 #include <vector> |   16 #include <vector> | 
|   17  |   17  | 
|   18 #include "webrtc/base/swap_queue.h" |   18 #include "webrtc/base/swap_queue.h" | 
 |   19 #include "webrtc/common_audio/lapped_transform.h" | 
|   19 #include "webrtc/common_audio/channel_buffer.h" |   20 #include "webrtc/common_audio/channel_buffer.h" | 
|   20 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
     h" |   21 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
     h" | 
|   21 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" |   22 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" | 
|   22 #include "webrtc/modules/audio_processing/utility/lapped_transform.h" |  | 
|   23 #include "webrtc/modules/audio_processing/vad/voice_activity_detector.h" |   23 #include "webrtc/modules/audio_processing/vad/voice_activity_detector.h" | 
|   24  |   24  | 
|   25 namespace webrtc { |   25 namespace webrtc { | 
|   26  |   26  | 
|   27 // Speech intelligibility enhancement module. Reads render and capture |   27 // Speech intelligibility enhancement module. Reads render and capture | 
|   28 // audio streams and modifies the render stream with a set of gains per |   28 // audio streams and modifies the render stream with a set of gains per | 
|   29 // frequency bin to enhance speech against the noise background. |   29 // frequency bin to enhance speech against the noise background. | 
|   30 // Details of the model and algorithm can be found in the original paper: |   30 // Details of the model and algorithm can be found in the original paper: | 
|   31 // http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6882788 |   31 // http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6882788 | 
|   32 class IntelligibilityEnhancer : public LappedTransform::Callback { |   32 class IntelligibilityEnhancer : public LappedTransform::Callback { | 
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  105   bool is_speech_; |  105   bool is_speech_; | 
|  106  |  106  | 
|  107   std::vector<float> noise_estimation_buffer_; |  107   std::vector<float> noise_estimation_buffer_; | 
|  108   SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> |  108   SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> | 
|  109       noise_estimation_queue_; |  109       noise_estimation_queue_; | 
|  110 }; |  110 }; | 
|  111  |  111  | 
|  112 }  // namespace webrtc |  112 }  // namespace webrtc | 
|  113  |  113  | 
|  114 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN
     CER_H_ |  114 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_ENHAN
     CER_H_ | 
| OLD | NEW |