blob: 214a7dfed5edeb215319fa95c2ab60a11a371329 [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 "content_analysis.cc",
17 "content_analysis.h",
Henrik Kjellander0f59a882015-11-18 22:31:24 +010018 "frame_preprocessor.cc",
19 "frame_preprocessor.h",
20 "include/video_processing.h",
21 "include/video_processing_defines.h",
22 "spatial_resampler.cc",
23 "spatial_resampler.h",
jackychen8f9902a2015-11-26 02:59:48 -080024 "util/denoiser_filter.cc",
25 "util/denoiser_filter.h",
26 "util/denoiser_filter_c.cc",
27 "util/denoiser_filter_c.h",
jackychenfa0befe2016-04-01 07:46:58 -070028 "util/noise_estimation.cc",
29 "util/noise_estimation.h",
jackychen8f9902a2015-11-26 02:59:48 -080030 "util/skin_detection.cc",
31 "util/skin_detection.h",
Henrik Kjellander0f59a882015-11-18 22:31:24 +010032 "video_decimator.cc",
33 "video_decimator.h",
jackychen8f9902a2015-11-26 02:59:48 -080034 "video_denoiser.cc",
35 "video_denoiser.h",
Henrik Kjellander0f59a882015-11-18 22:31:24 +010036 "video_processing_impl.cc",
37 "video_processing_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000038 ]
39
40 deps = [
41 "../../common_audio",
42 "../../common_video",
43 "../../modules/utility",
44 "../../system_wrappers",
45 ]
46 if (build_video_processing_sse2) {
47 deps += [ ":video_processing_sse2" ]
48 }
jackychen8f9902a2015-11-26 02:59:48 -080049 if (rtc_build_with_neon) {
50 deps += [ ":video_processing_neon" ]
51 }
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000052
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000053 configs += [ "../..:common_config" ]
54 public_configs = [ "../..:common_inherited_config" ]
55
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000056 if (is_clang) {
57 # Suppress warnings from Chrome's Clang plugins.
58 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
59 configs -= [ "//build/config/clang:find_bad_constructs" ]
60 }
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000061}
62
63if (build_video_processing_sse2) {
64 source_set("video_processing_sse2") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020065 sources = [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010066 "content_analysis_sse2.cc",
jackychen8f9902a2015-11-26 02:59:48 -080067 "util/denoiser_filter_sse2.cc",
68 "util/denoiser_filter_sse2.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020069 ]
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000070
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000071 configs += [ "../..:common_config" ]
72 public_configs = [ "../..:common_inherited_config" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000073
74 if (is_clang) {
75 # Suppress warnings from Chrome's Clang plugins.
76 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
77 configs -= [ "//build/config/clang:find_bad_constructs" ]
78 }
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000079
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000080 if (is_posix) {
81 cflags = [ "-msse2" ]
82 }
83 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000084}
jackychen8f9902a2015-11-26 02:59:48 -080085
86if (rtc_build_with_neon) {
87 source_set("video_processing_neon") {
88 sources = [
89 "util/denoiser_filter_neon.cc",
90 "util/denoiser_filter_neon.h",
91 ]
92 if (current_cpu != "arm64") {
93 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
94 cflags = [ "-mfpu=neon" ]
95 }
Magnus Jedvert8779a772015-11-27 12:02:52 +010096 configs += [ "../..:common_config" ]
97 public_configs = [ "../..:common_inherited_config" ]
jackychen8f9902a2015-11-26 02:59:48 -080098 }
99}