2014-06-23 19:21:07 +00:00
|
|
|
# Copyright (c) 2014 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.
|
|
|
|
|
|
2015-11-26 02:59:48 -08:00
|
|
|
import("//build/config/arm.gni")
|
2017-01-24 05:14:35 -08:00
|
|
|
import("../../build/webrtc.gni")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
|
2014-07-07 11:46:43 +00:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("video_processing") {
|
2014-07-07 11:46:43 +00:00
|
|
|
sources = [
|
2015-11-26 02:59:48 -08:00
|
|
|
"util/denoiser_filter.cc",
|
|
|
|
|
"util/denoiser_filter.h",
|
|
|
|
|
"util/denoiser_filter_c.cc",
|
|
|
|
|
"util/denoiser_filter_c.h",
|
2016-04-01 07:46:58 -07:00
|
|
|
"util/noise_estimation.cc",
|
|
|
|
|
"util/noise_estimation.h",
|
2015-11-26 02:59:48 -08:00
|
|
|
"util/skin_detection.cc",
|
|
|
|
|
"util/skin_detection.h",
|
|
|
|
|
"video_denoiser.cc",
|
|
|
|
|
"video_denoiser.h",
|
2014-07-07 11:46:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-12-27 06:32:08 -08:00
|
|
|
"../../base:rtc_base_approved",
|
2014-07-07 11:46:43 +00:00
|
|
|
"../../common_audio",
|
|
|
|
|
"../../common_video",
|
|
|
|
|
"../../modules/utility",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
if (build_video_processing_sse2) {
|
|
|
|
|
deps += [ ":video_processing_sse2" ]
|
|
|
|
|
}
|
2015-11-26 02:59:48 -08:00
|
|
|
if (rtc_build_with_neon) {
|
|
|
|
|
deps += [ ":video_processing_neon" ]
|
|
|
|
|
}
|
2014-08-25 14:15:35 +00:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
2014-07-07 11:46:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (build_video_processing_sse2) {
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("video_processing_sse2") {
|
2016-12-27 06:32:08 -08:00
|
|
|
# TODO(mbonadei): Remove (bugs.webrtc.org/6828)
|
|
|
|
|
# Errors on cyclic dependency with :video_processing if enabled.
|
|
|
|
|
check_includes = false
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
sources = [
|
2015-11-26 02:59:48 -08:00
|
|
|
"util/denoiser_filter_sse2.cc",
|
|
|
|
|
"util/denoiser_filter_sse2.h",
|
2015-05-25 12:55:39 +02:00
|
|
|
]
|
2014-08-18 17:56:28 +00:00
|
|
|
|
2016-12-27 06:32:08 -08:00
|
|
|
deps = [
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
2014-08-18 17:56:28 +00:00
|
|
|
|
2014-07-07 11:46:43 +00:00
|
|
|
if (is_posix) {
|
|
|
|
|
cflags = [ "-msse2" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2015-11-26 02:59:48 -08:00
|
|
|
|
|
|
|
|
if (rtc_build_with_neon) {
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("video_processing_neon") {
|
2016-12-27 06:32:08 -08:00
|
|
|
# TODO(mbonadei): Remove (bugs.webrtc.org/6828)
|
|
|
|
|
# Errors on cyclic dependency with :video_processing if enabled.
|
|
|
|
|
check_includes = false
|
|
|
|
|
|
2015-11-26 02:59:48 -08:00
|
|
|
sources = [
|
|
|
|
|
"util/denoiser_filter_neon.cc",
|
|
|
|
|
"util/denoiser_filter_neon.h",
|
|
|
|
|
]
|
2016-12-27 06:32:08 -08:00
|
|
|
|
2015-11-26 02:59:48 -08:00
|
|
|
if (current_cpu != "arm64") {
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
2015-11-26 02:59:48 -08:00
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("video_processing_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/denoiser_test.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_processing",
|
|
|
|
|
"../../common_video:common_video",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../../test:video_test_common",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|