Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

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

Issue 1844583003: Only split into bands when the reverse stream is analyzed in the APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebasing Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); 200 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_);
201 void InitializeEchoControlMobile() 201 void InitializeEchoControlMobile()
202 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); 202 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_);
203 int InitializeLocked(const ProcessingConfig& config) 203 int InitializeLocked(const ProcessingConfig& config)
204 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); 204 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_);
205 205
206 // Capture-side exclusive methods possibly running APM in a multi-threaded 206 // Capture-side exclusive methods possibly running APM in a multi-threaded
207 // manner that are called with the render lock already acquired. 207 // manner that are called with the render lock already acquired.
208 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 208 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
209 bool output_copy_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 209 bool output_copy_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
210 bool is_data_processed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 210 bool is_fwd_processed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
211 bool fwd_synthesis_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 211 bool fwd_synthesis_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
212 bool fwd_analysis_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 212 bool fwd_analysis_needed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
213 void MaybeUpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 213 void MaybeUpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
214 214
215 // Render-side exclusive methods possibly running APM in a multi-threaded 215 // Render-side exclusive methods possibly running APM in a multi-threaded
216 // manner that are called with the render lock already acquired. 216 // manner that are called with the render lock already acquired.
217 // TODO(ekm): Remove once all clients updated to new interface. 217 // TODO(ekm): Remove once all clients updated to new interface.
218 int AnalyzeReverseStreamLocked(const float* const* src, 218 int AnalyzeReverseStreamLocked(const float* const* src,
219 const StreamConfig& input_config, 219 const StreamConfig& input_config,
220 const StreamConfig& output_config) 220 const StreamConfig& output_config)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 struct ApmRenderState { 342 struct ApmRenderState {
343 std::unique_ptr<AudioConverter> render_converter; 343 std::unique_ptr<AudioConverter> render_converter;
344 std::unique_ptr<AudioBuffer> render_audio; 344 std::unique_ptr<AudioBuffer> render_audio;
345 } render_ GUARDED_BY(crit_render_); 345 } render_ GUARDED_BY(crit_render_);
346 }; 346 };
347 347
348 } // namespace webrtc 348 } // namespace webrtc
349 349
350 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ 350 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698