2018-02-16 11:54:07 +01:00
|
|
|
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../../webrtc.gni")
|
|
|
|
|
|
2018-03-27 13:38:36 +02:00
|
|
|
group("agc2") {
|
|
|
|
|
deps = [
|
|
|
|
|
":adaptive_digital",
|
|
|
|
|
":fixed_digital",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-06 15:35:42 +02:00
|
|
|
rtc_source_set("level_estimation_agc") {
|
|
|
|
|
sources = [
|
|
|
|
|
"adaptive_mode_level_estimator_agc.cc",
|
|
|
|
|
"adaptive_mode_level_estimator_agc.h",
|
|
|
|
|
]
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":adaptive_digital",
|
|
|
|
|
":common",
|
|
|
|
|
":gain_applier",
|
|
|
|
|
":noise_level_estimator",
|
|
|
|
|
":rnn_vad_with_level",
|
|
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../../rtc_base:safe_minmax",
|
|
|
|
|
"../agc:level_estimation",
|
|
|
|
|
"../vad",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-27 13:38:36 +02:00
|
|
|
rtc_source_set("adaptive_digital") {
|
|
|
|
|
sources = [
|
|
|
|
|
"adaptive_agc.cc",
|
|
|
|
|
"adaptive_agc.h",
|
|
|
|
|
"adaptive_digital_gain_applier.cc",
|
|
|
|
|
"adaptive_digital_gain_applier.h",
|
|
|
|
|
"adaptive_mode_level_estimator.cc",
|
|
|
|
|
"adaptive_mode_level_estimator.h",
|
2018-03-28 09:45:29 +02:00
|
|
|
"saturation_protector.cc",
|
|
|
|
|
"saturation_protector.h",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":common",
|
2018-04-13 11:15:34 +02:00
|
|
|
":gain_applier",
|
2018-04-04 15:05:57 +02:00
|
|
|
":noise_level_estimator",
|
2018-06-20 14:14:18 +02:00
|
|
|
":rnn_vad_with_level",
|
2018-03-27 13:38:36 +02:00
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../../rtc_base:safe_minmax",
|
2018-08-10 14:43:51 +02:00
|
|
|
"../../../system_wrappers:metrics_api",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("biquad_filter") {
|
2018-05-14 20:22:18 +02:00
|
|
|
visibility = [ "./*" ]
|
2018-05-07 13:26:47 +02:00
|
|
|
sources = [
|
|
|
|
|
"biquad_filter.cc",
|
|
|
|
|
"biquad_filter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("common") {
|
|
|
|
|
sources = [
|
|
|
|
|
"agc2_common.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-27 13:38:36 +02:00
|
|
|
rtc_source_set("fixed_digital") {
|
2018-02-16 11:54:07 +01:00
|
|
|
sources = [
|
2018-02-16 12:39:00 +01:00
|
|
|
"fixed_digital_level_estimator.cc",
|
|
|
|
|
"fixed_digital_level_estimator.h",
|
2018-02-16 11:54:07 +01:00
|
|
|
"fixed_gain_controller.cc",
|
|
|
|
|
"fixed_gain_controller.h",
|
2018-02-20 15:58:36 +01:00
|
|
|
"gain_curve_applier.cc",
|
|
|
|
|
"gain_curve_applier.h",
|
|
|
|
|
"interpolated_gain_curve.cc",
|
|
|
|
|
"interpolated_gain_curve.h",
|
2018-02-16 11:54:07 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-03-27 13:38:36 +02:00
|
|
|
":common",
|
2018-02-16 11:54:07 +01:00
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
2018-02-20 15:58:36 +01:00
|
|
|
"../../../rtc_base:gtest_prod",
|
2018-02-16 11:54:07 +01:00
|
|
|
"../../../rtc_base:rtc_base_approved",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../../rtc_base:safe_minmax",
|
2018-03-14 12:27:05 +01:00
|
|
|
"../../../system_wrappers:metrics_api",
|
2018-02-16 11:54:07 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("gain_applier") {
|
2018-03-27 13:38:36 +02:00
|
|
|
sources = [
|
2018-05-07 13:26:47 +02:00
|
|
|
"gain_applier.cc",
|
|
|
|
|
"gain_applier.h",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-05-07 13:26:47 +02:00
|
|
|
":common",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../rtc_base:safe_minmax",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-04 15:05:57 +02:00
|
|
|
rtc_source_set("noise_level_estimator") {
|
|
|
|
|
sources = [
|
|
|
|
|
"down_sampler.cc",
|
|
|
|
|
"down_sampler.h",
|
|
|
|
|
"noise_level_estimator.cc",
|
|
|
|
|
"noise_level_estimator.h",
|
|
|
|
|
"noise_spectrum_estimator.cc",
|
|
|
|
|
"noise_spectrum_estimator.h",
|
|
|
|
|
"signal_classifier.cc",
|
|
|
|
|
"signal_classifier.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-05-07 13:26:47 +02:00
|
|
|
":biquad_filter",
|
2018-04-04 15:05:57 +02:00
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:macromagic",
|
2018-07-05 16:41:55 +02:00
|
|
|
"../utility:ooura_fft",
|
2018-04-04 15:05:57 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-20 14:14:18 +02:00
|
|
|
rtc_source_set("rnn_vad_with_level") {
|
|
|
|
|
sources = [
|
|
|
|
|
"vad_with_level.cc",
|
|
|
|
|
"vad_with_level.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
2018-08-01 10:24:15 +02:00
|
|
|
"rnn_vad",
|
2018-06-20 14:14:18 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("adaptive_digital_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
|
2018-04-13 11:15:34 +02:00
|
|
|
sources = [
|
2018-05-07 13:26:47 +02:00
|
|
|
"adaptive_digital_gain_applier_unittest.cc",
|
|
|
|
|
"adaptive_mode_level_estimator_unittest.cc",
|
|
|
|
|
"gain_applier_unittest.cc",
|
|
|
|
|
"saturation_protector_unittest.cc",
|
2018-04-13 11:15:34 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-05-07 13:26:47 +02:00
|
|
|
":adaptive_digital",
|
2018-04-13 11:15:34 +02:00
|
|
|
":common",
|
2018-05-07 13:26:47 +02:00
|
|
|
":gain_applier",
|
|
|
|
|
":test_utils",
|
|
|
|
|
"..:apm_logging",
|
2018-04-13 11:15:34 +02:00
|
|
|
"..:audio_frame_view",
|
2018-05-07 13:26:47 +02:00
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../common_audio",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../../rtc_base:rtc_base_tests_utils",
|
2018-04-13 11:15:34 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("biquad_filter_unittests") {
|
2018-03-27 13:38:36 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2018-05-07 13:26:47 +02:00
|
|
|
"biquad_filter_unittest.cc",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-05-07 13:26:47 +02:00
|
|
|
":biquad_filter",
|
|
|
|
|
"../../../rtc_base:rtc_base_tests_utils",
|
2018-03-27 13:38:36 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-16 11:54:07 +01:00
|
|
|
rtc_source_set("fixed_digital_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
|
|
|
|
|
sources = [
|
2018-02-20 15:58:36 +01:00
|
|
|
"agc2_testing_common_unittest.cc",
|
|
|
|
|
"compute_interpolated_gain_curve.cc",
|
|
|
|
|
"compute_interpolated_gain_curve.h",
|
2018-02-16 12:39:00 +01:00
|
|
|
"fixed_digital_level_estimator_unittest.cc",
|
2018-02-16 11:54:07 +01:00
|
|
|
"fixed_gain_controller_unittest.cc",
|
2018-02-20 15:58:36 +01:00
|
|
|
"gain_curve_applier_unittest.cc",
|
|
|
|
|
"interpolated_gain_curve_unittest.cc",
|
|
|
|
|
"limiter.cc",
|
|
|
|
|
"limiter.h",
|
|
|
|
|
"limiter_unittest.cc",
|
2018-02-16 11:54:07 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-03-27 13:38:36 +02:00
|
|
|
":common",
|
|
|
|
|
":fixed_digital",
|
|
|
|
|
":test_utils",
|
2018-02-16 11:54:07 +01:00
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
2018-02-16 12:39:00 +01:00
|
|
|
"../../../common_audio",
|
2018-02-20 15:58:36 +01:00
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
2018-02-16 11:54:07 +01:00
|
|
|
"../../../rtc_base:rtc_base_tests_utils",
|
2018-08-13 17:40:43 +02:00
|
|
|
"../../../system_wrappers:metrics_default",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-02-16 11:54:07 +01:00
|
|
|
]
|
|
|
|
|
}
|
2018-03-28 09:45:29 +02:00
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("noise_estimator_unittests") {
|
2018-03-28 09:45:29 +02:00
|
|
|
testonly = true
|
|
|
|
|
configs += [ "..:apm_debug_dump" ]
|
|
|
|
|
|
|
|
|
|
sources = [
|
2018-05-07 13:26:47 +02:00
|
|
|
"noise_level_estimator_unittest.cc",
|
|
|
|
|
"signal_classifier_unittest.cc",
|
2018-03-28 09:45:29 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2018-05-07 13:26:47 +02:00
|
|
|
":noise_level_estimator",
|
2018-03-28 09:45:29 +02:00
|
|
|
":test_utils",
|
|
|
|
|
"..:apm_logging",
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../api:array_view",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../../rtc_base:rtc_base_tests_utils",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-04-04 15:05:57 +02:00
|
|
|
|
2018-05-07 13:26:47 +02:00
|
|
|
rtc_source_set("test_utils") {
|
2018-04-04 15:05:57 +02:00
|
|
|
testonly = true
|
2018-05-07 13:26:47 +02:00
|
|
|
visibility = [ ":*" ]
|
2018-04-04 15:05:57 +02:00
|
|
|
sources = [
|
2018-05-07 13:26:47 +02:00
|
|
|
"agc2_testing_common.cc",
|
|
|
|
|
"agc2_testing_common.h",
|
|
|
|
|
"vector_float_frame.cc",
|
|
|
|
|
"vector_float_frame.h",
|
2018-04-04 15:05:57 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:audio_frame_view",
|
|
|
|
|
"../../../rtc_base:checks",
|
|
|
|
|
"../../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|