Chromium Code Reviews| 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/denoiser_filter_c.cc", | |
| 33 "util/denoiser_filter_c.h", | |
| 34 "util/skin_detection.cc", | |
| 35 "util/skin_detection.h", | |
| 29 "video_decimator.cc", | 36 "video_decimator.cc", |
| 30 "video_decimator.h", | 37 "video_decimator.h", |
| 38 "video_denoiser.cc", | |
| 39 "video_denoiser.h", | |
| 31 "video_processing_impl.cc", | 40 "video_processing_impl.cc", |
| 32 "video_processing_impl.h", | 41 "video_processing_impl.h", |
| 33 ] | 42 ] |
| 34 | 43 |
| 35 deps = [ | 44 deps = [ |
| 36 "../../common_audio", | 45 "../../common_audio", |
| 37 "../../common_video", | 46 "../../common_video", |
| 38 "../../modules/utility", | 47 "../../modules/utility", |
| 39 "../../system_wrappers", | 48 "../../system_wrappers", |
| 40 ] | 49 ] |
| 41 if (build_video_processing_sse2) { | 50 if (build_video_processing_sse2) { |
| 42 deps += [ ":video_processing_sse2" ] | 51 deps += [ ":video_processing_sse2" ] |
| 43 } | 52 } |
| 53 if (rtc_build_with_neon) { | |
| 54 deps += [ ":video_processing_neon" ] | |
| 55 } | |
| 44 | 56 |
| 45 configs += [ "../..:common_config" ] | 57 configs += [ "../..:common_config" ] |
| 46 public_configs = [ "../..:common_inherited_config" ] | 58 public_configs = [ "../..:common_inherited_config" ] |
| 47 | 59 |
| 48 if (is_clang) { | 60 if (is_clang) { |
| 49 # Suppress warnings from Chrome's Clang plugins. | 61 # Suppress warnings from Chrome's Clang plugins. |
| 50 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 62 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 51 configs -= [ "//build/config/clang:find_bad_constructs" ] | 63 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 52 } | 64 } |
| 53 } | 65 } |
| 54 | 66 |
| 55 if (build_video_processing_sse2) { | 67 if (build_video_processing_sse2) { |
| 56 source_set("video_processing_sse2") { | 68 source_set("video_processing_sse2") { |
| 57 sources = [ | 69 sources = [ |
| 58 "content_analysis_sse2.cc", | 70 "content_analysis_sse2.cc", |
| 71 "util/denoiser_filter_sse2.cc", | |
| 72 "util/denoiser_filter_sse2.h", | |
| 59 ] | 73 ] |
| 60 | 74 |
| 61 configs += [ "../..:common_config" ] | 75 configs += [ "../..:common_config" ] |
| 62 public_configs = [ "../..:common_inherited_config" ] | 76 public_configs = [ "../..:common_inherited_config" ] |
| 63 | 77 |
| 64 if (is_clang) { | 78 if (is_clang) { |
| 65 # Suppress warnings from Chrome's Clang plugins. | 79 # Suppress warnings from Chrome's Clang plugins. |
| 66 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 80 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 67 configs -= [ "//build/config/clang:find_bad_constructs" ] | 81 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 68 } | 82 } |
| 69 | 83 |
| 70 if (is_posix) { | 84 if (is_posix) { |
| 71 cflags = [ "-msse2" ] | 85 cflags = [ "-msse2" ] |
| 72 } | 86 } |
| 73 } | 87 } |
| 74 } | 88 } |
| 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 } | |
| 100 } | |
|
kjellander_webrtc
2015/11/26 16:28:36
Our FYI bots used for rolling are failing the Andr
| |
| 101 } | |
| OLD | NEW |