blob: d04126021da5a6c1a292cc5b5289c502eaa5f800 [file] [log] [blame]
Niels Möllerc6ce9c52018-05-11 11:15:30 +02001# Copyright (c) 2018 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("../../webrtc.gni")
10
11rtc_source_set("video_frame") {
12 visibility = [ "*" ]
13 sources = [
Emircan Uysaler800787f2018-07-16 10:01:49 -070014 "color_space.cc",
15 "color_space.h",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020016 "video_content_type.cc",
17 "video_content_type.h",
18 "video_frame.cc",
19 "video_frame.h",
20 "video_frame_buffer.cc",
21 "video_frame_buffer.h",
Johnny Leee0c8b232018-09-11 16:50:49 -040022 "video_frame_marking.h",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020023 "video_rotation.h",
24 "video_sink_interface.h",
Niels Möller0327c2d2018-05-21 14:09:31 +020025 "video_source_interface.cc",
26 "video_source_interface.h",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020027 "video_timing.cc",
28 "video_timing.h",
29 ]
30
31 deps = [
32 "../../rtc_base:checks",
33 "../../rtc_base:rtc_base_approved",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020034 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020035 ]
36}
37
38rtc_source_set("video_frame_i420") {
39 visibility = [ "*" ]
40 sources = [
41 "i420_buffer.cc",
42 "i420_buffer.h",
43 ]
44 deps = [
45 ":video_frame",
46 "../../rtc_base:checks",
47 "../../rtc_base:rtc_base",
48 "../../rtc_base/memory:aligned_malloc",
49 "//third_party/libyuv",
50 ]
51}
52
Emircan Uysaler901e0ff2018-06-26 12:22:38 -070053rtc_source_set("video_frame_i010") {
54 visibility = [ "*" ]
55 sources = [
56 "i010_buffer.cc",
57 "i010_buffer.h",
58 ]
59 deps = [
60 ":video_frame",
61 ":video_frame_i420",
62 "../../rtc_base:checks",
63 "../../rtc_base:rtc_base",
64 "../../rtc_base/memory:aligned_malloc",
65 "//third_party/libyuv",
66 ]
67}
68
Niels Möllerc6ce9c52018-05-11 11:15:30 +020069rtc_source_set("encoded_frame") {
70 visibility = [ "*" ]
71 sources = [
72 "encoded_frame.cc",
73 "encoded_frame.h",
74 ]
75
76 deps = [
77 "../../modules/video_coding:encoded_frame",
78 ]
79}
80
81rtc_source_set("video_bitrate_allocation") {
82 visibility = [ "*" ]
83 sources = [
84 "video_bitrate_allocation.cc",
85 "video_bitrate_allocation.h",
86 ]
87 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +020088 "../../rtc_base:checks",
89 "../../rtc_base:safe_conversions",
90 "../../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020091 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020092 ]
93}
94
Jiawei Ou4206a0a2018-07-20 15:49:43 -070095rtc_source_set("video_bitrate_allocator") {
96 visibility = [ "*" ]
97 sources = [
98 "video_bitrate_allocator.h",
99 ]
100 deps = [
101 ":video_bitrate_allocation",
102 ]
103}
104
Jiawei Ou51ef0082018-08-13 10:21:21 -0700105rtc_source_set("video_bitrate_allocator_factory") {
106 visibility = [ "*" ]
107 sources = [
108 "video_bitrate_allocator_factory.h",
109 ]
110 deps = [
111 ":video_bitrate_allocator",
Jiawei Oue4749c22018-08-21 16:29:36 -0700112 "../video_codecs:video_codecs_api",
Jiawei Ou51ef0082018-08-13 10:21:21 -0700113 ]
114}
115
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200116rtc_source_set("video_stream_decoder") {
117 visibility = [ "*" ]
118 sources = [
119 "video_stream_decoder.h",
120 ]
121
122 deps = [
123 ":encoded_frame",
124 ":video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200125 "../video_codecs:video_codecs_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200126 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200127 ]
128}
129
130rtc_source_set("video_stream_decoder_create") {
131 visibility = [ "*" ]
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200132 sources = [
133 "video_stream_decoder_create.cc",
134 "video_stream_decoder_create.h",
135 ]
136
137 deps = [
138 ":video_stream_decoder",
139 "../../rtc_base:rtc_base_approved",
140 "../../video:video_stream_decoder_impl",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200141 "//third_party/abseil-cpp/absl/memory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200142 ]
143}
Niels Möller0327c2d2018-05-21 14:09:31 +0200144
145rtc_source_set("video_stream_encoder") {
146 visibility = [ "*" ]
147 sources = [
148 "video_stream_encoder_interface.h",
Mirko Bonadei8fdcac32018-08-28 16:30:18 +0200149 "video_stream_encoder_observer.cc",
Niels Möller213618e2018-07-24 09:29:58 +0200150 "video_stream_encoder_observer.h",
151 "video_stream_encoder_settings.h",
Niels Möller0327c2d2018-05-21 14:09:31 +0200152 ]
153
154 deps = [
155 ":video_frame",
156
157 # For rtpparameters.h
158 "..:libjingle_peerconnection_api",
159 "../video_codecs:video_codecs_api",
Niels Möller213618e2018-07-24 09:29:58 +0200160 "//third_party/abseil-cpp/absl/types:optional",
161 ]
162}
163
164rtc_source_set("video_stream_encoder_create") {
165 visibility = [ "*" ]
166 allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove.
167 sources = [
168 "video_stream_encoder_create.cc",
169 "video_stream_encoder_create.h",
170 ]
171
172 if (!build_with_chromium && is_clang) {
173 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
174 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
175 }
176
177 deps = [
178 ":video_stream_encoder",
179 "../../rtc_base:ptr_util",
180 "../../video:video_stream_encoder_impl",
181 "../video_codecs:video_codecs_api",
Karl Wibergc2342032018-08-08 11:39:52 +0200182 "//third_party/abseil-cpp/absl/memory",
Niels Möller0327c2d2018-05-21 14:09:31 +0200183 ]
184}