AGC2: removed unused noise estimator implementation
This CL also includes the following changes: - `AudioProcessing::Config::GainController2::noise_estimator` deprecated - `EnergyToDbfs()` optimized by removing unnecessary `sqrt` - Unit test minor fix, incorrect type was used Bug: webrtc:7494 Change-Id: I88a6672d6f7cd03fcf6a3031883522d256880140 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/230940 Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34893}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
0d51a5fc00
commit
b8a19df71c
@ -46,17 +46,6 @@ std::string GainController1ModeToString(const Agc1Config::Mode& mode) {
|
||||
RTC_CHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
std::string GainController2NoiseEstimatorToString(
|
||||
const Agc2Config::NoiseEstimator& type) {
|
||||
switch (type) {
|
||||
case Agc2Config::NoiseEstimator::kStationaryNoise:
|
||||
return "StationaryNoise";
|
||||
case Agc2Config::NoiseEstimator::kNoiseFloor:
|
||||
return "NoiseFloor";
|
||||
}
|
||||
RTC_CHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr int AudioProcessing::kNativeSampleRatesHz[];
|
||||
@ -99,7 +88,6 @@ bool Agc1Config::operator==(const Agc1Config& rhs) const {
|
||||
bool Agc2Config::AdaptiveDigital::operator==(
|
||||
const Agc2Config::AdaptiveDigital& rhs) const {
|
||||
return enabled == rhs.enabled && dry_run == rhs.dry_run &&
|
||||
noise_estimator == rhs.noise_estimator &&
|
||||
vad_reset_period_ms == rhs.vad_reset_period_ms &&
|
||||
adjacent_speech_frames_threshold ==
|
||||
rhs.adjacent_speech_frames_threshold &&
|
||||
@ -204,9 +192,6 @@ std::string AudioProcessing::Config::ToString() const {
|
||||
<< " }, adaptive_digital: { enabled: "
|
||||
<< gain_controller2.adaptive_digital.enabled
|
||||
<< ", dry_run: " << gain_controller2.adaptive_digital.dry_run
|
||||
<< ", noise_estimator: "
|
||||
<< GainController2NoiseEstimatorToString(
|
||||
gain_controller2.adaptive_digital.noise_estimator)
|
||||
<< ", vad_reset_period_ms: "
|
||||
<< gain_controller2.adaptive_digital.vad_reset_period_ms
|
||||
<< ", adjacent_speech_frames_threshold: "
|
||||
|
||||
Reference in New Issue
Block a user