blob: 724a9dcb70728c71ab41259c8c1e8f1e906822ec [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
9import("../../build/webrtc.gni")
10
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000011build_video_processing_sse2 = cpu_arch == "x86" || cpu_arch == "x64"
12
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013source_set("video_processing") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000014 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/denoising.cc",
29 "main/source/denoising.h",
30 "main/source/frame_preprocessor.cc",
31 "main/source/frame_preprocessor.h",
32 "main/source/spatial_resampler.cc",
33 "main/source/spatial_resampler.h",
34 "main/source/video_decimator.cc",
35 "main/source/video_decimator.h",
36 "main/source/video_processing_impl.cc",
37 "main/source/video_processing_impl.h",
38 ]
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 }
49}
50
51if (build_video_processing_sse2) {
52 source_set("video_processing_sse2") {
53 sources = [ "main/source/content_analysis_sse2.cc" ]
54 if (is_posix) {
55 cflags = [ "-msse2" ]
56 }
57 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000058}