You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

230 lines
7.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
  2. #
  3. # Use of this source code is governed by a BSD-style license
  4. # that can be found in the LICENSE file in the root of the source
  5. # tree. An additional intellectual property rights grant can be found
  6. # in the file PATENTS. All contributing project authors may
  7. # be found in the AUTHORS file in the root of the source tree.
  8. import("../../../webrtc.gni")
  9. rtc_library("aec3") {
  10. visibility = [ "*" ]
  11. configs += [ "..:apm_debug_dump" ]
  12. sources = [
  13. "adaptive_fir_filter.cc",
  14. "adaptive_fir_filter.h",
  15. "adaptive_fir_filter_erl.cc",
  16. "adaptive_fir_filter_erl.h",
  17. "aec3_common.cc",
  18. "aec3_common.h",
  19. "aec3_fft.cc",
  20. "aec3_fft.h",
  21. "aec_state.cc",
  22. "aec_state.h",
  23. "api_call_jitter_metrics.cc",
  24. "api_call_jitter_metrics.h",
  25. "block_buffer.cc",
  26. "block_buffer.h",
  27. "block_delay_buffer.cc",
  28. "block_delay_buffer.h",
  29. "block_framer.cc",
  30. "block_framer.h",
  31. "block_processor.cc",
  32. "block_processor.h",
  33. "block_processor_metrics.cc",
  34. "block_processor_metrics.h",
  35. "clockdrift_detector.cc",
  36. "clockdrift_detector.h",
  37. "comfort_noise_generator.cc",
  38. "comfort_noise_generator.h",
  39. "decimator.cc",
  40. "decimator.h",
  41. "delay_estimate.h",
  42. "downsampled_render_buffer.cc",
  43. "downsampled_render_buffer.h",
  44. "echo_audibility.cc",
  45. "echo_audibility.h",
  46. "echo_canceller3.cc",
  47. "echo_canceller3.h",
  48. "echo_path_delay_estimator.cc",
  49. "echo_path_delay_estimator.h",
  50. "echo_path_variability.cc",
  51. "echo_path_variability.h",
  52. "echo_remover.cc",
  53. "echo_remover.h",
  54. "echo_remover_metrics.cc",
  55. "echo_remover_metrics.h",
  56. "erl_estimator.cc",
  57. "erl_estimator.h",
  58. "erle_estimator.cc",
  59. "erle_estimator.h",
  60. "fft_buffer.cc",
  61. "fft_buffer.h",
  62. "fft_data.h",
  63. "filter_analyzer.cc",
  64. "filter_analyzer.h",
  65. "frame_blocker.cc",
  66. "frame_blocker.h",
  67. "fullband_erle_estimator.cc",
  68. "fullband_erle_estimator.h",
  69. "main_filter_update_gain.cc",
  70. "main_filter_update_gain.h",
  71. "matched_filter.cc",
  72. "matched_filter.h",
  73. "matched_filter_lag_aggregator.cc",
  74. "matched_filter_lag_aggregator.h",
  75. "moving_average.cc",
  76. "moving_average.h",
  77. "render_buffer.cc",
  78. "render_buffer.h",
  79. "render_delay_buffer.cc",
  80. "render_delay_buffer.h",
  81. "render_delay_controller.cc",
  82. "render_delay_controller.h",
  83. "render_delay_controller_metrics.cc",
  84. "render_delay_controller_metrics.h",
  85. "render_signal_analyzer.cc",
  86. "render_signal_analyzer.h",
  87. "residual_echo_estimator.cc",
  88. "residual_echo_estimator.h",
  89. "reverb_decay_estimator.cc",
  90. "reverb_decay_estimator.h",
  91. "reverb_frequency_response.cc",
  92. "reverb_frequency_response.h",
  93. "reverb_model.cc",
  94. "reverb_model.h",
  95. "reverb_model_estimator.cc",
  96. "reverb_model_estimator.h",
  97. "shadow_filter_update_gain.cc",
  98. "shadow_filter_update_gain.h",
  99. "signal_dependent_erle_estimator.cc",
  100. "signal_dependent_erle_estimator.h",
  101. "spectrum_buffer.cc",
  102. "spectrum_buffer.h",
  103. "stationarity_estimator.cc",
  104. "stationarity_estimator.h",
  105. "subband_erle_estimator.cc",
  106. "subband_erle_estimator.h",
  107. "subtractor.cc",
  108. "subtractor.h",
  109. "subtractor_output.cc",
  110. "subtractor_output.h",
  111. "subtractor_output_analyzer.cc",
  112. "subtractor_output_analyzer.h",
  113. "suppression_filter.cc",
  114. "suppression_filter.h",
  115. "suppression_gain.cc",
  116. "suppression_gain.h",
  117. "vector_math.h",
  118. ]
  119. defines = []
  120. if (rtc_build_with_neon && current_cpu != "arm64") {
  121. suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
  122. cflags = [ "-mfpu=neon" ]
  123. }
  124. deps = [
  125. "..:apm_logging",
  126. "..:audio_buffer",
  127. "..:high_pass_filter",
  128. "../../../api:array_view",
  129. "../../../api/audio:aec3_config",
  130. "../../../api/audio:echo_control",
  131. "../../../common_audio:common_audio_c",
  132. "../../../rtc_base:checks",
  133. "../../../rtc_base:rtc_base_approved",
  134. "../../../rtc_base:safe_minmax",
  135. "../../../rtc_base/system:arch",
  136. "../../../system_wrappers:cpu_features_api",
  137. "../../../system_wrappers:field_trial",
  138. "../../../system_wrappers:metrics",
  139. "../utility:cascaded_biquad_filter",
  140. "../utility:ooura_fft",
  141. "//third_party/abseil-cpp/absl/types:optional",
  142. ]
  143. }
  144. if (rtc_include_tests) {
  145. rtc_library("aec3_unittests") {
  146. testonly = true
  147. configs += [ "..:apm_debug_dump" ]
  148. sources = [
  149. "mock/mock_block_processor.cc",
  150. "mock/mock_block_processor.h",
  151. "mock/mock_echo_remover.cc",
  152. "mock/mock_echo_remover.h",
  153. "mock/mock_render_delay_buffer.cc",
  154. "mock/mock_render_delay_buffer.h",
  155. "mock/mock_render_delay_controller.cc",
  156. "mock/mock_render_delay_controller.h",
  157. ]
  158. deps = [
  159. ":aec3",
  160. "..:apm_logging",
  161. "..:audio_buffer",
  162. "..:audio_processing",
  163. "..:audio_processing_unittests",
  164. "..:high_pass_filter",
  165. "../../../api:array_view",
  166. "../../../api/audio:aec3_config",
  167. "../../../rtc_base:checks",
  168. "../../../rtc_base:rtc_base_approved",
  169. "../../../rtc_base:safe_minmax",
  170. "../../../rtc_base/system:arch",
  171. "../../../system_wrappers:cpu_features_api",
  172. "../../../test:test_support",
  173. "../utility:cascaded_biquad_filter",
  174. "//third_party/abseil-cpp/absl/types:optional",
  175. ]
  176. defines = []
  177. if (rtc_enable_protobuf) {
  178. sources += [
  179. "adaptive_fir_filter_erl_unittest.cc",
  180. "adaptive_fir_filter_unittest.cc",
  181. "aec3_fft_unittest.cc",
  182. "aec_state_unittest.cc",
  183. "api_call_jitter_metrics_unittest.cc",
  184. "block_delay_buffer_unittest.cc",
  185. "block_framer_unittest.cc",
  186. "block_processor_metrics_unittest.cc",
  187. "block_processor_unittest.cc",
  188. "clockdrift_detector_unittest.cc",
  189. "comfort_noise_generator_unittest.cc",
  190. "decimator_unittest.cc",
  191. "echo_canceller3_unittest.cc",
  192. "echo_path_delay_estimator_unittest.cc",
  193. "echo_path_variability_unittest.cc",
  194. "echo_remover_metrics_unittest.cc",
  195. "echo_remover_unittest.cc",
  196. "erl_estimator_unittest.cc",
  197. "erle_estimator_unittest.cc",
  198. "fft_data_unittest.cc",
  199. "filter_analyzer_unittest.cc",
  200. "frame_blocker_unittest.cc",
  201. "main_filter_update_gain_unittest.cc",
  202. "matched_filter_lag_aggregator_unittest.cc",
  203. "matched_filter_unittest.cc",
  204. "moving_average_unittest.cc",
  205. "render_buffer_unittest.cc",
  206. "render_delay_buffer_unittest.cc",
  207. "render_delay_controller_metrics_unittest.cc",
  208. "render_delay_controller_unittest.cc",
  209. "render_signal_analyzer_unittest.cc",
  210. "residual_echo_estimator_unittest.cc",
  211. "reverb_model_estimator_unittest.cc",
  212. "shadow_filter_update_gain_unittest.cc",
  213. "signal_dependent_erle_estimator_unittest.cc",
  214. "subtractor_unittest.cc",
  215. "suppression_filter_unittest.cc",
  216. "suppression_gain_unittest.cc",
  217. "vector_math_unittest.cc",
  218. ]
  219. }
  220. }
  221. }