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 9 import("../../build/webrtc.gni") 10 11 build_video_processing_sse2 = cpu_arch == "x86" || cpu_arch == "x64" 12 13 source_set("video_processing") { 14 sources = [ 15 "main/interface/video_processing.h", 16 "main/interface/video_processing_defines.h", 17 "main/source/brighten.cc", 18 "main/source/brighten.h", 19 "main/source/brightness_detection.cc", 20 "main/source/brightness_detection.h", 21 "main/source/color_enhancement.cc", 22 "main/source/color_enhancement.h", 23 "main/source/color_enhancement_private.h", 24 "main/source/content_analysis.cc", 25 "main/source/content_analysis.h", 26 "main/source/deflickering.cc", 27 "main/source/deflickering.h", 28 "main/source/frame_preprocessor.cc", 29 "main/source/frame_preprocessor.h", 30 "main/source/spatial_resampler.cc", 31 "main/source/spatial_resampler.h", 32 "main/source/video_decimator.cc", 33 "main/source/video_decimator.h", 34 "main/source/video_processing_impl.cc", 35 "main/source/video_processing_impl.h", 36 ] 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 } 47 48 if (is_clang) { 49 # Suppress warnings from Chrome's Clang plugins. 50 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 51 configs -= [ "//build/config/clang:find_bad_constructs" ] 52 } 53 } 54 55 if (build_video_processing_sse2) { 56 source_set("video_processing_sse2") { 57 sources = [ "main/source/content_analysis_sse2.cc" ] 58 59 configs += [ "../..:common_inherited_config" ] 60 61 if (is_clang) { 62 # Suppress warnings from Chrome's Clang plugins. 63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 64 configs -= [ "//build/config/clang:find_bad_constructs" ] 65 } 66 67 if (is_posix) { 68 cflags = [ "-msse2" ] 69 } 70 } 71 } 72