Chromium Code Reviews

Side by Side Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 1766383002: Convert IntelligibilityEnhancer to multi-threaded mode (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 911 matching lines...)
922 virtual Level level() const = 0; 922 virtual Level level() const = 0;
923 923
924 // Returns the internally computed prior speech probability of current frame 924 // Returns the internally computed prior speech probability of current frame
925 // averaged over output channels. This is not supported in fixed point, for 925 // averaged over output channels. This is not supported in fixed point, for
926 // which |kUnsupportedFunctionError| is returned. 926 // which |kUnsupportedFunctionError| is returned.
927 virtual float speech_probability() const = 0; 927 virtual float speech_probability() const = 0;
928 928
929 // Returns the noise estimate per frequency bin averaged over all channels. 929 // Returns the noise estimate per frequency bin averaged over all channels.
930 virtual std::vector<float> NoiseEstimate() = 0; 930 virtual std::vector<float> NoiseEstimate() = 0;
931 931
932 // Returns the number of bins of the noise estimate.
933 virtual size_t num_noise_bins() const = 0;
peah-webrtc 2016/03/08 07:02:38 I don't think we should put methods in here unless
hlundin-webrtc 2016/03/08 10:28:48 Acknowledged.
aluebs-webrtc 2016/03/08 10:53:00 Good point. Done.
934
932 protected: 935 protected:
933 virtual ~NoiseSuppression() {} 936 virtual ~NoiseSuppression() {}
934 }; 937 };
935 938
936 // The voice activity detection (VAD) component analyzes the stream to 939 // The voice activity detection (VAD) component analyzes the stream to
937 // determine if voice is present. A facility is also provided to pass in an 940 // determine if voice is present. A facility is also provided to pass in an
938 // external VAD decision. 941 // external VAD decision.
939 // 942 //
940 // In addition to |stream_has_voice()| the VAD decision is provided through the 943 // In addition to |stream_has_voice()| the VAD decision is provided through the
941 // |AudioFrame| passed to |ProcessStream()|. The |vad_activity_| member will be 944 // |AudioFrame| passed to |ProcessStream()|. The |vad_activity_| member will be
(...skipping 36 matching lines...)
978 // This does not impact the size of frames passed to |ProcessStream()|. 981 // This does not impact the size of frames passed to |ProcessStream()|.
979 virtual int set_frame_size_ms(int size) = 0; 982 virtual int set_frame_size_ms(int size) = 0;
980 virtual int frame_size_ms() const = 0; 983 virtual int frame_size_ms() const = 0;
981 984
982 protected: 985 protected:
983 virtual ~VoiceDetection() {} 986 virtual ~VoiceDetection() {}
984 }; 987 };
985 } // namespace webrtc 988 } // namespace webrtc
986 989
987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 990 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine