blob: f3d9c48fe94de44df5ebcb86b9e174369be62cc6 [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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
philipeld5a272f2018-02-21 14:30:34 +010011rtc_static_library("encoded_frame") {
12 visibility = [ "*" ]
13 sources = [
14 "encoded_frame.cc",
15 "encoded_frame.h",
16 ]
17 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +010018 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +010019 ":video_codec_interface",
Niels Möller4dc66c52018-10-05 14:17:58 +020020 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +010021 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020022 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +020023 "../../api/video:video_rtp_headers",
philipeld5a272f2018-02-21 14:30:34 +010024 "../../modules:module_api",
25 "../../modules:module_api_public",
philipeld5a272f2018-02-21 14:30:34 +010026 "../../rtc_base:checks",
27 "../../rtc_base:rtc_base_approved",
28 "../../rtc_base/experiments:alr_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -050029 "../../rtc_base/experiments:rtt_mult_experiment",
Artem Titov94b57c02019-03-21 13:35:10 +010030 "../../system_wrappers",
Danil Chapovalov0040b662018-06-18 10:48:16 +020031 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +010032 "//third_party/abseil-cpp/absl/types:variant",
philipeld5a272f2018-02-21 14:30:34 +010033 ]
philipeld5a272f2018-02-21 14:30:34 +010034}
35
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020036rtc_static_library("nack_module") {
37 visibility = [ "*" ]
38 sources = [
39 "histogram.cc",
40 "histogram.h",
41 "nack_module.cc",
42 "nack_module.h",
43 ]
44
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020045 deps = [
46 ":packet",
47 "..:module_api",
48 "../../rtc_base:checks",
49 "../../rtc_base:rtc_base_approved",
50 "../../rtc_base:rtc_numerics",
51 "../../system_wrappers",
Ying Wang0367d1a2018-11-02 14:51:15 +010052 "../../system_wrappers:field_trial",
Artem Titov94b57c02019-03-21 13:35:10 +010053 "../utility",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020054 ]
55}
56
57rtc_static_library("packet") {
58 visibility = [ "*" ]
59 sources = [
60 "packet.cc",
61 "packet.h",
62 ]
63 deps = [
64 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +010065 "../../:webrtc_common",
Niels Mölleref1052a2019-03-20 08:40:23 +010066 "../../api:rtp_headers",
Chen Xing5d24b162019-06-10 12:59:38 +020067 "../../api:rtp_packet_info",
Niels Möller8f7ce222019-03-21 15:43:58 +010068 "../../api/video:video_frame_type",
philipel2837edc2018-10-02 13:55:47 +020069 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +010070 "../rtp_rtcp:rtp_video_header",
71 "//third_party/abseil-cpp/absl/types:optional",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020072 ]
73}
74
kjellanderb62dbbe2016-09-23 00:38:52 -070075rtc_static_library("video_coding") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000076 visibility = [ "*" ]
Mirko Bonadei17f48782018-09-28 08:51:10 +020077 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +010078 "..:module_fec_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010079 "../../api:scoped_refptr",
Yves Gerey3e707812018-11-28 16:47:49 +010080 "../../api/video:encoded_image",
81 "../../api/video:video_bitrate_allocation",
82 "../../api/video:video_bitrate_allocator_factory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020083 "../../system_wrappers:field_trial",
84 "../../system_wrappers:metrics",
Yves Gerey3e707812018-11-28 16:47:49 +010085 "../rtp_rtcp:rtp_video_header",
86 "//third_party/abseil-cpp/absl/memory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020087 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010088
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000089 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010090 "codec_timer.cc",
91 "codec_timer.h",
Niels Möllerf9063782018-02-20 16:09:48 +010092 "decoder_database.cc",
93 "decoder_database.h",
Ying Wang3b790f32018-01-19 17:58:57 +010094 "fec_controller_default.cc",
95 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -080096 "fec_rate_table.h",
philipelbe7a9e52016-05-19 12:19:35 +020097 "frame_buffer2.cc",
98 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -070099 "frame_object.cc",
100 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000101 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100102 "generic_decoder.h",
johanb0a11112016-12-08 03:57:17 -0800103 "h264_sprop_parameter_sets.cc",
104 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700105 "h264_sps_pps_tracker.cc",
106 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100107 "include/video_codec_initializer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100108 "inter_frame_delay.cc",
109 "inter_frame_delay.h",
110 "internal_defines.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100111 "jitter_estimator.cc",
112 "jitter_estimator.h",
Elad Alon10874b22019-02-21 16:25:40 +0100113 "loss_notification_controller.cc",
114 "loss_notification_controller.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100115 "media_opt_util.cc",
116 "media_opt_util.h",
philipelc707ab72016-04-01 02:01:54 -0700117 "packet_buffer.cc",
118 "packet_buffer.h",
philipel02447bc2016-05-13 06:01:03 -0700119 "rtp_frame_reference_finder.cc",
120 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100121 "rtt_filter.cc",
122 "rtt_filter.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100123 "timestamp_map.cc",
124 "timestamp_map.h",
125 "timing.cc",
126 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100127 "video_codec_initializer.cc",
Niels Mölleree3d9952019-09-09 12:51:55 +0200128 "video_receiver2.cc",
129 "video_receiver2.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000130 ]
131
Anders Carlssondd8c1652018-01-30 10:32:13 +0100132 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100133 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100134 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200135 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100136 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000137 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200138 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700139 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100140 "..:module_api_public",
Ying Wang3b790f32018-01-19 17:58:57 +0100141 "../../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100142 "../../api:rtp_headers",
Erik Språngd96b2752018-12-13 11:23:27 +0100143 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800144 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200145 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700146 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200147 "../../api/video:video_frame",
148 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200149 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100150 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000151 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100152 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100153 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700154 "../../rtc_base:rtc_base_approved",
155 "../../rtc_base:rtc_numerics",
156 "../../rtc_base:rtc_task_queue",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100157 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100158 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500159 "../../rtc_base/experiments:rtt_mult_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200160 "../../rtc_base/synchronization:sequence_checker",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100161 "../../rtc_base/system:fallthrough",
Sebastian Jansson11d0d7b2019-04-11 12:39:34 +0200162 "../../rtc_base/task_utils:repeating_task",
Artem Titova76af0c2018-07-23 17:38:12 +0200163 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100164 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000165 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100166 "../rtp_rtcp:rtp_rtcp_format",
Elad Alon69321dd2019-01-10 15:02:54 +0100167 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200168 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200169 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000170 ]
171}
172
Patrik Höglund99175c62018-01-08 11:05:10 +0100173rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100174 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100175 sources = [
philipel9df33532019-03-04 16:37:50 +0100176 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100177 "include/video_codec_interface.h",
178 "include/video_coding_defines.h",
179 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200180 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100181 ]
182 deps = [
183 "..:module_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200184 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200185 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100186 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100187 "../../common_video",
188 "../../common_video/generic_frame_descriptor",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200189 "../../rtc_base/system:rtc_export",
Yves Gerey3e707812018-11-28 16:47:49 +0100190 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100191 ]
192}
193
Niels Möller9509d952019-09-10 08:29:17 +0200194rtc_source_set("video_coding_legacy") {
195 visibility = [ ":video_coding_unittests" ]
Niels Möllerfe407b72019-09-10 10:48:48 +0200196 sources = [
197 "decoding_state.cc",
198 "decoding_state.h",
199 "frame_buffer.cc",
200 "frame_buffer.h",
201 "include/video_coding.h",
202 "jitter_buffer.cc",
203 "jitter_buffer.h",
Niels Möller2eecfc12019-09-10 15:28:17 +0200204 "jitter_buffer_common.h",
Niels Möllerfe407b72019-09-10 10:48:48 +0200205 "receiver.cc",
206 "receiver.h",
207 "session_info.cc",
208 "session_info.h",
209 "video_coding_impl.cc",
210 "video_coding_impl.h",
211 "video_receiver.cc",
212 ]
213 deps = [
214 ":codec_globals_headers",
215 ":encoded_frame",
216 ":packet",
217 ":video_codec_interface",
218 ":video_coding",
219 "..:module_api",
220 "..:module_api_public",
Niels Möllerfe407b72019-09-10 10:48:48 +0200221 "../../api:rtp_headers",
222 "../../api/video:encoded_image",
223 "../../api/video:video_frame",
224 "../../api/video:video_rtp_headers",
225 "../../api/video_codecs:video_codecs_api",
226 "../../common_video",
227 "../../rtc_base:checks",
Niels Möllerfe407b72019-09-10 10:48:48 +0200228 "../../rtc_base:logging",
229 "../../rtc_base:rtc_base_approved",
230 "../../rtc_base/synchronization:sequence_checker",
Niels Möllerfe407b72019-09-10 10:48:48 +0200231 "../../system_wrappers",
232 "../../system_wrappers:event_wrapper",
Niels Möllerfe407b72019-09-10 10:48:48 +0200233 "../utility",
234 "//third_party/abseil-cpp/absl/memory",
235 "//third_party/abseil-cpp/absl/types:optional",
236 "//third_party/abseil-cpp/absl/types:variant",
237 ]
Niels Möller9509d952019-09-10 08:29:17 +0200238}
239
charujaincb728ea2017-09-18 03:08:08 -0700240rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200241 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700242 sources = [
243 "codecs/h264/include/h264_globals.h",
244 "codecs/interface/common_constants.h",
245 "codecs/vp8/include/vp8_globals.h",
246 "codecs/vp9/include/vp9_globals.h",
247 ]
philipel1a4746a2018-07-09 15:52:29 +0200248
249 deps = [
250 "../../rtc_base:checks",
251 ]
charujaincb728ea2017-09-18 03:08:08 -0700252}
253
254rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000255 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700256 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100257 "utility/decoded_frames_history.cc",
258 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100259 "utility/default_video_bitrate_allocator.cc",
260 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000261 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100262 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200263 "utility/framerate_controller.cc",
264 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700265 "utility/ivf_file_writer.cc",
266 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000267 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100268 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200269 "utility/simulcast_rate_allocator.cc",
270 "utility/simulcast_rate_allocator.h",
271 "utility/simulcast_utility.cc",
272 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700273 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100274 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700275 "utility/vp9_uncompressed_header_parser.cc",
276 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000277 ]
278
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200279 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100280 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700281 "..:module_api",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100282 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200283 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100284 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700285 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700286 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700287 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100288 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100289 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700290 "../../rtc_base:rtc_base_approved",
291 "../../rtc_base:rtc_numerics",
292 "../../rtc_base:rtc_task_queue",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200293 "../../rtc_base/experiments:experimental_screenshare_settings",
Åsa Persson517678c2019-05-06 14:17:35 +0200294 "../../rtc_base/experiments:quality_scaler_settings",
Åsa Perssona945aee2018-04-24 16:53:25 +0200295 "../../rtc_base/experiments:quality_scaling_experiment",
Erik Språng2c58ba12019-01-23 16:53:18 +0100296 "../../rtc_base/experiments:rate_control_settings",
Erik Språng2b9dba32019-09-04 16:30:47 +0200297 "../../rtc_base/experiments:stable_target_rate_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200298 "../../rtc_base/synchronization:sequence_checker",
Niels Möllera12c42a2018-07-25 16:05:48 +0200299 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100300 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100301 "../../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200302 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100303 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200304 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200305 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000306}
307
kjellanderb62dbbe2016-09-23 00:38:52 -0700308rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000309 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700310 sources = [
311 "codecs/h264/h264.cc",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200312 "codecs/h264/h264_color_space.cc",
313 "codecs/h264/h264_color_space.h",
314 "codecs/h264/h264_decoder_impl.cc",
315 "codecs/h264/h264_decoder_impl.h",
316 "codecs/h264/h264_encoder_impl.cc",
317 "codecs/h264/h264_encoder_impl.h",
Zeke Chin71f6f442015-06-29 14:34:58 -0700318 "codecs/h264/include/h264.h",
319 ]
320
hbosbab934b2016-01-27 01:36:03 -0800321 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700322 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100323 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800324 ":video_coding_utility",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700325 "../../api/video:video_frame",
Johannes Kron042559f2019-04-25 11:51:55 +0200326 "../../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200327 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200328 "../../api/video:video_rtp_headers",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200329 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200330 "../../common_video",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100331 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800332 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100333 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100334 "../../rtc_base:checks",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200335 "../../rtc_base/system:rtc_export",
Johannes Kron042559f2019-04-25 11:51:55 +0200336 "../../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200337 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200338 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200339 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100340 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200341 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700342 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800343
hbos902c03e2016-01-21 03:34:40 -0800344 if (rtc_use_h264) {
hbosa9a1d2a2016-01-11 10:19:02 -0800345 deps += [
Artem Titov94b57c02019-03-21 13:35:10 +0100346 "//third_party/ffmpeg",
hbosa9a1d2a2016-01-11 10:19:02 -0800347 "//third_party/openh264:encoder",
348 ]
Dan Minor9c686132018-01-15 10:20:00 -0500349 if (!build_with_mozilla) {
350 deps += [ "../../media:rtc_media_base" ]
351 }
hbosa9a1d2a2016-01-11 10:19:02 -0800352 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700353}
354
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800355rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700356 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700357 "codecs/multiplex/augmented_video_frame_buffer.cc",
358 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800359 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800360 "codecs/multiplex/include/multiplex_encoder_adapter.h",
361 "codecs/multiplex/multiplex_decoder_adapter.cc",
362 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700363 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800364 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700365 ]
366
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700367 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100368 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700369 ":video_coding_utility",
370 "..:module_api",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200371 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100372 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200373 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200374 "../../api/video:video_frame",
375 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200376 "../../api/video:video_rtp_headers",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700377 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100378 "../../common_video",
379 "../../rtc_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100380 "../../rtc_base:checks",
Qiang Chena7c7a192018-01-24 13:36:41 -0800381 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700382 ]
383}
384
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200385# This target includes the internal SW codec.
386rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000387 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200388 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000389 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000390 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200391 "codecs/vp8/libvpx_interface.cc",
392 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200393 "codecs/vp8/libvpx_vp8_decoder.cc",
394 "codecs/vp8/libvpx_vp8_decoder.h",
395 "codecs/vp8/libvpx_vp8_encoder.cc",
396 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100397 ]
398
Anders Carlssondd8c1652018-01-30 10:32:13 +0100399 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200400 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100401 ":video_codec_interface",
402 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200403 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100404 "..:module_api",
405 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200406 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100407 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200408 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200409 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100410 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200411 "../../api/video:video_rtp_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100412 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100413 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100414 "../../common_video",
415 "../../rtc_base:checks",
416 "../../rtc_base:rtc_base_approved",
417 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100418 "../../rtc_base/experiments:cpu_speed_experiment",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200419 "../../rtc_base/experiments:experimental_screenshare_settings",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800420 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100421 "../../rtc_base/experiments:rate_control_settings",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200422 "../../system_wrappers:field_trial",
423 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200424 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200425 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100426 "//third_party/libyuv",
427 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000428 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200429 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000430 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000431}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000432
Erik Språng4529fbc2018-10-12 10:30:31 +0200433rtc_static_library("webrtc_vp8_temporal_layers") {
434 visibility = [ "*" ]
435 sources = [
436 "codecs/vp8/default_temporal_layers.cc",
437 "codecs/vp8/default_temporal_layers.h",
438 "codecs/vp8/include/temporal_layers_checker.h",
439 "codecs/vp8/screenshare_layers.cc",
440 "codecs/vp8/screenshare_layers.h",
441 "codecs/vp8/temporal_layers.h",
442 "codecs/vp8/temporal_layers_checker.cc",
443 ]
444
Erik Språng4529fbc2018-10-12 10:30:31 +0200445 deps = [
446 ":codec_globals_headers",
447 ":video_codec_interface",
448 ":video_coding_utility",
449 "..:module_api",
450 "../..:webrtc_common",
Elad Alon7e00c672019-06-28 18:12:15 +0200451 "../../api:fec_controller_api",
Erik Språng4529fbc2018-10-12 10:30:31 +0200452 "../../api/video_codecs:video_codecs_api",
453 "../../rtc_base:checks",
454 "../../rtc_base:rtc_base_approved",
455 "../../rtc_base:rtc_numerics",
Erik Språng4529fbc2018-10-12 10:30:31 +0200456 "../../system_wrappers:field_trial",
457 "../../system_wrappers:metrics",
458 "//third_party/abseil-cpp/absl/memory",
459 "//third_party/abseil-cpp/absl/types:optional",
460 ]
461}
462
Sergey Silkin86684962018-03-28 19:32:37 +0200463# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
464rtc_static_library("webrtc_vp9_helpers") {
465 sources = [
466 "codecs/vp9/svc_config.cc",
467 "codecs/vp9/svc_config.h",
468 "codecs/vp9/svc_rate_allocator.cc",
469 "codecs/vp9/svc_rate_allocator.h",
470 ]
471
Sergey Silkin86684962018-03-28 19:32:37 +0200472 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100473 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200474 ":video_codec_interface",
475 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100476 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700477 "../../api/video:video_bitrate_allocator",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200478 "../../api/video:video_codec_constants",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200479 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200480 "../../common_video",
481 "../../rtc_base:checks",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200482 "../../rtc_base/experiments:stable_target_rate_experiment",
483 "//third_party/abseil-cpp/absl/container:inlined_vector",
Sergey Silkin86684962018-03-28 19:32:37 +0200484 ]
485}
486
kjellanderb62dbbe2016-09-23 00:38:52 -0700487rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000488 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200489 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100490 sources = [
491 "codecs/vp9/include/vp9.h",
492 "codecs/vp9/vp9.cc",
493 "codecs/vp9/vp9_frame_buffer_pool.cc",
494 "codecs/vp9/vp9_frame_buffer_pool.h",
495 "codecs/vp9/vp9_impl.cc",
496 "codecs/vp9/vp9_impl.h",
497 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000498
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000499 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100500 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000501 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200502 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700503 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200504 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200505 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100506 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700507 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700508 "../../api/video:video_frame_i010",
Chen Xing5d24b162019-06-10 12:59:38 +0200509 "../../api/video:video_rtp_headers",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700510 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000511 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700512 "../../media:rtc_media_base",
513 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100514 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100515 "../../rtc_base:checks",
Erik Språng4b4266f2019-01-23 12:48:13 +0100516 "../../rtc_base/experiments:rate_control_settings",
Sergey Silkin390f3582018-10-01 17:13:50 +0200517 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200518 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200519 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000520 ]
521 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200522 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000523 }
524}
kjellanderfb114242016-06-13 00:19:48 -0700525
526if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100527 if (is_android) {
528 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700529 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100530 "codecs/test/android_codec_factory_helper.cc",
531 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700532 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100533
534 deps = [
535 "../../api/video_codecs:video_codecs_api",
536 "../../rtc_base:checks",
537 "../../rtc_base:rtc_base_approved",
538 "../../sdk/android:native_api_base",
539 "../../sdk/android:native_api_codecs",
540 "../../sdk/android:native_api_jni",
541 "//base",
542 ]
543 }
544 }
545
546 if (is_ios || is_mac) {
547 rtc_static_library("objc_codec_factory_helper") {
548 sources = [
549 "codecs/test/objc_codec_factory_helper.h",
550 "codecs/test/objc_codec_factory_helper.mm",
551 ]
552
magjed73c0eb52017-08-07 06:55:28 -0700553 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200554 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200555 "../../api/video:video_rtp_headers",
magjed73c0eb52017-08-07 06:55:28 -0700556 "../../api/video_codecs:video_codecs_api",
557 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100558 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700559 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100560 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100561 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100562 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100563 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100564 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700565 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700566 ]
magjed73c0eb52017-08-07 06:55:28 -0700567 }
568 }
569
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200570 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700571 testonly = true
572 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200573 "utility/simulcast_test_fixture_impl.cc",
574 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700575 ]
576
magjed6cc25612017-07-10 03:26:36 -0700577 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100578 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700579 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200580 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200581 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200582 "../../api:mock_video_decoder",
583 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200584 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200585 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200586 "../../api/video:video_frame",
587 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200588 "../../api/video:video_rtp_headers",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200589 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100590 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100591 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700592 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700593 "../../test:test_support",
Artem Titov533a9fe2019-03-21 12:18:05 +0100594 "//third_party/abseil-cpp/absl/memory",
magjed6cc25612017-07-10 03:26:36 -0700595 ]
596 }
597
ehmaldonado38a21322016-09-02 04:10:34 -0700598 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700599 testonly = true
600 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100601 "codecs/test/video_codec_unittest.cc",
602 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700603 "codecs/test/videoprocessor.cc",
604 "codecs/test/videoprocessor.h",
605 ]
606
kjellanderfb114242016-06-13 00:19:48 -0700607 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100608 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100609 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800610 ":video_coding",
611 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100612 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200613 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100614 "..:module_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100615 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200616 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000617 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800618 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100619 "../../api/video:encoded_image",
620 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700621 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100622 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200623 "../../api/video:video_frame",
624 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200625 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700626 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100627 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100628 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700629 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700630 "../../rtc_base:rtc_task_queue",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200631 "../../rtc_base/synchronization:sequence_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000632 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700633 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800634 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800635 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100636 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100637 "//third_party/abseil-cpp/absl/memory",
638 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100639 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700640 ]
641 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800642
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200643 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200644 if (is_android) {
645 video_coding_modules_tests_resources += [
646 "../../resources/foreman_128x96.yuv",
647 "../../resources/foreman_160x120.yuv",
648 "../../resources/foreman_176x144.yuv",
649 "../../resources/foreman_240x136.yuv",
650 "../../resources/foreman_320x240.yuv",
651 "../../resources/foreman_480x272.yuv",
652 ]
653 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200654 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100655 video_coding_modules_tests_resources += [
656 "../../resources/FourPeople_1280x720_30.yuv",
657 "../../resources/ConferenceMotion_1280_720_50.yuv",
658 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100659 }
660
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200661 num_video_coding_modules_tests_resources = 0
662 foreach(i, video_coding_modules_tests_resources) {
663 num_video_coding_modules_tests_resources += 1
664 }
665
666 if (num_video_coding_modules_tests_resources > 0) {
667 if (is_ios || is_mac) {
668 bundle_data("video_coding_modules_tests_resources_bundle_data") {
669 testonly = true
670 sources = video_coding_modules_tests_resources
671 outputs = [
672 "{{bundle_resources_dir}}/{{source_file_part}}",
673 ]
674 }
brandtr12a47f62017-09-01 00:10:27 -0700675 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800676 }
677
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200678 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800679 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800680 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200681 "codecs/test/videocodec_test_fixture_impl.cc",
682 "codecs/test/videocodec_test_fixture_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800683 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800684 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100685 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100686 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800687 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700688 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100689 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200690 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700691 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100692 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200693 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200694 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100695 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100696 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200697 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700698 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200699 "../../media:rtc_audio_video",
700 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100701 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200702 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100703 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200704 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200705 "../../rtc_base:rtc_base_tests_utils",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100706 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700707 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100708 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100709 "../../test:perf_test",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800710 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200711 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700712 "../../test:video_test_support",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200713 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100714 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200715 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200716 }
717
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100718 rtc_source_set("videocodec_test_stats_impl") {
719 testonly = true
720 sources = [
721 "codecs/test/videocodec_test_stats_impl.cc",
722 "codecs/test/videocodec_test_stats_impl.h",
723 ]
724 deps = [
725 "../../api:videocodec_test_fixture_api",
726 "../../rtc_base:checks",
Yves Gerey79e9f4b2019-04-13 18:59:53 +0200727 "../../rtc_base:rtc_numerics",
Rasmus Brandt315de592019-04-15 13:27:00 +0200728 "../../rtc_base:stringutils",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100729 "../../test:test_common",
730 "../rtp_rtcp:rtp_rtcp_format",
731 ]
732 }
733
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200734 rtc_source_set("video_coding_modules_tests") {
735 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100736 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200737
738 sources = [
739 "codecs/h264/test/h264_impl_unittest.cc",
740 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
741 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
742 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200743 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200744 "codecs/vp8/test/vp8_impl_unittest.cc",
745 "codecs/vp9/test/vp9_impl_unittest.cc",
746 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200747 if (rtc_use_h264) {
748 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
749 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200750
751 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100752 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200753 ":video_codecs_test_framework",
754 ":video_coding_utility",
755 ":videocodec_test_impl",
756 ":webrtc_h264",
757 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200758 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200759 ":webrtc_vp9",
760 ":webrtc_vp9_helpers",
761 "../..:webrtc_common",
762 "../../api:create_videocodec_test_fixture_api",
763 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200764 "../../api:mock_video_decoder",
765 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100766 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200767 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200768 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100769 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700770 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200771 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200772 "../../api/video:video_rtp_headers",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200773 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200774 "../../api/video_codecs:video_codecs_api",
775 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100776 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200777 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200778 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200779 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700780 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700781 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100782 "../../rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200783 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200784 "../../test:fileutils",
785 "../../test:test_support",
786 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200787 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200788 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200789 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700790 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800791 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800792
brandtrdf232992017-09-07 07:50:06 -0700793 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800794
795 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200796 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000797
Rasmus Brandtf1053252018-02-05 09:52:31 +0100798 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800799 }
800
801 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200802 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200803
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200804 deps += [ ":objc_codec_factory_helper" ]
805
806 if (num_video_coding_modules_tests_resources > 0) {
807 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
808 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800809 }
810
Erik Språngdcc02382018-10-10 14:58:46 +0200811 if (rtc_build_libvpx) {
812 deps += [ rtc_libvpx_dir ]
813 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800814 }
815
ehmaldonado36268652017-01-19 08:27:11 -0800816 rtc_source_set("video_coding_unittests") {
817 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700818
ehmaldonado36268652017-01-19 08:27:11 -0800819 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200820 "codecs/test/videocodec_test_fixture_config_unittest.cc",
821 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800822 "codecs/test/videoprocessor_unittest.cc",
823 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200824 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800825 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200826 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200827 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800828 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100829 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800830 "frame_buffer2_unittest.cc",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200831 "generic_decoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800832 "h264_sprop_parameter_sets_unittest.cc",
833 "h264_sps_pps_tracker_unittest.cc",
834 "histogram_unittest.cc",
835 "include/mock/mock_vcm_callbacks.h",
836 "jitter_buffer_unittest.cc",
837 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100838 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800839 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800840 "receiver_unittest.cc",
841 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800842 "session_info_unittest.cc",
843 "test/stream_generator.cc",
844 "test/stream_generator.h",
845 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100846 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800847 "utility/default_video_bitrate_allocator_unittest.cc",
848 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200849 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800850 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800851 "utility/quality_scaler_unittest.cc",
852 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800853 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800854 "video_packet_buffer_unittest.cc",
855 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800856 ]
ehmaldonado36268652017-01-19 08:27:11 -0800857 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200858 sources += [
859 "codecs/h264/h264_encoder_impl_unittest.cc",
860 "codecs/h264/h264_simulcast_unittest.cc",
861 ]
ehmaldonado36268652017-01-19 08:27:11 -0800862 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200863
ehmaldonado36268652017-01-19 08:27:11 -0800864 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200865 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100866 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200867 ":nack_module",
868 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200869 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100870 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800871 ":video_codecs_test_framework",
872 ":video_coding",
Niels Möllerfe407b72019-09-10 10:48:48 +0200873 ":video_coding_legacy",
ehmaldonado36268652017-01-19 08:27:11 -0800874 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200875 ":videocodec_test_impl",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100876 ":videocodec_test_stats_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800877 ":webrtc_h264",
878 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200879 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800880 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200881 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700882 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100883 "..:module_fec_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100884 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200885 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100886 "../../api:fec_controller_api",
Elad Alon45befc52019-07-02 11:20:09 +0200887 "../../api:mock_fec_controller_override",
Erik Språngc84cd952018-10-15 11:55:13 +0200888 "../../api:mock_video_decoder",
889 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100890 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200891 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200892 "../../api:videocodec_test_fixture_api",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200893 "../../api/task_queue:default_task_queue_factory",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200894 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800895 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100896 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700897 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800898 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200899 "../../api/video:video_frame",
900 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200901 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700902 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100903 "../../api/video_codecs:vp8_temporal_layers_factory",
Artem Titov94b57c02019-03-21 13:35:10 +0100904 "../../common_video",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200905 "../../common_video/test:utilities",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200906 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100907 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100908 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700909 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200910 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200911 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700912 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100913 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100914 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100915 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100916 "../../system_wrappers:event_wrapper",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200917 "../../system_wrappers:field_trial",
918 "../../system_wrappers:metrics",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200919 "../../test:fake_video_codecs",
ehmaldonado36268652017-01-19 08:27:11 -0800920 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100921 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200922 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800923 "../../test:test_support",
924 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800925 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100926 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100927 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200928 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100929 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100930 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800931 ]
932 if (rtc_build_libvpx) {
933 deps += [ rtc_libvpx_dir ]
934 }
ehmaldonado36268652017-01-19 08:27:11 -0800935 }
kjellanderfb114242016-06-13 00:19:48 -0700936}