Chromium Code Reviews| 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 |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 665 AudioProcessing::Statistic residual_echo_return_loss; | 665 AudioProcessing::Statistic residual_echo_return_loss; |
| 666 | 666 |
| 667 // ERL = 10log_10(P_far / P_echo) | 667 // ERL = 10log_10(P_far / P_echo) |
| 668 AudioProcessing::Statistic echo_return_loss; | 668 AudioProcessing::Statistic echo_return_loss; |
| 669 | 669 |
| 670 // ERLE = 10log_10(P_echo / P_out) | 670 // ERLE = 10log_10(P_echo / P_out) |
| 671 AudioProcessing::Statistic echo_return_loss_enhancement; | 671 AudioProcessing::Statistic echo_return_loss_enhancement; |
| 672 | 672 |
| 673 // (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a) | 673 // (Pre non-linear processing suppression) A_NLP = 10log_10(P_echo / P_a) |
| 674 AudioProcessing::Statistic a_nlp; | 674 AudioProcessing::Statistic a_nlp; |
| 675 | |
| 676 // Fraction of filter being divergent, based on a 0.5-second, non-overlapped | |
|
peah-webrtc
2016/04/07 11:25:40
I think a more proper description would be
// Frac
minyue-webrtc
2016/04/07 11:40:55
Good point, I also think it is a bit vague. But "o
| |
| 677 // aggregation window. | |
| 678 float divergent_filter_fraction; | |
| 675 }; | 679 }; |
| 676 | 680 |
| 677 // TODO(ajm): discuss the metrics update period. | 681 // TODO(ajm): discuss the metrics update period. |
| 678 virtual int GetMetrics(Metrics* metrics) = 0; | 682 virtual int GetMetrics(Metrics* metrics) = 0; |
| 679 | 683 |
| 680 // Enables computation and logging of delay values. Statistics are obtained | 684 // Enables computation and logging of delay values. Statistics are obtained |
| 681 // through |GetDelayMetrics()|. | 685 // through |GetDelayMetrics()|. |
| 682 virtual int enable_delay_logging(bool enable) = 0; | 686 virtual int enable_delay_logging(bool enable) = 0; |
| 683 virtual bool is_delay_logging_enabled() const = 0; | 687 virtual bool is_delay_logging_enabled() const = 0; |
| 684 | 688 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 964 // This does not impact the size of frames passed to |ProcessStream()|. | 968 // This does not impact the size of frames passed to |ProcessStream()|. |
| 965 virtual int set_frame_size_ms(int size) = 0; | 969 virtual int set_frame_size_ms(int size) = 0; |
| 966 virtual int frame_size_ms() const = 0; | 970 virtual int frame_size_ms() const = 0; |
| 967 | 971 |
| 968 protected: | 972 protected: |
| 969 virtual ~VoiceDetection() {} | 973 virtual ~VoiceDetection() {} |
| 970 }; | 974 }; |
| 971 } // namespace webrtc | 975 } // namespace webrtc |
| 972 | 976 |
| 973 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 977 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |