blob: dc9f018942dd21eb46528df52d8a2052175a0ea0 [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",
Henrik Kjellander2557b862015-11-18 22:00:21 +010094 "decoding_state.cc",
95 "decoding_state.h",
Ying Wang3b790f32018-01-19 17:58:57 +010096 "fec_controller_default.cc",
97 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -080098 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010099 "frame_buffer.cc",
100 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +0200101 "frame_buffer2.cc",
102 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -0700103 "frame_object.cc",
104 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000105 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100106 "generic_decoder.h",
johanb0a11112016-12-08 03:57:17 -0800107 "h264_sprop_parameter_sets.cc",
108 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700109 "h264_sps_pps_tracker.cc",
110 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100111 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100112 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100113 "inter_frame_delay.cc",
114 "inter_frame_delay.h",
115 "internal_defines.h",
116 "jitter_buffer.cc",
117 "jitter_buffer.h",
118 "jitter_buffer_common.h",
119 "jitter_estimator.cc",
120 "jitter_estimator.h",
Elad Alon10874b22019-02-21 16:25:40 +0100121 "loss_notification_controller.cc",
122 "loss_notification_controller.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100123 "media_opt_util.cc",
124 "media_opt_util.h",
philipelc707ab72016-04-01 02:01:54 -0700125 "packet_buffer.cc",
126 "packet_buffer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100127 "receiver.cc",
128 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -0700129 "rtp_frame_reference_finder.cc",
130 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100131 "rtt_filter.cc",
132 "rtt_filter.h",
133 "session_info.cc",
134 "session_info.h",
135 "timestamp_map.cc",
136 "timestamp_map.h",
137 "timing.cc",
138 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100139 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100140 "video_coding_impl.cc",
141 "video_coding_impl.h",
142 "video_receiver.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000143 ]
144
Anders Carlssondd8c1652018-01-30 10:32:13 +0100145 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100146 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100147 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200148 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100149 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000150 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200151 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700152 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100153 "..:module_api_public",
Ying Wang3b790f32018-01-19 17:58:57 +0100154 "../../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100155 "../../api:rtp_headers",
Erik Språngd96b2752018-12-13 11:23:27 +0100156 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800157 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200158 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700159 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200160 "../../api/video:video_frame",
161 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200162 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100163 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000164 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100165 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100166 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100167 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700168 "../../rtc_base:rtc_base_approved",
169 "../../rtc_base:rtc_numerics",
170 "../../rtc_base:rtc_task_queue",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100171 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100172 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500173 "../../rtc_base/experiments:rtt_mult_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200174 "../../rtc_base/synchronization:sequence_checker",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100175 "../../rtc_base/system:fallthrough",
Sebastian Jansson11d0d7b2019-04-11 12:39:34 +0200176 "../../rtc_base/task_utils:repeating_task",
Artem Titova76af0c2018-07-23 17:38:12 +0200177 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100178 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000179 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100180 "../../system_wrappers:event_wrapper",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100181 "../rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +0100182 "../utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100183 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200184 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200185 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000186 ]
187}
188
Patrik Höglund99175c62018-01-08 11:05:10 +0100189rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100190 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100191 sources = [
philipel9df33532019-03-04 16:37:50 +0100192 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100193 "include/video_codec_interface.h",
194 "include/video_coding_defines.h",
195 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200196 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100197 ]
198 deps = [
199 "..:module_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200200 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200201 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100202 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100203 "../../common_video",
204 "../../common_video/generic_frame_descriptor",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200205 "../../rtc_base/system:rtc_export",
Yves Gerey3e707812018-11-28 16:47:49 +0100206 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100207 ]
208}
209
charujaincb728ea2017-09-18 03:08:08 -0700210rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200211 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700212 sources = [
213 "codecs/h264/include/h264_globals.h",
214 "codecs/interface/common_constants.h",
215 "codecs/vp8/include/vp8_globals.h",
216 "codecs/vp9/include/vp9_globals.h",
217 ]
philipel1a4746a2018-07-09 15:52:29 +0200218
219 deps = [
220 "../../rtc_base:checks",
221 ]
charujaincb728ea2017-09-18 03:08:08 -0700222}
223
224rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000225 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700226 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100227 "utility/decoded_frames_history.cc",
228 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100229 "utility/default_video_bitrate_allocator.cc",
230 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000231 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100232 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200233 "utility/framerate_controller.cc",
234 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700235 "utility/ivf_file_writer.cc",
236 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000237 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100238 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200239 "utility/simulcast_rate_allocator.cc",
240 "utility/simulcast_rate_allocator.h",
241 "utility/simulcast_utility.cc",
242 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700243 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100244 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700245 "utility/vp9_uncompressed_header_parser.cc",
246 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000247 ]
248
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200249 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100250 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700251 "..:module_api",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100252 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200253 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100254 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700255 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700256 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700257 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100258 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100259 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700260 "../../rtc_base:rtc_base_approved",
261 "../../rtc_base:rtc_numerics",
262 "../../rtc_base:rtc_task_queue",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200263 "../../rtc_base/experiments:experimental_screenshare_settings",
Åsa Persson517678c2019-05-06 14:17:35 +0200264 "../../rtc_base/experiments:quality_scaler_settings",
Åsa Perssona945aee2018-04-24 16:53:25 +0200265 "../../rtc_base/experiments:quality_scaling_experiment",
Erik Språng2c58ba12019-01-23 16:53:18 +0100266 "../../rtc_base/experiments:rate_control_settings",
Erik Språng2b9dba32019-09-04 16:30:47 +0200267 "../../rtc_base/experiments:stable_target_rate_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200268 "../../rtc_base/synchronization:sequence_checker",
Niels Möllera12c42a2018-07-25 16:05:48 +0200269 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100270 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100271 "../../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200272 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100273 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200274 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200275 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000276}
277
kjellanderb62dbbe2016-09-23 00:38:52 -0700278rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000279 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700280 sources = [
281 "codecs/h264/h264.cc",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200282 "codecs/h264/h264_color_space.cc",
283 "codecs/h264/h264_color_space.h",
284 "codecs/h264/h264_decoder_impl.cc",
285 "codecs/h264/h264_decoder_impl.h",
286 "codecs/h264/h264_encoder_impl.cc",
287 "codecs/h264/h264_encoder_impl.h",
Zeke Chin71f6f442015-06-29 14:34:58 -0700288 "codecs/h264/include/h264.h",
289 ]
290
hbosbab934b2016-01-27 01:36:03 -0800291 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700292 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100293 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800294 ":video_coding_utility",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700295 "../../api/video:video_frame",
Johannes Kron042559f2019-04-25 11:51:55 +0200296 "../../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200297 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200298 "../../api/video:video_rtp_headers",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200299 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200300 "../../common_video",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100301 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800302 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100303 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100304 "../../rtc_base:checks",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200305 "../../rtc_base/system:rtc_export",
Johannes Kron042559f2019-04-25 11:51:55 +0200306 "../../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200307 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200308 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200309 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100310 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200311 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700312 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800313
hbos902c03e2016-01-21 03:34:40 -0800314 if (rtc_use_h264) {
hbosa9a1d2a2016-01-11 10:19:02 -0800315 deps += [
Artem Titov94b57c02019-03-21 13:35:10 +0100316 "//third_party/ffmpeg",
hbosa9a1d2a2016-01-11 10:19:02 -0800317 "//third_party/openh264:encoder",
318 ]
Dan Minor9c686132018-01-15 10:20:00 -0500319 if (!build_with_mozilla) {
320 deps += [ "../../media:rtc_media_base" ]
321 }
hbosa9a1d2a2016-01-11 10:19:02 -0800322 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700323}
324
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800325rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700326 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700327 "codecs/multiplex/augmented_video_frame_buffer.cc",
328 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800329 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800330 "codecs/multiplex/include/multiplex_encoder_adapter.h",
331 "codecs/multiplex/multiplex_decoder_adapter.cc",
332 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700333 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800334 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700335 ]
336
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700337 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100338 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700339 ":video_coding_utility",
340 "..:module_api",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200341 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100342 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200343 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200344 "../../api/video:video_frame",
345 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200346 "../../api/video:video_rtp_headers",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700347 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100348 "../../common_video",
349 "../../rtc_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100350 "../../rtc_base:checks",
Qiang Chena7c7a192018-01-24 13:36:41 -0800351 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700352 ]
353}
354
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200355# This target includes the internal SW codec.
356rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000357 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200358 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000359 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000360 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200361 "codecs/vp8/libvpx_interface.cc",
362 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200363 "codecs/vp8/libvpx_vp8_decoder.cc",
364 "codecs/vp8/libvpx_vp8_decoder.h",
365 "codecs/vp8/libvpx_vp8_encoder.cc",
366 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100367 ]
368
Anders Carlssondd8c1652018-01-30 10:32:13 +0100369 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200370 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100371 ":video_codec_interface",
372 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200373 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100374 "..:module_api",
375 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200376 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100377 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200378 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200379 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100380 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200381 "../../api/video:video_rtp_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100382 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100383 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100384 "../../common_video",
385 "../../rtc_base:checks",
386 "../../rtc_base:rtc_base_approved",
387 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100388 "../../rtc_base/experiments:cpu_speed_experiment",
Erik Språngd7ee76c2019-08-02 16:32:24 +0200389 "../../rtc_base/experiments:experimental_screenshare_settings",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800390 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100391 "../../rtc_base/experiments:rate_control_settings",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200392 "../../system_wrappers:field_trial",
393 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200394 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200395 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100396 "//third_party/libyuv",
397 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000398 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200399 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000400 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000401}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000402
Erik Språng4529fbc2018-10-12 10:30:31 +0200403rtc_static_library("webrtc_vp8_temporal_layers") {
404 visibility = [ "*" ]
405 sources = [
406 "codecs/vp8/default_temporal_layers.cc",
407 "codecs/vp8/default_temporal_layers.h",
408 "codecs/vp8/include/temporal_layers_checker.h",
409 "codecs/vp8/screenshare_layers.cc",
410 "codecs/vp8/screenshare_layers.h",
411 "codecs/vp8/temporal_layers.h",
412 "codecs/vp8/temporal_layers_checker.cc",
413 ]
414
Erik Språng4529fbc2018-10-12 10:30:31 +0200415 deps = [
416 ":codec_globals_headers",
417 ":video_codec_interface",
418 ":video_coding_utility",
419 "..:module_api",
420 "../..:webrtc_common",
Elad Alon7e00c672019-06-28 18:12:15 +0200421 "../../api:fec_controller_api",
Erik Språng4529fbc2018-10-12 10:30:31 +0200422 "../../api/video_codecs:video_codecs_api",
423 "../../rtc_base:checks",
424 "../../rtc_base:rtc_base_approved",
425 "../../rtc_base:rtc_numerics",
Erik Språng4529fbc2018-10-12 10:30:31 +0200426 "../../system_wrappers:field_trial",
427 "../../system_wrappers:metrics",
428 "//third_party/abseil-cpp/absl/memory",
429 "//third_party/abseil-cpp/absl/types:optional",
430 ]
431}
432
Sergey Silkin86684962018-03-28 19:32:37 +0200433# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
434rtc_static_library("webrtc_vp9_helpers") {
435 sources = [
436 "codecs/vp9/svc_config.cc",
437 "codecs/vp9/svc_config.h",
438 "codecs/vp9/svc_rate_allocator.cc",
439 "codecs/vp9/svc_rate_allocator.h",
440 ]
441
Sergey Silkin86684962018-03-28 19:32:37 +0200442 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100443 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200444 ":video_codec_interface",
445 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100446 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700447 "../../api/video:video_bitrate_allocator",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200448 "../../api/video:video_codec_constants",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200449 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200450 "../../common_video",
451 "../../rtc_base:checks",
Erik Språngcf9cbf52019-09-04 14:30:57 +0200452 "../../rtc_base/experiments:stable_target_rate_experiment",
453 "//third_party/abseil-cpp/absl/container:inlined_vector",
Sergey Silkin86684962018-03-28 19:32:37 +0200454 ]
455}
456
kjellanderb62dbbe2016-09-23 00:38:52 -0700457rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000458 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200459 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100460 sources = [
461 "codecs/vp9/include/vp9.h",
462 "codecs/vp9/vp9.cc",
463 "codecs/vp9/vp9_frame_buffer_pool.cc",
464 "codecs/vp9/vp9_frame_buffer_pool.h",
465 "codecs/vp9/vp9_impl.cc",
466 "codecs/vp9/vp9_impl.h",
467 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000468
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000469 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100470 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000471 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200472 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700473 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200474 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200475 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100476 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700477 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700478 "../../api/video:video_frame_i010",
Chen Xing5d24b162019-06-10 12:59:38 +0200479 "../../api/video:video_rtp_headers",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700480 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000481 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700482 "../../media:rtc_media_base",
483 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100484 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100485 "../../rtc_base:checks",
Erik Språng4b4266f2019-01-23 12:48:13 +0100486 "../../rtc_base/experiments:rate_control_settings",
Sergey Silkin390f3582018-10-01 17:13:50 +0200487 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200488 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200489 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000490 ]
491 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200492 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000493 }
494}
kjellanderfb114242016-06-13 00:19:48 -0700495
496if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100497 if (is_android) {
498 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700499 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100500 "codecs/test/android_codec_factory_helper.cc",
501 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700502 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100503
504 deps = [
505 "../../api/video_codecs:video_codecs_api",
506 "../../rtc_base:checks",
507 "../../rtc_base:rtc_base_approved",
508 "../../sdk/android:native_api_base",
509 "../../sdk/android:native_api_codecs",
510 "../../sdk/android:native_api_jni",
511 "//base",
512 ]
513 }
514 }
515
516 if (is_ios || is_mac) {
517 rtc_static_library("objc_codec_factory_helper") {
518 sources = [
519 "codecs/test/objc_codec_factory_helper.h",
520 "codecs/test/objc_codec_factory_helper.mm",
521 ]
522
magjed73c0eb52017-08-07 06:55:28 -0700523 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200524 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200525 "../../api/video:video_rtp_headers",
magjed73c0eb52017-08-07 06:55:28 -0700526 "../../api/video_codecs:video_codecs_api",
527 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100528 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700529 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100530 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100531 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100532 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100533 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100534 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700535 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700536 ]
magjed73c0eb52017-08-07 06:55:28 -0700537 }
538 }
539
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200540 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700541 testonly = true
542 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200543 "utility/simulcast_test_fixture_impl.cc",
544 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700545 ]
546
magjed6cc25612017-07-10 03:26:36 -0700547 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100548 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700549 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200550 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200551 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200552 "../../api:mock_video_decoder",
553 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200554 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200555 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200556 "../../api/video:video_frame",
557 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200558 "../../api/video:video_rtp_headers",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200559 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100560 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100561 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700562 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700563 "../../test:test_support",
Artem Titov533a9fe2019-03-21 12:18:05 +0100564 "//third_party/abseil-cpp/absl/memory",
magjed6cc25612017-07-10 03:26:36 -0700565 ]
566 }
567
ehmaldonado38a21322016-09-02 04:10:34 -0700568 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700569 testonly = true
570 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100571 "codecs/test/video_codec_unittest.cc",
572 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700573 "codecs/test/videoprocessor.cc",
574 "codecs/test/videoprocessor.h",
575 ]
576
kjellanderfb114242016-06-13 00:19:48 -0700577 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100578 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100579 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800580 ":video_coding",
581 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100582 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200583 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100584 "..:module_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100585 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200586 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000587 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800588 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100589 "../../api/video:encoded_image",
590 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700591 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100592 "../../api/video:video_bitrate_allocator_factory",
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",
ilnikd60d06a2017-04-05 03:02:20 -0700596 "../../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",
brandtrc8c59052017-08-21 06:44:16 -0700600 "../../rtc_base:rtc_task_queue",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200601 "../../rtc_base/synchronization:sequence_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000602 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700603 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800604 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800605 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100606 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100607 "//third_party/abseil-cpp/absl/memory",
608 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100609 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700610 ]
611 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800612
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200613 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200614 if (is_android) {
615 video_coding_modules_tests_resources += [
616 "../../resources/foreman_128x96.yuv",
617 "../../resources/foreman_160x120.yuv",
618 "../../resources/foreman_176x144.yuv",
619 "../../resources/foreman_240x136.yuv",
620 "../../resources/foreman_320x240.yuv",
621 "../../resources/foreman_480x272.yuv",
622 ]
623 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200624 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100625 video_coding_modules_tests_resources += [
626 "../../resources/FourPeople_1280x720_30.yuv",
627 "../../resources/ConferenceMotion_1280_720_50.yuv",
628 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100629 }
630
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200631 num_video_coding_modules_tests_resources = 0
632 foreach(i, video_coding_modules_tests_resources) {
633 num_video_coding_modules_tests_resources += 1
634 }
635
636 if (num_video_coding_modules_tests_resources > 0) {
637 if (is_ios || is_mac) {
638 bundle_data("video_coding_modules_tests_resources_bundle_data") {
639 testonly = true
640 sources = video_coding_modules_tests_resources
641 outputs = [
642 "{{bundle_resources_dir}}/{{source_file_part}}",
643 ]
644 }
brandtr12a47f62017-09-01 00:10:27 -0700645 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800646 }
647
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200648 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800649 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800650 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200651 "codecs/test/videocodec_test_fixture_impl.cc",
652 "codecs/test/videocodec_test_fixture_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800653 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800654 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100655 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100656 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800657 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700658 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100659 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200660 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700661 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100662 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200663 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200664 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100665 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100666 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200667 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700668 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200669 "../../media:rtc_audio_video",
670 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100671 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200672 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100673 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200674 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200675 "../../rtc_base:rtc_base_tests_utils",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100676 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700677 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100678 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100679 "../../test:perf_test",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800680 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200681 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700682 "../../test:video_test_support",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200683 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100684 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200685 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200686 }
687
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100688 rtc_source_set("videocodec_test_stats_impl") {
689 testonly = true
690 sources = [
691 "codecs/test/videocodec_test_stats_impl.cc",
692 "codecs/test/videocodec_test_stats_impl.h",
693 ]
694 deps = [
695 "../../api:videocodec_test_fixture_api",
696 "../../rtc_base:checks",
Yves Gerey79e9f4b2019-04-13 18:59:53 +0200697 "../../rtc_base:rtc_numerics",
Rasmus Brandt315de592019-04-15 13:27:00 +0200698 "../../rtc_base:stringutils",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100699 "../../test:test_common",
700 "../rtp_rtcp:rtp_rtcp_format",
701 ]
702 }
703
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200704 rtc_source_set("video_coding_modules_tests") {
705 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100706 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200707
708 sources = [
709 "codecs/h264/test/h264_impl_unittest.cc",
710 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
711 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
712 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200713 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200714 "codecs/vp8/test/vp8_impl_unittest.cc",
715 "codecs/vp9/test/vp9_impl_unittest.cc",
716 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200717 if (rtc_use_h264) {
718 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
719 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200720
721 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100722 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 ":video_codecs_test_framework",
724 ":video_coding_utility",
725 ":videocodec_test_impl",
726 ":webrtc_h264",
727 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200728 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200729 ":webrtc_vp9",
730 ":webrtc_vp9_helpers",
731 "../..:webrtc_common",
732 "../../api:create_videocodec_test_fixture_api",
733 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200734 "../../api:mock_video_decoder",
735 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100736 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200737 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200738 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100739 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700740 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200741 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200742 "../../api/video:video_rtp_headers",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200743 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200744 "../../api/video_codecs:video_codecs_api",
745 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100746 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200747 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200748 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200749 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700750 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700751 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100752 "../../rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200753 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200754 "../../test:fileutils",
755 "../../test:test_support",
756 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200757 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200758 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200759 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700760 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800761 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800762
brandtrdf232992017-09-07 07:50:06 -0700763 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800764
765 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200766 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000767
Rasmus Brandtf1053252018-02-05 09:52:31 +0100768 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800769 }
770
771 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200772 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200773
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200774 deps += [ ":objc_codec_factory_helper" ]
775
776 if (num_video_coding_modules_tests_resources > 0) {
777 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
778 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800779 }
780
Erik Språngdcc02382018-10-10 14:58:46 +0200781 if (rtc_build_libvpx) {
782 deps += [ rtc_libvpx_dir ]
783 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800784 }
785
ehmaldonado36268652017-01-19 08:27:11 -0800786 rtc_source_set("video_coding_unittests") {
787 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700788
ehmaldonado36268652017-01-19 08:27:11 -0800789 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200790 "codecs/test/videocodec_test_fixture_config_unittest.cc",
791 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800792 "codecs/test/videoprocessor_unittest.cc",
793 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200794 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800795 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200796 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200797 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800798 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100799 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800800 "frame_buffer2_unittest.cc",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200801 "generic_decoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800802 "h264_sprop_parameter_sets_unittest.cc",
803 "h264_sps_pps_tracker_unittest.cc",
804 "histogram_unittest.cc",
805 "include/mock/mock_vcm_callbacks.h",
806 "jitter_buffer_unittest.cc",
807 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100808 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800809 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800810 "receiver_unittest.cc",
811 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800812 "session_info_unittest.cc",
813 "test/stream_generator.cc",
814 "test/stream_generator.h",
815 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100816 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800817 "utility/default_video_bitrate_allocator_unittest.cc",
818 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200819 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800820 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800821 "utility/quality_scaler_unittest.cc",
822 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800823 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800824 "video_packet_buffer_unittest.cc",
825 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800826 ]
ehmaldonado36268652017-01-19 08:27:11 -0800827 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200828 sources += [
829 "codecs/h264/h264_encoder_impl_unittest.cc",
830 "codecs/h264/h264_simulcast_unittest.cc",
831 ]
ehmaldonado36268652017-01-19 08:27:11 -0800832 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200833
ehmaldonado36268652017-01-19 08:27:11 -0800834 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200835 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100836 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200837 ":nack_module",
838 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200839 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100840 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800841 ":video_codecs_test_framework",
842 ":video_coding",
843 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200844 ":videocodec_test_impl",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100845 ":videocodec_test_stats_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800846 ":webrtc_h264",
847 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200848 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800849 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200850 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700851 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100852 "..:module_fec_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100853 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200854 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100855 "../../api:fec_controller_api",
Elad Alon45befc52019-07-02 11:20:09 +0200856 "../../api:mock_fec_controller_override",
Erik Språngc84cd952018-10-15 11:55:13 +0200857 "../../api:mock_video_decoder",
858 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100859 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200860 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200861 "../../api:videocodec_test_fixture_api",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200862 "../../api/task_queue:default_task_queue_factory",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200863 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800864 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100865 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700866 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800867 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200868 "../../api/video:video_frame",
869 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200870 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700871 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100872 "../../api/video_codecs:vp8_temporal_layers_factory",
Artem Titov94b57c02019-03-21 13:35:10 +0100873 "../../common_video",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200874 "../../common_video/test:utilities",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200875 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100876 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100877 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700878 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200879 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200880 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700881 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100882 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100883 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100884 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100885 "../../system_wrappers:event_wrapper",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200886 "../../system_wrappers:field_trial",
887 "../../system_wrappers:metrics",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200888 "../../test:fake_video_codecs",
ehmaldonado36268652017-01-19 08:27:11 -0800889 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100890 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200891 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800892 "../../test:test_support",
893 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800894 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100895 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100896 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200897 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100898 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100899 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800900 ]
901 if (rtc_build_libvpx) {
902 deps += [ rtc_libvpx_dir ]
903 }
ehmaldonado36268652017-01-19 08:27:11 -0800904 }
kjellanderfb114242016-06-13 00:19:48 -0700905}