blob: 3f7100776878400de71b2f56cd594d876031d1cf [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öller4dc66c52018-10-05 14:17:58 +020069rtc_source_set("encoded_image") {
70 sources = [
71 "encoded_image.cc",
72 "encoded_image.h",
73 ]
74 deps = [
75 ":video_frame",
76 "../..:webrtc_common",
77 "../../rtc_base:checks",
78 "../../rtc_base:rtc_base_approved",
79 "//third_party/abseil-cpp/absl/types:optional",
80 ]
81}
82
Niels Möllerc6ce9c52018-05-11 11:15:30 +020083rtc_source_set("encoded_frame") {
84 visibility = [ "*" ]
85 sources = [
86 "encoded_frame.cc",
87 "encoded_frame.h",
88 ]
89
90 deps = [
91 "../../modules/video_coding:encoded_frame",
92 ]
93}
94
95rtc_source_set("video_bitrate_allocation") {
96 visibility = [ "*" ]
97 sources = [
98 "video_bitrate_allocation.cc",
99 "video_bitrate_allocation.h",
100 ]
101 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200102 "../../rtc_base:checks",
103 "../../rtc_base:safe_conversions",
104 "../../rtc_base:stringutils",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200105 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200106 ]
107}
108
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700109rtc_source_set("video_bitrate_allocator") {
110 visibility = [ "*" ]
111 sources = [
112 "video_bitrate_allocator.h",
113 ]
114 deps = [
115 ":video_bitrate_allocation",
116 ]
117}
118
Jiawei Ou51ef0082018-08-13 10:21:21 -0700119rtc_source_set("video_bitrate_allocator_factory") {
120 visibility = [ "*" ]
121 sources = [
122 "video_bitrate_allocator_factory.h",
123 ]
124 deps = [
125 ":video_bitrate_allocator",
Jiawei Oue4749c22018-08-21 16:29:36 -0700126 "../video_codecs:video_codecs_api",
Jiawei Ou51ef0082018-08-13 10:21:21 -0700127 ]
128}
129
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200130rtc_source_set("video_stream_decoder") {
131 visibility = [ "*" ]
132 sources = [
133 "video_stream_decoder.h",
134 ]
135
136 deps = [
137 ":encoded_frame",
138 ":video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200139 "../video_codecs:video_codecs_api",
Danil Chapovalov0bc58cf2018-06-21 13:32:56 +0200140 "//third_party/abseil-cpp/absl/types:optional",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200141 ]
142}
143
144rtc_source_set("video_stream_decoder_create") {
145 visibility = [ "*" ]
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200146 sources = [
147 "video_stream_decoder_create.cc",
148 "video_stream_decoder_create.h",
149 ]
150
151 deps = [
152 ":video_stream_decoder",
153 "../../rtc_base:rtc_base_approved",
154 "../../video:video_stream_decoder_impl",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200155 "//third_party/abseil-cpp/absl/memory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200156 ]
157}
Niels Möller0327c2d2018-05-21 14:09:31 +0200158
159rtc_source_set("video_stream_encoder") {
160 visibility = [ "*" ]
161 sources = [
162 "video_stream_encoder_interface.h",
Mirko Bonadei8fdcac32018-08-28 16:30:18 +0200163 "video_stream_encoder_observer.cc",
Niels Möller213618e2018-07-24 09:29:58 +0200164 "video_stream_encoder_observer.h",
165 "video_stream_encoder_settings.h",
Niels Möller0327c2d2018-05-21 14:09:31 +0200166 ]
167
168 deps = [
169 ":video_frame",
170
171 # For rtpparameters.h
172 "..:libjingle_peerconnection_api",
173 "../video_codecs:video_codecs_api",
Niels Möller213618e2018-07-24 09:29:58 +0200174 "//third_party/abseil-cpp/absl/types:optional",
175 ]
176}
177
178rtc_source_set("video_stream_encoder_create") {
179 visibility = [ "*" ]
180 allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove.
181 sources = [
182 "video_stream_encoder_create.cc",
183 "video_stream_encoder_create.h",
184 ]
185
186 if (!build_with_chromium && is_clang) {
187 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
188 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
189 }
190
191 deps = [
192 ":video_stream_encoder",
193 "../../rtc_base:ptr_util",
194 "../../video:video_stream_encoder_impl",
195 "../video_codecs:video_codecs_api",
Karl Wibergc2342032018-08-08 11:39:52 +0200196 "//third_party/abseil-cpp/absl/memory",
Niels Möller0327c2d2018-05-21 14:09:31 +0200197 ]
198}