blob: 3f2c9e621d3eaa11de3d6c394b92c9dbd28013c7 [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",
Mirko Bonadeiac194142018-10-22 17:08:37 +020034 "../../rtc_base/system:rtc_export",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +020035 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020036 ]
37}
38
39rtc_source_set("video_frame_i420") {
40 visibility = [ "*" ]
41 sources = [
42 "i420_buffer.cc",
43 "i420_buffer.h",
44 ]
45 deps = [
46 ":video_frame",
47 "../../rtc_base:checks",
48 "../../rtc_base:rtc_base",
49 "../../rtc_base/memory:aligned_malloc",
50 "//third_party/libyuv",
51 ]
52}
53
Emircan Uysaler901e0ff2018-06-26 12:22:38 -070054rtc_source_set("video_frame_i010") {
55 visibility = [ "*" ]
56 sources = [
57 "i010_buffer.cc",
58 "i010_buffer.h",
59 ]
60 deps = [
61 ":video_frame",
62 ":video_frame_i420",
63 "../../rtc_base:checks",
64 "../../rtc_base:rtc_base",
65 "../../rtc_base/memory:aligned_malloc",
66 "//third_party/libyuv",
67 ]
68}
69
Niels Möller4dc66c52018-10-05 14:17:58 +020070rtc_source_set("encoded_image") {
71 sources = [
72 "encoded_image.cc",
73 "encoded_image.h",
74 ]
75 deps = [
76 ":video_frame",
77 "../..:webrtc_common",
Yves Gerey988cc082018-10-23 12:03:01 +020078
79 # TODO(bugs.webrtc.org/8311) Cleanup when kMaxSpatialLayers is moved to proper include.
80 "../../api/video:video_bitrate_allocation",
Niels Möller4dc66c52018-10-05 14:17:58 +020081 "../../rtc_base:checks",
82 "../../rtc_base:rtc_base_approved",
Mirko Bonadeiac194142018-10-22 17:08:37 +020083 "../../rtc_base/system:rtc_export",
Niels Möller4dc66c52018-10-05 14:17:58 +020084 "//third_party/abseil-cpp/absl/types:optional",
85 ]
86}
87
Niels Möllerc6ce9c52018-05-11 11:15:30 +020088rtc_source_set("encoded_frame") {
89 visibility = [ "*" ]
90 sources = [
91 "encoded_frame.cc",
92 "encoded_frame.h",
93 ]
94
95 deps = [
96 "../../modules/video_coding:encoded_frame",
97 ]
98}
99
100rtc_source_set("video_bitrate_allocation") {
101 visibility = [ "*" ]
102 sources = [
103 "video_bitrate_allocation.cc",
104 "video_bitrate_allocation.h",
105 ]
106 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200107 "../../rtc_base:checks",
108 "../../rtc_base:safe_conversions",
109 "../../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200110 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200111 ]
112}
113
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700114rtc_source_set("video_bitrate_allocator") {
115 visibility = [ "*" ]
116 sources = [
117 "video_bitrate_allocator.h",
118 ]
119 deps = [
120 ":video_bitrate_allocation",
121 ]
122}
123
Jiawei Ou51ef0082018-08-13 10:21:21 -0700124rtc_source_set("video_bitrate_allocator_factory") {
125 visibility = [ "*" ]
126 sources = [
127 "video_bitrate_allocator_factory.h",
128 ]
129 deps = [
130 ":video_bitrate_allocator",
Jiawei Oue4749c22018-08-21 16:29:36 -0700131 "../video_codecs:video_codecs_api",
Jiawei Ou51ef0082018-08-13 10:21:21 -0700132 ]
133}
134
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200135rtc_source_set("video_stream_decoder") {
136 visibility = [ "*" ]
137 sources = [
138 "video_stream_decoder.h",
139 ]
140
141 deps = [
142 ":encoded_frame",
143 ":video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200144 "../video_codecs:video_codecs_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200145 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200146 ]
147}
148
149rtc_source_set("video_stream_decoder_create") {
150 visibility = [ "*" ]
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200151 sources = [
152 "video_stream_decoder_create.cc",
153 "video_stream_decoder_create.h",
154 ]
155
156 deps = [
157 ":video_stream_decoder",
158 "../../rtc_base:rtc_base_approved",
159 "../../video:video_stream_decoder_impl",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200160 "//third_party/abseil-cpp/absl/memory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200161 ]
162}
Niels Möller0327c2d2018-05-21 14:09:31 +0200163
164rtc_source_set("video_stream_encoder") {
165 visibility = [ "*" ]
166 sources = [
167 "video_stream_encoder_interface.h",
Mirko Bonadei8fdcac32018-08-28 16:30:18 +0200168 "video_stream_encoder_observer.cc",
Niels Möller213618e2018-07-24 09:29:58 +0200169 "video_stream_encoder_observer.h",
170 "video_stream_encoder_settings.h",
Niels Möller0327c2d2018-05-21 14:09:31 +0200171 ]
172
173 deps = [
174 ":video_frame",
175
176 # For rtpparameters.h
177 "..:libjingle_peerconnection_api",
178 "../video_codecs:video_codecs_api",
Niels Möller213618e2018-07-24 09:29:58 +0200179 "//third_party/abseil-cpp/absl/types:optional",
180 ]
181}
182
183rtc_source_set("video_stream_encoder_create") {
184 visibility = [ "*" ]
185 allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove.
186 sources = [
187 "video_stream_encoder_create.cc",
188 "video_stream_encoder_create.h",
189 ]
190
191 if (!build_with_chromium && is_clang) {
192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
194 }
195
196 deps = [
197 ":video_stream_encoder",
198 "../../rtc_base:ptr_util",
199 "../../video:video_stream_encoder_impl",
200 "../video_codecs:video_codecs_api",
Karl Wibergc2342032018-08-08 11:39:52 +0200201 "//third_party/abseil-cpp/absl/memory",
Niels Möller0327c2d2018-05-21 14:09:31 +0200202 ]
203}