blob: 1177d9b7f0d4a6906db04338e68dbd0b8f3a3a31 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 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
jackychen8f9902a2015-11-26 02:59:48 -08009import("//build/config/arm.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010import("../../build/webrtc.gni")
11
kjellander@webrtc.org72273912015-02-23 19:08:31 +000012build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000013
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000014source_set("video_processing") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000015 sources = [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010016 "frame_preprocessor.cc",
17 "frame_preprocessor.h",
18 "include/video_processing.h",
19 "include/video_processing_defines.h",
20 "spatial_resampler.cc",
21 "spatial_resampler.h",
jackychen8f9902a2015-11-26 02:59:48 -080022 "util/denoiser_filter.cc",
23 "util/denoiser_filter.h",
24 "util/denoiser_filter_c.cc",
25 "util/denoiser_filter_c.h",
jackychenfa0befe2016-04-01 07:46:58 -070026 "util/noise_estimation.cc",
27 "util/noise_estimation.h",
jackychen8f9902a2015-11-26 02:59:48 -080028 "util/skin_detection.cc",
29 "util/skin_detection.h",
Henrik Kjellander0f59a882015-11-18 22:31:24 +010030 "video_decimator.cc",
31 "video_decimator.h",
jackychen8f9902a2015-11-26 02:59:48 -080032 "video_denoiser.cc",
33 "video_denoiser.h",
Henrik Kjellander0f59a882015-11-18 22:31:24 +010034 "video_processing_impl.cc",
35 "video_processing_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000036 ]
37
38 deps = [
39 "../../common_audio",
40 "../../common_video",
41 "../../modules/utility",
42 "../../system_wrappers",
43 ]
44 if (build_video_processing_sse2) {
45 deps += [ ":video_processing_sse2" ]
46 }
jackychen8f9902a2015-11-26 02:59:48 -080047 if (rtc_build_with_neon) {
48 deps += [ ":video_processing_neon" ]
49 }
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000050
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000051 configs += [ "../..:common_config" ]
52 public_configs = [ "../..:common_inherited_config" ]
53
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000054 if (is_clang) {
55 # Suppress warnings from Chrome's Clang plugins.
56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
57 configs -= [ "//build/config/clang:find_bad_constructs" ]
58 }
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000059}
60
61if (build_video_processing_sse2) {
62 source_set("video_processing_sse2") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020063 sources = [
jackychen8f9902a2015-11-26 02:59:48 -080064 "util/denoiser_filter_sse2.cc",
65 "util/denoiser_filter_sse2.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020066 ]
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000067
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000068 configs += [ "../..:common_config" ]
69 public_configs = [ "../..:common_inherited_config" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000070
71 if (is_clang) {
72 # Suppress warnings from Chrome's Clang plugins.
73 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
74 configs -= [ "//build/config/clang:find_bad_constructs" ]
75 }
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000076
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000077 if (is_posix) {
78 cflags = [ "-msse2" ]
79 }
80 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000081}
jackychen8f9902a2015-11-26 02:59:48 -080082
83if (rtc_build_with_neon) {
84 source_set("video_processing_neon") {
85 sources = [
86 "util/denoiser_filter_neon.cc",
87 "util/denoiser_filter_neon.h",
88 ]
89 if (current_cpu != "arm64") {
90 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
91 cflags = [ "-mfpu=neon" ]
92 }
Magnus Jedvert8779a772015-11-27 12:02:52 +010093 configs += [ "../..:common_config" ]
94 public_configs = [ "../..:common_inherited_config" ]
jackychen8f9902a2015-11-26 02:59:48 -080095 }
96}