Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ | |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ | |
| 13 | |
| 14 #include <string> | |
| 15 | |
| 16 #include "webrtc/base/constructormagic.h" | |
| 17 #include "webrtc/base/criticalsection.h" | |
| 18 #include "webrtc/modules/audio_processing/agc2/agc2.h" | |
| 19 #include "webrtc/modules/audio_processing/include/audio_processing.h" | |
| 20 | |
| 21 namespace webrtc { | |
| 22 | |
| 23 // Adaptive Gain Control 2 (AGC2) is an alternative gain control module meant | |
| 24 // to replace the previous AGC, the implementation of which is distributed | |
| 25 // across several classes (namely, GainControlImpl, | |
| 26 // GainControlForExperimentalAgc, AgcManagerDirect and Agc). | |
| 27 // TODO(alessiob, aleloi): Make the changes listed below. | |
| 28 // In addition to reorganizing the code, AGC2 also includes the following | |
| 29 // changes: | |
| 30 // - it switches to floating point, replacing the fixed point analysis of the | |
| 31 // legacy AGC; | |
| 32 // - it does not work in the band split domain. | |
|
aleloi
2017/05/02 10:11:53
A few points from peah's list are worth mentioning
AleBzk
2017/05/02 11:31:54
I realized that maybe we want to document only wha
peah-webrtc
2017/05/02 11:45:20
That makes sense. I don't think the comment needs
| |
| 33 class Agc2Impl : public Agc2 { | |
| 34 public: | |
| 35 explicit Agc2Impl(rtc::CriticalSection* crit); | |
|
peah-webrtc
2017/05/02 11:01:08
If this API is not public, you don't need to bothe
AleBzk
2017/05/02 15:42:51
Acknowledged.
| |
| 36 ~Agc2Impl() override; | |
| 37 | |
| 38 static bool Validate(const AudioProcessing::Config::Agc2& config); | |
| 39 static std::string ToString(const AudioProcessing::Config::Agc2& config); | |
| 40 | |
| 41 private: | |
| 42 rtc::CriticalSection* const crit_; | |
| 43 RTC_DISALLOW_COPY_AND_ASSIGN(Agc2Impl); | |
| 44 }; | |
| 45 | |
| 46 } // namespace webrtc | |
| 47 | |
| 48 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ | |
| OLD | NEW |