blob: f525827cb146d43136aa6041b07071bde7fc0587 [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_buffer_common.h",
112 "jitter_estimator.cc",
113 "jitter_estimator.h",
Elad Alon10874b22019-02-21 16:25:40 +0100114 "loss_notification_controller.cc",
115 "loss_notification_controller.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100116 "media_opt_util.cc",
117 "media_opt_util.h",
philipelc707ab72016-04-01 02:01:54 -0700118 "packet_buffer.cc",
119 "packet_buffer.h",
philipel02447bc2016-05-13 06:01:03 -0700120 "rtp_frame_reference_finder.cc",
121 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100122 "rtt_filter.cc",
123 "rtt_filter.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100124 "timestamp_map.cc",
125 "timestamp_map.h",
126 "timing.cc",
127 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100128 "video_codec_initializer.cc",
Niels Mölleree3d9952019-09-09 12:51:55 +0200129 "video_receiver2.cc",
130 "video_receiver2.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000131 ]
132
Anders Carlssondd8c1652018-01-30 10:32:13 +0100133 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100134 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100135 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200136 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100137 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000138 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200139 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700140 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100141 "..:module_api_public",
Ying Wang3b790f32018-01-19 17:58:57 +0100142 "../../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100143 "../../api:rtp_headers",
Erik Språngd96b2752018-12-13 11:23:27 +0100144 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800145 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200146 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700147 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200148 "../../api/video:video_frame",
149 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200150 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100151 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000152 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100153 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100154 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100155 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700156 "../../rtc_base:rtc_base_approved",
157 "../../rtc_base:rtc_numerics",
158 "../../rtc_base:rtc_task_queue",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100159 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100160 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500161 "../../rtc_base/experiments:rtt_mult_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200162 "../../rtc_base/synchronization:sequence_checker",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100163 "../../rtc_base/system:fallthrough",
Sebastian Jansson11d0d7b2019-04-11 12:39:34 +0200164 "../../rtc_base/task_utils:repeating_task",
Artem Titova76af0c2018-07-23 17:38:12 +0200165 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100166 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000167 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100168 "../rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +0100169 "../utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100170 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200171 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200172 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000173 ]
174}
175
Patrik Höglund99175c62018-01-08 11:05:10 +0100176rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100177 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100178 sources = [
philipel9df33532019-03-04 16:37:50 +0100179 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100180 "include/video_codec_interface.h",
181 "include/video_coding_defines.h",
182 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200183 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100184 ]
185 deps = [
186 "..:module_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200187 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200188 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100189 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100190 "../../common_video",
191 "../../common_video/generic_frame_descriptor",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200192 "../../rtc_base/system:rtc_export",
Yves Gerey3e707812018-11-28 16:47:49 +0100193 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100194 ]
195}
196
Niels Möller9509d952019-09-10 08:29:17 +0200197rtc_source_set("video_coding_legacy") {
198 visibility = [ ":video_coding_unittests" ]
Niels Möllerfe407b72019-09-10 10:48:48 +0200199 sources = [
200 "decoding_state.cc",
201 "decoding_state.h",
202 "frame_buffer.cc",
203 "frame_buffer.h",
204 "include/video_coding.h",
205 "jitter_buffer.cc",
206 "jitter_buffer.h",
207 "receiver.cc",
208 "receiver.h",
209 "session_info.cc",
210 "session_info.h",
211 "video_coding_impl.cc",
212 "video_coding_impl.h",
213 "video_receiver.cc",
214 ]
215 deps = [
216 ":codec_globals_headers",
217 ":encoded_frame",
218 ":packet",
219 ":video_codec_interface",
220 ":video_coding",
221 "..:module_api",
222 "..:module_api_public",
223 "../../api:fec_controller_api",
224 "../../api:rtp_headers",
225 "../../api/video:encoded_image",
226 "../../api/video:video_frame",
227 "../../api/video:video_rtp_headers",
228 "../../api/video_codecs:video_codecs_api",
229 "../../common_video",
230 "../../rtc_base:checks",
231 "../../rtc_base:deprecation",
232 "../../rtc_base:logging",
233 "../../rtc_base:rtc_base_approved",
234 "../../rtc_base/synchronization:sequence_checker",
235 "../../rtc_base/system:fallthrough",
236 "../../system_wrappers",
237 "../../system_wrappers:event_wrapper",
238 "../rtp_rtcp:rtp_rtcp_format",
239 "../rtp_rtcp:rtp_video_header",
240 "../utility",
241 "//third_party/abseil-cpp/absl/memory",
242 "//third_party/abseil-cpp/absl/types:optional",
243 "//third_party/abseil-cpp/absl/types:variant",
244 ]
Niels Möller9509d952019-09-10 08:29:17 +0200245}
246
charujaincb728ea2017-09-18 03:08:08 -0700247rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200248 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700249 sources = [
250 "codecs/h264/include/h264_globals.h",
251 "codecs/interface/common_constants.h",
252 "codecs/vp8/include/vp8_globals.h",
253 "codecs/vp9/include/vp9_globals.h",
254 ]
philipel1a4746a2018-07-09 15:52:29 +0200255
256 deps = [
257 "../../rtc_base:checks",
258 ]
charujaincb728ea2017-09-18 03:08:08 -0700259}
260
261rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000262 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700263 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100264 "utility/decoded_frames_history.cc",
265 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100266 "utility/default_video_bitrate_allocator.cc",
267 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000268 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100269 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200270 "utility/framerate_controller.cc",
271 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700272 "utility/ivf_file_writer.cc",
273 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000274 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100275 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200276 "utility/simulcast_rate_allocator.cc",
277 "utility/simulcast_rate_allocator.h",
278 "utility/simulcast_utility.cc",
279 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700280 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100281 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700282 "utility/vp9_uncompressed_header_parser.cc",
283 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000284 ]
285
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200286 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100287 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700288 "..:module_api",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100289 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200290 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100291 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700292 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700293 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700294 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100295 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100296 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700297 "../../rtc_base:rtc_base_approved",
298 "../../rtc_base:rtc_numerics",
299 "../../rtc_base:rtc_task_queue",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200300 "../../rtc_base/experiments:experimental_screenshare_settings",
Åsa Persson517678c2019-05-06 14:17:35 +0200301 "../../rtc_base/experiments:quality_scaler_settings",
Åsa Perssona945aee2018-04-24 16:53:25 +0200302 "../../rtc_base/experiments:quality_scaling_experiment",
Erik Språng2c58ba12019-01-23 16:53:18 +0100303 "../../rtc_base/experiments:rate_control_settings",
Erik Språng2b9dba32019-09-04 16:30:47 +0200304 "../../rtc_base/experiments:stable_target_rate_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200305 "../../rtc_base/synchronization:sequence_checker",
Niels Möllera12c42a2018-07-25 16:05:48 +0200306 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100307 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100308 "../../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200309 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100310 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200311 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200312 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000313}
314
kjellanderb62dbbe2016-09-23 00:38:52 -0700315rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000316 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700317 sources = [
318 "codecs/h264/h264.cc",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200319 "codecs/h264/h264_color_space.cc",
320 "codecs/h264/h264_color_space.h",
321 "codecs/h264/h264_decoder_impl.cc",
322 "codecs/h264/h264_decoder_impl.h",
323 "codecs/h264/h264_encoder_impl.cc",
324 "codecs/h264/h264_encoder_impl.h",
Zeke Chin71f6f442015-06-29 14:34:58 -0700325 "codecs/h264/include/h264.h",
326 ]
327
hbosbab934b2016-01-27 01:36:03 -0800328 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700329 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100330 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800331 ":video_coding_utility",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700332 "../../api/video:video_frame",
Johannes Kron042559f2019-04-25 11:51:55 +0200333 "../../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200334 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200335 "../../api/video:video_rtp_headers",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200336 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200337 "../../common_video",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100338 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800339 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100340 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100341 "../../rtc_base:checks",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200342 "../../rtc_base/system:rtc_export",
Johannes Kron042559f2019-04-25 11:51:55 +0200343 "../../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200344 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200345 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200346 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100347 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200348 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700349 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800350
hbos902c03e2016-01-21 03:34:40 -0800351 if (rtc_use_h264) {
hbosa9a1d2a2016-01-11 10:19:02 -0800352 deps += [
Artem Titov94b57c02019-03-21 13:35:10 +0100353 "//third_party/ffmpeg",
hbosa9a1d2a2016-01-11 10:19:02 -0800354 "//third_party/openh264:encoder",
355 ]
Dan Minor9c686132018-01-15 10:20:00 -0500356 if (!build_with_mozilla) {
357 deps += [ "../../media:rtc_media_base" ]
358 }
hbosa9a1d2a2016-01-11 10:19:02 -0800359 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700360}
361
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800362rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700363 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700364 "codecs/multiplex/augmented_video_frame_buffer.cc",
365 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800366 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800367 "codecs/multiplex/include/multiplex_encoder_adapter.h",
368 "codecs/multiplex/multiplex_decoder_adapter.cc",
369 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700370 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800371 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700372 ]
373
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700374 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100375 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700376 ":video_coding_utility",
377 "..:module_api",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200378 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100379 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200380 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200381 "../../api/video:video_frame",
382 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200383 "../../api/video:video_rtp_headers",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700384 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100385 "../../common_video",
386 "../../rtc_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100387 "../../rtc_base:checks",
Qiang Chena7c7a192018-01-24 13:36:41 -0800388 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700389 ]
390}
391
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200392# This target includes the internal SW codec.
393rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000394 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200395 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000396 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000397 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200398 "codecs/vp8/libvpx_interface.cc",
399 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200400 "codecs/vp8/libvpx_vp8_decoder.cc",
401 "codecs/vp8/libvpx_vp8_decoder.h",
402 "codecs/vp8/libvpx_vp8_encoder.cc",
403 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100404 ]
405
Anders Carlssondd8c1652018-01-30 10:32:13 +0100406 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200407 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100408 ":video_codec_interface",
409 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200410 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100411 "..:module_api",
412 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200413 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100414 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200415 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200416 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100417 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200418 "../../api/video:video_rtp_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100419 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100420 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100421 "../../common_video",
422 "../../rtc_base:checks",
423 "../../rtc_base:rtc_base_approved",
424 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100425 "../../rtc_base/experiments:cpu_speed_experiment",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200426 "../../rtc_base/experiments:experimental_screenshare_settings",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800427 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100428 "../../rtc_base/experiments:rate_control_settings",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200429 "../../system_wrappers:field_trial",
430 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200431 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200432 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100433 "//third_party/libyuv",
434 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000435 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200436 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000437 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000438}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000439
Erik Språng4529fbc2018-10-12 10:30:31 +0200440rtc_static_library("webrtc_vp8_temporal_layers") {
441 visibility = [ "*" ]
442 sources = [
443 "codecs/vp8/default_temporal_layers.cc",
444 "codecs/vp8/default_temporal_layers.h",
445 "codecs/vp8/include/temporal_layers_checker.h",
446 "codecs/vp8/screenshare_layers.cc",
447 "codecs/vp8/screenshare_layers.h",
448 "codecs/vp8/temporal_layers.h",
449 "codecs/vp8/temporal_layers_checker.cc",
450 ]
451
Erik Språng4529fbc2018-10-12 10:30:31 +0200452 deps = [
453 ":codec_globals_headers",
454 ":video_codec_interface",
455 ":video_coding_utility",
456 "..:module_api",
457 "../..:webrtc_common",
Elad Alon7e00c672019-06-28 18:12:15 +0200458 "../../api:fec_controller_api",
Erik Språng4529fbc2018-10-12 10:30:31 +0200459 "../../api/video_codecs:video_codecs_api",
460 "../../rtc_base:checks",
461 "../../rtc_base:rtc_base_approved",
462 "../../rtc_base:rtc_numerics",
Erik Språng4529fbc2018-10-12 10:30:31 +0200463 "../../system_wrappers:field_trial",
464 "../../system_wrappers:metrics",
465 "//third_party/abseil-cpp/absl/memory",
466 "//third_party/abseil-cpp/absl/types:optional",
467 ]
468}
469
Sergey Silkin86684962018-03-28 19:32:37 +0200470# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
471rtc_static_library("webrtc_vp9_helpers") {
472 sources = [
473 "codecs/vp9/svc_config.cc",
474 "codecs/vp9/svc_config.h",
475 "codecs/vp9/svc_rate_allocator.cc",
476 "codecs/vp9/svc_rate_allocator.h",
477 ]
478
Sergey Silkin86684962018-03-28 19:32:37 +0200479 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100480 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200481 ":video_codec_interface",
482 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100483 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700484 "../../api/video:video_bitrate_allocator",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200485 "../../api/video:video_codec_constants",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200486 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200487 "../../common_video",
488 "../../rtc_base:checks",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200489 "../../rtc_base/experiments:stable_target_rate_experiment",
490 "//third_party/abseil-cpp/absl/container:inlined_vector",
Sergey Silkin86684962018-03-28 19:32:37 +0200491 ]
492}
493
kjellanderb62dbbe2016-09-23 00:38:52 -0700494rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000495 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200496 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100497 sources = [
498 "codecs/vp9/include/vp9.h",
499 "codecs/vp9/vp9.cc",
500 "codecs/vp9/vp9_frame_buffer_pool.cc",
501 "codecs/vp9/vp9_frame_buffer_pool.h",
502 "codecs/vp9/vp9_impl.cc",
503 "codecs/vp9/vp9_impl.h",
504 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000505
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000506 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100507 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000508 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200509 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700510 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200511 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200512 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100513 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700514 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700515 "../../api/video:video_frame_i010",
Chen Xing5d24b162019-06-10 12:59:38 +0200516 "../../api/video:video_rtp_headers",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700517 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000518 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700519 "../../media:rtc_media_base",
520 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100521 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100522 "../../rtc_base:checks",
Erik Språng4b4266f2019-01-23 12:48:13 +0100523 "../../rtc_base/experiments:rate_control_settings",
Sergey Silkin390f3582018-10-01 17:13:50 +0200524 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200525 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200526 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000527 ]
528 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200529 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000530 }
531}
kjellanderfb114242016-06-13 00:19:48 -0700532
533if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100534 if (is_android) {
535 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700536 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100537 "codecs/test/android_codec_factory_helper.cc",
538 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700539 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100540
541 deps = [
542 "../../api/video_codecs:video_codecs_api",
543 "../../rtc_base:checks",
544 "../../rtc_base:rtc_base_approved",
545 "../../sdk/android:native_api_base",
546 "../../sdk/android:native_api_codecs",
547 "../../sdk/android:native_api_jni",
548 "//base",
549 ]
550 }
551 }
552
553 if (is_ios || is_mac) {
554 rtc_static_library("objc_codec_factory_helper") {
555 sources = [
556 "codecs/test/objc_codec_factory_helper.h",
557 "codecs/test/objc_codec_factory_helper.mm",
558 ]
559
magjed73c0eb52017-08-07 06:55:28 -0700560 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200561 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200562 "../../api/video:video_rtp_headers",
magjed73c0eb52017-08-07 06:55:28 -0700563 "../../api/video_codecs:video_codecs_api",
564 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100565 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700566 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100567 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100568 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100569 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100570 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100571 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700572 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700573 ]
magjed73c0eb52017-08-07 06:55:28 -0700574 }
575 }
576
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200577 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700578 testonly = true
579 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200580 "utility/simulcast_test_fixture_impl.cc",
581 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700582 ]
583
magjed6cc25612017-07-10 03:26:36 -0700584 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100585 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700586 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200587 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200588 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200589 "../../api:mock_video_decoder",
590 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200591 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200592 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200593 "../../api/video:video_frame",
594 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200595 "../../api/video:video_rtp_headers",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200596 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100597 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100598 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700599 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700600 "../../test:test_support",
Artem Titov533a9fe2019-03-21 12:18:05 +0100601 "//third_party/abseil-cpp/absl/memory",
magjed6cc25612017-07-10 03:26:36 -0700602 ]
603 }
604
ehmaldonado38a21322016-09-02 04:10:34 -0700605 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700606 testonly = true
607 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100608 "codecs/test/video_codec_unittest.cc",
609 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700610 "codecs/test/videoprocessor.cc",
611 "codecs/test/videoprocessor.h",
612 ]
613
kjellanderfb114242016-06-13 00:19:48 -0700614 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100615 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100616 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800617 ":video_coding",
618 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100619 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200620 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100621 "..:module_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100622 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200623 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000624 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800625 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100626 "../../api/video:encoded_image",
627 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700628 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100629 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200630 "../../api/video:video_frame",
631 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200632 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700633 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100634 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100635 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700636 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700637 "../../rtc_base:rtc_task_queue",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200638 "../../rtc_base/synchronization:sequence_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000639 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700640 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800641 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800642 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100643 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100644 "//third_party/abseil-cpp/absl/memory",
645 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100646 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700647 ]
648 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800649
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200650 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200651 if (is_android) {
652 video_coding_modules_tests_resources += [
653 "../../resources/foreman_128x96.yuv",
654 "../../resources/foreman_160x120.yuv",
655 "../../resources/foreman_176x144.yuv",
656 "../../resources/foreman_240x136.yuv",
657 "../../resources/foreman_320x240.yuv",
658 "../../resources/foreman_480x272.yuv",
659 ]
660 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200661 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100662 video_coding_modules_tests_resources += [
663 "../../resources/FourPeople_1280x720_30.yuv",
664 "../../resources/ConferenceMotion_1280_720_50.yuv",
665 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100666 }
667
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200668 num_video_coding_modules_tests_resources = 0
669 foreach(i, video_coding_modules_tests_resources) {
670 num_video_coding_modules_tests_resources += 1
671 }
672
673 if (num_video_coding_modules_tests_resources > 0) {
674 if (is_ios || is_mac) {
675 bundle_data("video_coding_modules_tests_resources_bundle_data") {
676 testonly = true
677 sources = video_coding_modules_tests_resources
678 outputs = [
679 "{{bundle_resources_dir}}/{{source_file_part}}",
680 ]
681 }
brandtr12a47f62017-09-01 00:10:27 -0700682 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800683 }
684
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200685 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800686 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800687 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200688 "codecs/test/videocodec_test_fixture_impl.cc",
689 "codecs/test/videocodec_test_fixture_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800690 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800691 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100692 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100693 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800694 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700695 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100696 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200697 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700698 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100699 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200700 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200701 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100702 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100703 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200704 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700705 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200706 "../../media:rtc_audio_video",
707 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100708 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200709 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100710 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200711 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200712 "../../rtc_base:rtc_base_tests_utils",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100713 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700714 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100715 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100716 "../../test:perf_test",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800717 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200718 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700719 "../../test:video_test_support",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200720 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100721 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200722 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 }
724
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100725 rtc_source_set("videocodec_test_stats_impl") {
726 testonly = true
727 sources = [
728 "codecs/test/videocodec_test_stats_impl.cc",
729 "codecs/test/videocodec_test_stats_impl.h",
730 ]
731 deps = [
732 "../../api:videocodec_test_fixture_api",
733 "../../rtc_base:checks",
Yves Gerey79e9f4b2019-04-13 18:59:53 +0200734 "../../rtc_base:rtc_numerics",
Rasmus Brandt315de592019-04-15 13:27:00 +0200735 "../../rtc_base:stringutils",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100736 "../../test:test_common",
737 "../rtp_rtcp:rtp_rtcp_format",
738 ]
739 }
740
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200741 rtc_source_set("video_coding_modules_tests") {
742 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100743 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200744
745 sources = [
746 "codecs/h264/test/h264_impl_unittest.cc",
747 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
748 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
749 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200750 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200751 "codecs/vp8/test/vp8_impl_unittest.cc",
752 "codecs/vp9/test/vp9_impl_unittest.cc",
753 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200754 if (rtc_use_h264) {
755 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
756 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200757
758 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100759 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200760 ":video_codecs_test_framework",
761 ":video_coding_utility",
762 ":videocodec_test_impl",
763 ":webrtc_h264",
764 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200765 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200766 ":webrtc_vp9",
767 ":webrtc_vp9_helpers",
768 "../..:webrtc_common",
769 "../../api:create_videocodec_test_fixture_api",
770 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200771 "../../api:mock_video_decoder",
772 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100773 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200774 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200775 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100776 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700777 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200778 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200779 "../../api/video:video_rtp_headers",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200780 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200781 "../../api/video_codecs:video_codecs_api",
782 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100783 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200784 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200785 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200786 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700787 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700788 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100789 "../../rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200790 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200791 "../../test:fileutils",
792 "../../test:test_support",
793 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200794 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200795 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200796 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700797 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800798 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800799
brandtrdf232992017-09-07 07:50:06 -0700800 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800801
802 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200803 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000804
Rasmus Brandtf1053252018-02-05 09:52:31 +0100805 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800806 }
807
808 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200809 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200810
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200811 deps += [ ":objc_codec_factory_helper" ]
812
813 if (num_video_coding_modules_tests_resources > 0) {
814 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
815 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800816 }
817
Erik Språngdcc02382018-10-10 14:58:46 +0200818 if (rtc_build_libvpx) {
819 deps += [ rtc_libvpx_dir ]
820 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800821 }
822
ehmaldonado36268652017-01-19 08:27:11 -0800823 rtc_source_set("video_coding_unittests") {
824 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700825
ehmaldonado36268652017-01-19 08:27:11 -0800826 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200827 "codecs/test/videocodec_test_fixture_config_unittest.cc",
828 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800829 "codecs/test/videoprocessor_unittest.cc",
830 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200831 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800832 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200833 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200834 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800835 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100836 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800837 "frame_buffer2_unittest.cc",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200838 "generic_decoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800839 "h264_sprop_parameter_sets_unittest.cc",
840 "h264_sps_pps_tracker_unittest.cc",
841 "histogram_unittest.cc",
842 "include/mock/mock_vcm_callbacks.h",
843 "jitter_buffer_unittest.cc",
844 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100845 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800846 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800847 "receiver_unittest.cc",
848 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800849 "session_info_unittest.cc",
850 "test/stream_generator.cc",
851 "test/stream_generator.h",
852 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100853 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800854 "utility/default_video_bitrate_allocator_unittest.cc",
855 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200856 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800857 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800858 "utility/quality_scaler_unittest.cc",
859 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800860 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800861 "video_packet_buffer_unittest.cc",
862 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800863 ]
ehmaldonado36268652017-01-19 08:27:11 -0800864 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200865 sources += [
866 "codecs/h264/h264_encoder_impl_unittest.cc",
867 "codecs/h264/h264_simulcast_unittest.cc",
868 ]
ehmaldonado36268652017-01-19 08:27:11 -0800869 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200870
ehmaldonado36268652017-01-19 08:27:11 -0800871 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200872 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100873 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200874 ":nack_module",
875 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200876 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100877 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800878 ":video_codecs_test_framework",
879 ":video_coding",
Niels Möllerfe407b72019-09-10 10:48:48 +0200880 ":video_coding_legacy",
ehmaldonado36268652017-01-19 08:27:11 -0800881 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200882 ":videocodec_test_impl",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100883 ":videocodec_test_stats_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800884 ":webrtc_h264",
885 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200886 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800887 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200888 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700889 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100890 "..:module_fec_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100891 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200892 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100893 "../../api:fec_controller_api",
Elad Alon45befc52019-07-02 11:20:09 +0200894 "../../api:mock_fec_controller_override",
Erik Språngc84cd952018-10-15 11:55:13 +0200895 "../../api:mock_video_decoder",
896 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100897 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200898 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200899 "../../api:videocodec_test_fixture_api",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200900 "../../api/task_queue:default_task_queue_factory",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200901 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800902 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100903 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700904 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800905 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200906 "../../api/video:video_frame",
907 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200908 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700909 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100910 "../../api/video_codecs:vp8_temporal_layers_factory",
Artem Titov94b57c02019-03-21 13:35:10 +0100911 "../../common_video",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200912 "../../common_video/test:utilities",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200913 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100914 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100915 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700916 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200917 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200918 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700919 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100920 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100921 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100922 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100923 "../../system_wrappers:event_wrapper",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200924 "../../system_wrappers:field_trial",
925 "../../system_wrappers:metrics",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200926 "../../test:fake_video_codecs",
ehmaldonado36268652017-01-19 08:27:11 -0800927 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100928 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200929 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800930 "../../test:test_support",
931 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800932 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100933 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100934 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200935 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100936 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100937 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800938 ]
939 if (rtc_build_libvpx) {
940 deps += [ rtc_libvpx_dir ]
941 }
ehmaldonado36268652017-01-19 08:27:11 -0800942 }
kjellanderfb114242016-06-13 00:19:48 -0700943}