kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 9 | import("//build/config/arm.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | import("../../build/webrtc.gni") |
| 11 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 12 | build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 13 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 14 | source_set("video_processing") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 15 | sources = [ |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 16 | "brightness_detection.cc", |
| 17 | "brightness_detection.h", |
| 18 | "content_analysis.cc", |
| 19 | "content_analysis.h", |
| 20 | "deflickering.cc", |
| 21 | "deflickering.h", |
| 22 | "frame_preprocessor.cc", |
| 23 | "frame_preprocessor.h", |
| 24 | "include/video_processing.h", |
| 25 | "include/video_processing_defines.h", |
| 26 | "spatial_resampler.cc", |
| 27 | "spatial_resampler.h", |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 28 | "util/denoiser_filter.cc", |
| 29 | "util/denoiser_filter.h", |
| 30 | "util/denoiser_filter_c.cc", |
| 31 | "util/denoiser_filter_c.h", |
jackychen | fa0befe | 2016-04-01 07:46:58 -0700 | [diff] [blame^] | 32 | "util/noise_estimation.cc", |
| 33 | "util/noise_estimation.h", |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 34 | "util/skin_detection.cc", |
| 35 | "util/skin_detection.h", |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 36 | "video_decimator.cc", |
| 37 | "video_decimator.h", |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 38 | "video_denoiser.cc", |
| 39 | "video_denoiser.h", |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 40 | "video_processing_impl.cc", |
| 41 | "video_processing_impl.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 42 | ] |
| 43 | |
| 44 | deps = [ |
| 45 | "../../common_audio", |
| 46 | "../../common_video", |
| 47 | "../../modules/utility", |
| 48 | "../../system_wrappers", |
| 49 | ] |
| 50 | if (build_video_processing_sse2) { |
| 51 | deps += [ ":video_processing_sse2" ] |
| 52 | } |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 53 | if (rtc_build_with_neon) { |
| 54 | deps += [ ":video_processing_neon" ] |
| 55 | } |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 56 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 57 | configs += [ "../..:common_config" ] |
| 58 | public_configs = [ "../..:common_inherited_config" ] |
| 59 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 60 | if (is_clang) { |
| 61 | # Suppress warnings from Chrome's Clang plugins. |
| 62 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 63 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 64 | } |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | if (build_video_processing_sse2) { |
| 68 | source_set("video_processing_sse2") { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 69 | sources = [ |
Henrik Kjellander | 0f59a88 | 2015-11-18 22:31:24 +0100 | [diff] [blame] | 70 | "content_analysis_sse2.cc", |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 71 | "util/denoiser_filter_sse2.cc", |
| 72 | "util/denoiser_filter_sse2.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 73 | ] |
kjellander@webrtc.org | 4a25199 | 2014-08-18 17:56:28 +0000 | [diff] [blame] | 74 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 75 | configs += [ "../..:common_config" ] |
| 76 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 77 | |
| 78 | if (is_clang) { |
| 79 | # Suppress warnings from Chrome's Clang plugins. |
| 80 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 81 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 82 | } |
kjellander@webrtc.org | 4a25199 | 2014-08-18 17:56:28 +0000 | [diff] [blame] | 83 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 84 | if (is_posix) { |
| 85 | cflags = [ "-msse2" ] |
| 86 | } |
| 87 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 88 | } |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 89 | |
| 90 | if (rtc_build_with_neon) { |
| 91 | source_set("video_processing_neon") { |
| 92 | sources = [ |
| 93 | "util/denoiser_filter_neon.cc", |
| 94 | "util/denoiser_filter_neon.h", |
| 95 | ] |
| 96 | if (current_cpu != "arm64") { |
| 97 | configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 98 | cflags = [ "-mfpu=neon" ] |
| 99 | } |
Magnus Jedvert | 8779a77 | 2015-11-27 12:02:52 +0100 | [diff] [blame] | 100 | configs += [ "../..:common_config" ] |
| 101 | public_configs = [ "../..:common_inherited_config" ] |
jackychen | 8f9902a | 2015-11-26 02:59:48 -0800 | [diff] [blame] | 102 | } |
| 103 | } |