OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
| 9 import("//build/config/arm.gni") |
9 import("../../build/webrtc.gni") | 10 import("../../build/webrtc.gni") |
10 | 11 |
11 build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" | 12 build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" |
12 | 13 |
13 source_set("video_processing") { | 14 source_set("video_processing") { |
14 sources = [ | 15 sources = [ |
15 "brighten.cc", | 16 "brighten.cc", |
16 "brighten.h", | 17 "brighten.h", |
17 "brightness_detection.cc", | 18 "brightness_detection.cc", |
18 "brightness_detection.h", | 19 "brightness_detection.h", |
19 "content_analysis.cc", | 20 "content_analysis.cc", |
20 "content_analysis.h", | 21 "content_analysis.h", |
21 "deflickering.cc", | 22 "deflickering.cc", |
22 "deflickering.h", | 23 "deflickering.h", |
23 "frame_preprocessor.cc", | 24 "frame_preprocessor.cc", |
24 "frame_preprocessor.h", | 25 "frame_preprocessor.h", |
25 "include/video_processing.h", | 26 "include/video_processing.h", |
26 "include/video_processing_defines.h", | 27 "include/video_processing_defines.h", |
27 "spatial_resampler.cc", | 28 "spatial_resampler.cc", |
28 "spatial_resampler.h", | 29 "spatial_resampler.h", |
| 30 "util/denoiser_filter.cc", |
| 31 "util/denoiser_filter.h", |
| 32 "util/skin_detection.cc", |
| 33 "util/skin_detection.h", |
29 "video_decimator.cc", | 34 "video_decimator.cc", |
30 "video_decimator.h", | 35 "video_decimator.h", |
| 36 "video_denoiser.cc", |
| 37 "video_denoiser.h", |
31 "video_processing_impl.cc", | 38 "video_processing_impl.cc", |
32 "video_processing_impl.h", | 39 "video_processing_impl.h", |
33 ] | 40 ] |
34 | 41 |
35 deps = [ | 42 deps = [ |
36 "../../common_audio", | 43 "../../common_audio", |
37 "../../common_video", | 44 "../../common_video", |
38 "../../modules/utility", | 45 "../../modules/utility", |
39 "../../system_wrappers", | 46 "../../system_wrappers", |
40 ] | 47 ] |
41 if (build_video_processing_sse2) { | 48 if (build_video_processing_sse2) { |
42 deps += [ ":video_processing_sse2" ] | 49 deps += [ ":video_processing_sse2" ] |
43 } | 50 } |
| 51 if (rtc_build_with_neon) { |
| 52 deps += [ ":video_processing_neon" ] |
| 53 } |
44 | 54 |
45 configs += [ "../..:common_config" ] | 55 configs += [ "../..:common_config" ] |
46 public_configs = [ "../..:common_inherited_config" ] | 56 public_configs = [ "../..:common_inherited_config" ] |
47 | 57 |
48 if (is_clang) { | 58 if (is_clang) { |
49 # Suppress warnings from Chrome's Clang plugins. | 59 # Suppress warnings from Chrome's Clang plugins. |
50 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 60 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
51 configs -= [ "//build/config/clang:find_bad_constructs" ] | 61 configs -= [ "//build/config/clang:find_bad_constructs" ] |
52 } | 62 } |
53 } | 63 } |
54 | 64 |
55 if (build_video_processing_sse2) { | 65 if (build_video_processing_sse2) { |
56 source_set("video_processing_sse2") { | 66 source_set("video_processing_sse2") { |
57 sources = [ | 67 sources = [ |
58 "content_analysis_sse2.cc", | 68 "content_analysis_sse2.cc", |
| 69 "util/denoiser_filter_sse2.cc", |
| 70 "util/denoiser_filter_sse2.h", |
59 ] | 71 ] |
60 | 72 |
61 configs += [ "../..:common_config" ] | 73 configs += [ "../..:common_config" ] |
62 public_configs = [ "../..:common_inherited_config" ] | 74 public_configs = [ "../..:common_inherited_config" ] |
63 | 75 |
64 if (is_clang) { | 76 if (is_clang) { |
65 # Suppress warnings from Chrome's Clang plugins. | 77 # Suppress warnings from Chrome's Clang plugins. |
66 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 78 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
67 configs -= [ "//build/config/clang:find_bad_constructs" ] | 79 configs -= [ "//build/config/clang:find_bad_constructs" ] |
68 } | 80 } |
69 | 81 |
70 if (is_posix) { | 82 if (is_posix) { |
71 cflags = [ "-msse2" ] | 83 cflags = [ "-msse2" ] |
72 } | 84 } |
73 } | 85 } |
74 } | 86 } |
| 87 |
| 88 if (rtc_build_with_neon) { |
| 89 source_set("video_processing_neon") { |
| 90 sources = [ |
| 91 "util/denoiser_filter_neon.cc", |
| 92 "util/denoiser_filter_neon.h", |
| 93 ] |
| 94 if (current_cpu != "arm64") { |
| 95 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 96 cflags = [ "-mfpu=neon" ] |
| 97 } |
| 98 } |
| 99 } |
OLD | NEW |