blob: 7a5ac842d0e4d7176bf6be91744e34d8537cffce [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",
20 "../../:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +020021 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +010022 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020023 "../../api/video:video_frame_i420",
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",
philipeld5a272f2018-02-21 14:30:34 +010030 "../../system_wrappers: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",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020053 "../utility:utility",
54 ]
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",
philipel2837edc2018-10-02 13:55:47 +020067 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +010068 "../rtp_rtcp:rtp_video_header",
69 "//third_party/abseil-cpp/absl/types:optional",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020070 ]
71}
72
kjellanderb62dbbe2016-09-23 00:38:52 -070073rtc_static_library("video_coding") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000074 visibility = [ "*" ]
Mirko Bonadei17f48782018-09-28 08:51:10 +020075 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +010076 "..:module_fec_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010077 "../../api:scoped_refptr",
Yves Gerey3e707812018-11-28 16:47:49 +010078 "../../api/video:encoded_image",
79 "../../api/video:video_bitrate_allocation",
80 "../../api/video:video_bitrate_allocator_factory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020081 "../../system_wrappers:field_trial",
82 "../../system_wrappers:metrics",
Yves Gerey3e707812018-11-28 16:47:49 +010083 "../rtp_rtcp:rtp_video_header",
84 "//third_party/abseil-cpp/absl/memory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020085 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010086
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000087 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010088 "codec_timer.cc",
89 "codec_timer.h",
Niels Möllerf9063782018-02-20 16:09:48 +010090 "decoder_database.cc",
91 "decoder_database.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010092 "decoding_state.cc",
93 "decoding_state.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",
Henrik Kjellander2557b862015-11-18 22:00:21 +010097 "frame_buffer.cc",
98 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +020099 "frame_buffer2.cc",
100 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -0700101 "frame_object.cc",
102 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000103 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100104 "generic_decoder.h",
johanb0a11112016-12-08 03:57:17 -0800105 "h264_sprop_parameter_sets.cc",
106 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700107 "h264_sps_pps_tracker.cc",
108 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100109 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100110 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100111 "inter_frame_delay.cc",
112 "inter_frame_delay.h",
113 "internal_defines.h",
114 "jitter_buffer.cc",
115 "jitter_buffer.h",
116 "jitter_buffer_common.h",
117 "jitter_estimator.cc",
118 "jitter_estimator.h",
Elad Alon10874b22019-02-21 16:25:40 +0100119 "loss_notification_controller.cc",
120 "loss_notification_controller.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100121 "media_opt_util.cc",
122 "media_opt_util.h",
philipelc707ab72016-04-01 02:01:54 -0700123 "packet_buffer.cc",
124 "packet_buffer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100125 "receiver.cc",
126 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -0700127 "rtp_frame_reference_finder.cc",
128 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100129 "rtt_filter.cc",
130 "rtt_filter.h",
131 "session_info.cc",
132 "session_info.h",
133 "timestamp_map.cc",
134 "timestamp_map.h",
135 "timing.cc",
136 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100137 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100138 "video_coding_impl.cc",
139 "video_coding_impl.h",
140 "video_receiver.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000141 ]
142
Anders Carlssondd8c1652018-01-30 10:32:13 +0100143 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100144 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100145 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200146 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100147 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000148 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200149 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700150 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100151 "..:module_api_public",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000152 "../..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +0100153 "../../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100154 "../../api:rtp_headers",
Erik Språngd96b2752018-12-13 11:23:27 +0100155 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800156 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200157 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700158 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200159 "../../api/video:video_frame",
160 "../../api/video:video_frame_i420",
Patrik Höglund99175c62018-01-08 11:05:10 +0100161 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000162 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100163 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100164 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700165 "../../rtc_base:rtc_base",
166 "../../rtc_base:rtc_base_approved",
167 "../../rtc_base:rtc_numerics",
168 "../../rtc_base:rtc_task_queue",
169 "../../rtc_base:sequenced_task_checker",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100170 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100171 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500172 "../../rtc_base/experiments:rtt_mult_experiment",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100173 "../../rtc_base/system:fallthrough",
Artem Titova76af0c2018-07-23 17:38:12 +0200174 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100175 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000176 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100177 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36df2d72016-12-08 09:56:16 -0800178 "../utility:utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100179 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200180 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200181 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000182 ]
183}
184
Patrik Höglund99175c62018-01-08 11:05:10 +0100185rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100186 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100187 sources = [
philipel9df33532019-03-04 16:37:50 +0100188 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100189 "include/video_codec_interface.h",
190 "include/video_coding_defines.h",
191 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200192 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100193 ]
194 deps = [
195 "..:module_api",
Patrik Höglund99175c62018-01-08 11:05:10 +0100196 "../..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200197 "../../api/video:video_frame",
Patrik Höglund99175c62018-01-08 11:05:10 +0100198 "../../api/video_codecs:video_codecs_api",
199 "../../common_video:common_video",
philipel9df33532019-03-04 16:37:50 +0100200 "../../common_video/generic_frame_descriptor:generic_frame_descriptor",
Yves Gerey3e707812018-11-28 16:47:49 +0100201 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100202 ]
203}
204
charujaincb728ea2017-09-18 03:08:08 -0700205rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200206 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700207 sources = [
208 "codecs/h264/include/h264_globals.h",
209 "codecs/interface/common_constants.h",
210 "codecs/vp8/include/vp8_globals.h",
211 "codecs/vp9/include/vp9_globals.h",
212 ]
philipel1a4746a2018-07-09 15:52:29 +0200213
214 deps = [
215 "../../rtc_base:checks",
216 ]
charujaincb728ea2017-09-18 03:08:08 -0700217}
218
219rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000220 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700221 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100222 "utility/decoded_frames_history.cc",
223 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100224 "utility/default_video_bitrate_allocator.cc",
225 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000226 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100227 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200228 "utility/framerate_controller.cc",
229 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700230 "utility/ivf_file_writer.cc",
231 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000232 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100233 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200234 "utility/simulcast_rate_allocator.cc",
235 "utility/simulcast_rate_allocator.h",
236 "utility/simulcast_utility.cc",
237 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700238 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100239 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700240 "utility/vp9_uncompressed_header_parser.cc",
241 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000242 ]
243
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200244 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100245 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700246 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800247 "../..:webrtc_common",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100248 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200249 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100250 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700251 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700252 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700253 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100254 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100255 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700256 "../../rtc_base:rtc_base_approved",
257 "../../rtc_base:rtc_numerics",
258 "../../rtc_base:rtc_task_queue",
259 "../../rtc_base:sequenced_task_checker",
Åsa Perssona945aee2018-04-24 16:53:25 +0200260 "../../rtc_base/experiments:quality_scaling_experiment",
Erik Språng2c58ba12019-01-23 16:53:18 +0100261 "../../rtc_base/experiments:rate_control_settings",
Niels Möllera12c42a2018-07-25 16:05:48 +0200262 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100263 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100264 "../../rtc_base/task_utils:repeating_task",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200265 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200266 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100267 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200268 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200269 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000270}
271
kjellanderb62dbbe2016-09-23 00:38:52 -0700272rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000273 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700274 sources = [
275 "codecs/h264/h264.cc",
276 "codecs/h264/include/h264.h",
277 ]
278
hbosbab934b2016-01-27 01:36:03 -0800279 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700280 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100281 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800282 ":video_coding_utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100283 "../../:webrtc_common",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700284 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200285 "../../api/video:video_frame_i420",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200286 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100287 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800288 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100289 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100290 "../../rtc_base:rtc_base",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200291 "../../rtc_base/system:rtc_export",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200292 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200293 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200294 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100295 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200296 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700297 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800298
hbos902c03e2016-01-21 03:34:40 -0800299 if (rtc_use_h264) {
Mirko Bonadeiee0a85c2019-01-15 10:47:18 +0100300 assert(!(is_win && !is_clang), "See: bugs.webrtc.org/9213#c13.")
hbosbab934b2016-01-27 01:36:03 -0800301 sources += [
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700302 "codecs/h264/h264_color_space.cc",
303 "codecs/h264/h264_color_space.h",
hbosbab934b2016-01-27 01:36:03 -0800304 "codecs/h264/h264_decoder_impl.cc",
305 "codecs/h264/h264_decoder_impl.h",
306 "codecs/h264/h264_encoder_impl.cc",
307 "codecs/h264/h264_encoder_impl.h",
308 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800309 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800310 "../../common_video",
hbosa9a1d2a2016-01-11 10:19:02 -0800311 "//third_party/ffmpeg:ffmpeg",
312 "//third_party/openh264:encoder",
313 ]
Oleh Prypin2b82ee72018-01-15 09:44:18 +0100314
Dan Minor9c686132018-01-15 10:20:00 -0500315 if (!build_with_mozilla) {
316 deps += [ "../../media:rtc_media_base" ]
317 }
hbosa9a1d2a2016-01-11 10:19:02 -0800318 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700319}
320
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800321rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700322 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700323 "codecs/multiplex/augmented_video_frame_buffer.cc",
324 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800325 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800326 "codecs/multiplex/include/multiplex_encoder_adapter.h",
327 "codecs/multiplex/multiplex_decoder_adapter.cc",
328 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700329 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800330 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700331 ]
332
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700333 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100334 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700335 ":video_coding_utility",
336 "..:module_api",
337 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100338 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200339 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200340 "../../api/video:video_frame",
341 "../../api/video:video_frame_i420",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700342 "../../api/video_codecs:video_codecs_api",
343 "../../common_video:common_video",
Yves Gerey3e707812018-11-28 16:47:49 +0100344 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100345 "../../rtc_base:rtc_base",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700346 "../../system_wrappers",
Qiang Chena7c7a192018-01-24 13:36:41 -0800347 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700348 ]
349}
350
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200351# This target includes the internal SW codec.
352rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000353 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200354 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000355 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000356 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200357 "codecs/vp8/libvpx_interface.cc",
358 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200359 "codecs/vp8/libvpx_vp8_decoder.cc",
360 "codecs/vp8/libvpx_vp8_decoder.h",
361 "codecs/vp8/libvpx_vp8_encoder.cc",
362 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100363 ]
364
Anders Carlssondd8c1652018-01-30 10:32:13 +0100365 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200366 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100367 ":video_codec_interface",
368 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200369 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100370 "..:module_api",
371 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100372 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200373 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200374 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100375 "../../api/video:video_frame_i420",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100376 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100377 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100378 "../../common_video",
379 "../../rtc_base:checks",
380 "../../rtc_base:rtc_base_approved",
381 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100382 "../../rtc_base/experiments:cpu_speed_experiment",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800383 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100384 "../../rtc_base/experiments:rate_control_settings",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100385 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200386 "../../system_wrappers:field_trial",
387 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200388 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200389 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100390 "//third_party/libyuv",
391 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000392 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200393 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000394 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000395}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000396
Erik Språng4529fbc2018-10-12 10:30:31 +0200397rtc_static_library("webrtc_vp8_temporal_layers") {
398 visibility = [ "*" ]
399 sources = [
400 "codecs/vp8/default_temporal_layers.cc",
401 "codecs/vp8/default_temporal_layers.h",
402 "codecs/vp8/include/temporal_layers_checker.h",
403 "codecs/vp8/screenshare_layers.cc",
404 "codecs/vp8/screenshare_layers.h",
405 "codecs/vp8/temporal_layers.h",
406 "codecs/vp8/temporal_layers_checker.cc",
407 ]
408
Erik Språng4529fbc2018-10-12 10:30:31 +0200409 deps = [
410 ":codec_globals_headers",
411 ":video_codec_interface",
412 ":video_coding_utility",
413 "..:module_api",
414 "../..:webrtc_common",
415 "../../api/video_codecs:video_codecs_api",
416 "../../rtc_base:checks",
417 "../../rtc_base:rtc_base_approved",
418 "../../rtc_base:rtc_numerics",
419 "../../system_wrappers",
420 "../../system_wrappers:field_trial",
421 "../../system_wrappers:metrics",
422 "//third_party/abseil-cpp/absl/memory",
423 "//third_party/abseil-cpp/absl/types:optional",
424 ]
425}
426
Sergey Silkin86684962018-03-28 19:32:37 +0200427# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
428rtc_static_library("webrtc_vp9_helpers") {
429 sources = [
430 "codecs/vp9/svc_config.cc",
431 "codecs/vp9/svc_config.h",
432 "codecs/vp9/svc_rate_allocator.cc",
433 "codecs/vp9/svc_rate_allocator.h",
434 ]
435
Sergey Silkin86684962018-03-28 19:32:37 +0200436 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100437 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200438 ":video_codec_interface",
439 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100440 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700441 "../../api/video:video_bitrate_allocator",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200442 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200443 "../../common_video",
444 "../../rtc_base:checks",
445 ]
446}
447
kjellanderb62dbbe2016-09-23 00:38:52 -0700448rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000449 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200450 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100451 sources = [
452 "codecs/vp9/include/vp9.h",
453 "codecs/vp9/vp9.cc",
454 "codecs/vp9/vp9_frame_buffer_pool.cc",
455 "codecs/vp9/vp9_frame_buffer_pool.h",
456 "codecs/vp9/vp9_impl.cc",
457 "codecs/vp9/vp9_impl.h",
458 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000459
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000460 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100461 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000462 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200463 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700464 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200465 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100466 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700467 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700468 "../../api/video:video_frame_i010",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700469 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000470 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700471 "../../media:rtc_media_base",
472 "../../media:rtc_vp9_profile",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100473 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100474 "../../rtc_base:rtc_base",
Erik Språng4b4266f2019-01-23 12:48:13 +0100475 "../../rtc_base/experiments:rate_control_settings",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000476 "../../system_wrappers",
Sergey Silkin390f3582018-10-01 17:13:50 +0200477 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200478 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200479 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000480 ]
481 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200482 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000483 }
484}
kjellanderfb114242016-06-13 00:19:48 -0700485
486if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100487 if (is_android) {
488 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700489 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100490 "codecs/test/android_codec_factory_helper.cc",
491 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700492 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100493
494 deps = [
495 "../../api/video_codecs:video_codecs_api",
496 "../../rtc_base:checks",
497 "../../rtc_base:rtc_base_approved",
498 "../../sdk/android:native_api_base",
499 "../../sdk/android:native_api_codecs",
500 "../../sdk/android:native_api_jni",
501 "//base",
502 ]
503 }
504 }
505
506 if (is_ios || is_mac) {
507 rtc_static_library("objc_codec_factory_helper") {
508 sources = [
509 "codecs/test/objc_codec_factory_helper.h",
510 "codecs/test/objc_codec_factory_helper.mm",
511 ]
512
magjed73c0eb52017-08-07 06:55:28 -0700513 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200514 "../../api/video:video_frame",
magjed73c0eb52017-08-07 06:55:28 -0700515 "../../api/video_codecs:video_codecs_api",
516 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100517 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700518 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100519 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100520 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100521 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100522 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100523 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700524 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700525 ]
magjed73c0eb52017-08-07 06:55:28 -0700526 }
527 }
528
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200529 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700530 testonly = true
531 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200532 "utility/simulcast_test_fixture_impl.cc",
533 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700534 ]
535
magjed6cc25612017-07-10 03:26:36 -0700536 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100537 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700538 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200539 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200540 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200541 "../../api:mock_video_decoder",
542 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200543 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200544 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200545 "../../api/video:video_frame",
546 "../../api/video:video_frame_i420",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200547 "../../api/video_codecs:video_codecs_api",
magjed6cc25612017-07-10 03:26:36 -0700548 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100549 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700550 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700551 "../../test:test_support",
Artem Titov1ebfb6a2019-01-03 23:49:37 +0100552 "//third_party/abseil-cpp/absl/memory:memory",
magjed6cc25612017-07-10 03:26:36 -0700553 ]
554 }
555
ehmaldonado38a21322016-09-02 04:10:34 -0700556 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700557 testonly = true
558 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100559 "codecs/test/video_codec_unittest.cc",
560 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700561 "codecs/test/videoprocessor.cc",
562 "codecs/test/videoprocessor.h",
563 ]
564
kjellanderfb114242016-06-13 00:19:48 -0700565 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100566 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100567 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800568 ":video_coding",
569 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200570 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100571 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800572 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100573 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200574 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000575 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800576 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100577 "../../api/video:encoded_image",
578 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700579 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100580 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200581 "../../api/video:video_frame",
582 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700583 "../../api/video_codecs:video_codecs_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800584 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100585 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700586 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700587 "../../rtc_base:rtc_task_queue",
588 "../../rtc_base:sequenced_task_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000589 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700590 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800591 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800592 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100593 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100594 "//third_party/abseil-cpp/absl/memory",
595 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100596 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700597 ]
598 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800599
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200600 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200601 if (is_android) {
602 video_coding_modules_tests_resources += [
603 "../../resources/foreman_128x96.yuv",
604 "../../resources/foreman_160x120.yuv",
605 "../../resources/foreman_176x144.yuv",
606 "../../resources/foreman_240x136.yuv",
607 "../../resources/foreman_320x240.yuv",
608 "../../resources/foreman_480x272.yuv",
609 ]
610 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200611 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100612 video_coding_modules_tests_resources += [
613 "../../resources/FourPeople_1280x720_30.yuv",
614 "../../resources/ConferenceMotion_1280_720_50.yuv",
615 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100616 }
617
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200618 num_video_coding_modules_tests_resources = 0
619 foreach(i, video_coding_modules_tests_resources) {
620 num_video_coding_modules_tests_resources += 1
621 }
622
623 if (num_video_coding_modules_tests_resources > 0) {
624 if (is_ios || is_mac) {
625 bundle_data("video_coding_modules_tests_resources_bundle_data") {
626 testonly = true
627 sources = video_coding_modules_tests_resources
628 outputs = [
629 "{{bundle_resources_dir}}/{{source_file_part}}",
630 ]
631 }
brandtr12a47f62017-09-01 00:10:27 -0700632 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800633 }
634
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200635 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800636 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800637 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200638 "codecs/test/videocodec_test_fixture_impl.cc",
639 "codecs/test/videocodec_test_fixture_impl.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200640 "codecs/test/videocodec_test_stats_impl.cc",
641 "codecs/test/videocodec_test_stats_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800642 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800643 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100644 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100645 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800646 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700647 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200648 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700649 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100650 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200651 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200652 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100653 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100654 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200655 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700656 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200657 "../../media:rtc_audio_video",
658 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100659 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200660 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100661 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200662 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200663 "../../rtc_base:rtc_base_tests_utils",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200664 "../../rtc_base:rtc_event",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100665 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700666 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100667 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100668 "../../test:perf_test",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200669 "../../test:test_common",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800670 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200671 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700672 "../../test:video_test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200673 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200674 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100675 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200676 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200677 }
678
679 rtc_source_set("video_coding_modules_tests") {
680 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100681 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200682
683 sources = [
684 "codecs/h264/test/h264_impl_unittest.cc",
685 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
686 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
687 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200688 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200689 "codecs/vp8/test/vp8_impl_unittest.cc",
690 "codecs/vp9/test/vp9_impl_unittest.cc",
691 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200692 if (rtc_use_h264) {
693 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
694 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200695
696 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100697 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200698 ":video_codecs_test_framework",
699 ":video_coding_utility",
700 ":videocodec_test_impl",
701 ":webrtc_h264",
702 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200703 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200704 ":webrtc_vp9",
705 ":webrtc_vp9_helpers",
706 "../..:webrtc_common",
707 "../../api:create_videocodec_test_fixture_api",
708 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200709 "../../api:mock_video_decoder",
710 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100711 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200712 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200713 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100714 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700715 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200716 "../../api/video:video_frame_i420",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200717 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200718 "../../api/video_codecs:video_codecs_api",
719 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100720 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200721 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200722 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700724 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700725 "../../media:rtc_vp9_profile",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200726 "../../rtc_base:rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200727 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200728 "../../test:fileutils",
729 "../../test:test_support",
730 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200731 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200732 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200733 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700734 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800735 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800736
brandtrdf232992017-09-07 07:50:06 -0700737 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800738
739 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200740 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000741
Rasmus Brandtf1053252018-02-05 09:52:31 +0100742 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800743 }
744
745 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200746 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200747
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200748 deps += [ ":objc_codec_factory_helper" ]
749
750 if (num_video_coding_modules_tests_resources > 0) {
751 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
752 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800753 }
754
Erik Språngdcc02382018-10-10 14:58:46 +0200755 if (rtc_build_libvpx) {
756 deps += [ rtc_libvpx_dir ]
757 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800758 }
759
ehmaldonado36268652017-01-19 08:27:11 -0800760 rtc_source_set("video_coding_unittests") {
761 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700762
ehmaldonado36268652017-01-19 08:27:11 -0800763 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200764 "codecs/test/videocodec_test_fixture_config_unittest.cc",
765 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800766 "codecs/test/videoprocessor_unittest.cc",
767 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200768 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800769 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200770 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200771 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800772 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100773 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800774 "frame_buffer2_unittest.cc",
775 "h264_sprop_parameter_sets_unittest.cc",
776 "h264_sps_pps_tracker_unittest.cc",
777 "histogram_unittest.cc",
778 "include/mock/mock_vcm_callbacks.h",
779 "jitter_buffer_unittest.cc",
780 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100781 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800782 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800783 "receiver_unittest.cc",
784 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800785 "session_info_unittest.cc",
786 "test/stream_generator.cc",
787 "test/stream_generator.h",
788 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100789 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800790 "utility/default_video_bitrate_allocator_unittest.cc",
791 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200792 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800793 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800794 "utility/quality_scaler_unittest.cc",
795 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800796 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800797 "video_packet_buffer_unittest.cc",
798 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800799 ]
ehmaldonado36268652017-01-19 08:27:11 -0800800 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200801 sources += [
802 "codecs/h264/h264_encoder_impl_unittest.cc",
803 "codecs/h264/h264_simulcast_unittest.cc",
804 ]
ehmaldonado36268652017-01-19 08:27:11 -0800805 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200806
ehmaldonado36268652017-01-19 08:27:11 -0800807 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200808 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100809 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200810 ":nack_module",
811 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200812 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100813 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800814 ":video_codecs_test_framework",
815 ":video_coding",
816 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200817 ":videocodec_test_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800818 ":webrtc_h264",
819 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200820 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800821 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200822 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700823 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100824 "..:module_fec_api",
ehmaldonado36268652017-01-19 08:27:11 -0800825 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100826 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200827 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100828 "../../api:fec_controller_api",
Erik Språngc84cd952018-10-15 11:55:13 +0200829 "../../api:mock_video_decoder",
830 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100831 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200832 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200833 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200834 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800835 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100836 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700837 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800838 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200839 "../../api/video:video_frame",
840 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700841 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100842 "../../api/video_codecs:vp8_temporal_layers_factory",
ehmaldonado36268652017-01-19 08:27:11 -0800843 "../../common_video:common_video",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200844 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100845 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700846 "../../rtc_base:rtc_base",
847 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200848 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200849 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700850 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100851 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100852 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100853 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200854 "../../system_wrappers:field_trial",
855 "../../system_wrappers:metrics",
ehmaldonado36268652017-01-19 08:27:11 -0800856 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100857 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200858 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800859 "../../test:test_support",
860 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800861 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100862 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100863 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200864 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100865 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100866 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800867 ]
868 if (rtc_build_libvpx) {
869 deps += [ rtc_libvpx_dir ]
870 }
ehmaldonado36268652017-01-19 08:27:11 -0800871 }
kjellanderfb114242016-06-13 00:19:48 -0700872}