blob: be6958088401e03ac4f3436ad46b332b05781f54 [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",
78 "../../rtc_base:checks",
79 "../../rtc_base:rtc_base_approved",
Mirko Bonadeiac194142018-10-22 17:08:37 +020080 "../../rtc_base/system:rtc_export",
Niels Möller4dc66c52018-10-05 14:17:58 +020081 "//third_party/abseil-cpp/absl/types:optional",
82 ]
83}
84
Niels Möllerc6ce9c52018-05-11 11:15:30 +020085rtc_source_set("encoded_frame") {
86 visibility = [ "*" ]
87 sources = [
88 "encoded_frame.cc",
89 "encoded_frame.h",
90 ]
91
92 deps = [
93 "../../modules/video_coding:encoded_frame",
94 ]
95}
96
97rtc_source_set("video_bitrate_allocation") {
98 visibility = [ "*" ]
99 sources = [
100 "video_bitrate_allocation.cc",
101 "video_bitrate_allocation.h",
102 ]
103 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200104 "../../rtc_base:checks",
105 "../../rtc_base:safe_conversions",
106 "../../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200107 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200108 ]
109}
110
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700111rtc_source_set("video_bitrate_allocator") {
112 visibility = [ "*" ]
113 sources = [
114 "video_bitrate_allocator.h",
115 ]
116 deps = [
117 ":video_bitrate_allocation",
118 ]
119}
120
Jiawei Ou51ef0082018-08-13 10:21:21 -0700121rtc_source_set("video_bitrate_allocator_factory") {
122 visibility = [ "*" ]
123 sources = [
124 "video_bitrate_allocator_factory.h",
125 ]
126 deps = [
127 ":video_bitrate_allocator",
Jiawei Oue4749c22018-08-21 16:29:36 -0700128 "../video_codecs:video_codecs_api",
Jiawei Ou51ef0082018-08-13 10:21:21 -0700129 ]
130}
131
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200132rtc_source_set("video_stream_decoder") {
133 visibility = [ "*" ]
134 sources = [
135 "video_stream_decoder.h",
136 ]
137
138 deps = [
139 ":encoded_frame",
140 ":video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200141 "../video_codecs:video_codecs_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200142 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200143 ]
144}
145
146rtc_source_set("video_stream_decoder_create") {
147 visibility = [ "*" ]
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200148 sources = [
149 "video_stream_decoder_create.cc",
150 "video_stream_decoder_create.h",
151 ]
152
153 deps = [
154 ":video_stream_decoder",
155 "../../rtc_base:rtc_base_approved",
156 "../../video:video_stream_decoder_impl",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200157 "//third_party/abseil-cpp/absl/memory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200158 ]
159}
Niels Möller0327c2d2018-05-21 14:09:31 +0200160
161rtc_source_set("video_stream_encoder") {
162 visibility = [ "*" ]
163 sources = [
164 "video_stream_encoder_interface.h",
Mirko Bonadei8fdcac32018-08-28 16:30:18 +0200165 "video_stream_encoder_observer.cc",
Niels Möller213618e2018-07-24 09:29:58 +0200166 "video_stream_encoder_observer.h",
167 "video_stream_encoder_settings.h",
Niels Möller0327c2d2018-05-21 14:09:31 +0200168 ]
169
170 deps = [
171 ":video_frame",
172
173 # For rtpparameters.h
174 "..:libjingle_peerconnection_api",
175 "../video_codecs:video_codecs_api",
Niels Möller213618e2018-07-24 09:29:58 +0200176 "//third_party/abseil-cpp/absl/types:optional",
177 ]
178}
179
180rtc_source_set("video_stream_encoder_create") {
181 visibility = [ "*" ]
182 allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove.
183 sources = [
184 "video_stream_encoder_create.cc",
185 "video_stream_encoder_create.h",
186 ]
187
188 if (!build_with_chromium && is_clang) {
189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
191 }
192
193 deps = [
194 ":video_stream_encoder",
195 "../../rtc_base:ptr_util",
196 "../../video:video_stream_encoder_impl",
197 "../video_codecs:video_codecs_api",
Karl Wibergc2342032018-08-08 11:39:52 +0200198 "//third_party/abseil-cpp/absl/memory",
Niels Möller0327c2d2018-05-21 14:09:31 +0200199 ]
200}