blob: 1938a8869cbc5faca4f636066f7fd2a7b3143921 [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",
Sebastian Jansson11d0d7b2019-04-11 12:39:34 +0200156 "../../api/task_queue:global_task_queue_factory",
Erik Språngd96b2752018-12-13 11:23:27 +0100157 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800158 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200159 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700160 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200161 "../../api/video:video_frame",
162 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200163 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100164 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000165 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100166 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100167 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100168 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700169 "../../rtc_base:rtc_base_approved",
170 "../../rtc_base:rtc_numerics",
171 "../../rtc_base:rtc_task_queue",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100172 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100173 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500174 "../../rtc_base/experiments:rtt_mult_experiment",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200175 "../../rtc_base/synchronization:sequence_checker",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100176 "../../rtc_base/system:fallthrough",
Sebastian Jansson11d0d7b2019-04-11 12:39:34 +0200177 "../../rtc_base/task_utils:repeating_task",
Artem Titova76af0c2018-07-23 17:38:12 +0200178 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100179 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000180 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100181 "../../system_wrappers:event_wrapper",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100182 "../rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +0100183 "../utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100184 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200185 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200186 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000187 ]
188}
189
Patrik Höglund99175c62018-01-08 11:05:10 +0100190rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100191 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100192 sources = [
philipel9df33532019-03-04 16:37:50 +0100193 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100194 "include/video_codec_interface.h",
195 "include/video_coding_defines.h",
196 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200197 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100198 ]
199 deps = [
200 "..:module_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200201 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200202 "../../api/video:video_rtp_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100203 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100204 "../../common_video",
205 "../../common_video/generic_frame_descriptor",
Mirko Bonadei66e76792019-04-02 11:33:59 +0200206 "../../rtc_base/system:rtc_export",
Yves Gerey3e707812018-11-28 16:47:49 +0100207 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100208 ]
209}
210
charujaincb728ea2017-09-18 03:08:08 -0700211rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200212 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700213 sources = [
214 "codecs/h264/include/h264_globals.h",
215 "codecs/interface/common_constants.h",
216 "codecs/vp8/include/vp8_globals.h",
217 "codecs/vp9/include/vp9_globals.h",
218 ]
philipel1a4746a2018-07-09 15:52:29 +0200219
220 deps = [
221 "../../rtc_base:checks",
222 ]
charujaincb728ea2017-09-18 03:08:08 -0700223}
224
225rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000226 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700227 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100228 "utility/decoded_frames_history.cc",
229 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100230 "utility/default_video_bitrate_allocator.cc",
231 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000232 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100233 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200234 "utility/framerate_controller.cc",
235 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700236 "utility/ivf_file_writer.cc",
237 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000238 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100239 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200240 "utility/simulcast_rate_allocator.cc",
241 "utility/simulcast_rate_allocator.h",
242 "utility/simulcast_utility.cc",
243 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700244 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100245 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700246 "utility/vp9_uncompressed_header_parser.cc",
247 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000248 ]
249
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200250 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100251 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700252 "..:module_api",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100253 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200254 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100255 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700256 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700257 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700258 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100259 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100260 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700261 "../../rtc_base:rtc_base_approved",
262 "../../rtc_base:rtc_numerics",
263 "../../rtc_base:rtc_task_queue",
Å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",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200267 "../../rtc_base/synchronization:sequence_checker",
Niels Möllera12c42a2018-07-25 16:05:48 +0200268 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100269 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100270 "../../rtc_base/task_utils:repeating_task",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200271 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100272 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200273 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200274 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000275}
276
kjellanderb62dbbe2016-09-23 00:38:52 -0700277rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000278 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700279 sources = [
280 "codecs/h264/h264.cc",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200281 "codecs/h264/h264_color_space.cc",
282 "codecs/h264/h264_color_space.h",
283 "codecs/h264/h264_decoder_impl.cc",
284 "codecs/h264/h264_decoder_impl.h",
285 "codecs/h264/h264_encoder_impl.cc",
286 "codecs/h264/h264_encoder_impl.h",
Zeke Chin71f6f442015-06-29 14:34:58 -0700287 "codecs/h264/include/h264.h",
288 ]
289
hbosbab934b2016-01-27 01:36:03 -0800290 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700291 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100292 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800293 ":video_coding_utility",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700294 "../../api/video:video_frame",
Johannes Kron042559f2019-04-25 11:51:55 +0200295 "../../api/video:video_frame_i010",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200296 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200297 "../../api/video:video_rtp_headers",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200298 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei815b1a62019-05-24 12:17:59 +0200299 "../../common_video",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100300 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800301 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100302 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100303 "../../rtc_base:checks",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200304 "../../rtc_base/system:rtc_export",
Johannes Kron042559f2019-04-25 11:51:55 +0200305 "../../system_wrappers:field_trial",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200306 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200307 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200308 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100309 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200310 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700311 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800312
hbos902c03e2016-01-21 03:34:40 -0800313 if (rtc_use_h264) {
hbosa9a1d2a2016-01-11 10:19:02 -0800314 deps += [
Artem Titov94b57c02019-03-21 13:35:10 +0100315 "//third_party/ffmpeg",
hbosa9a1d2a2016-01-11 10:19:02 -0800316 "//third_party/openh264:encoder",
317 ]
Dan Minor9c686132018-01-15 10:20:00 -0500318 if (!build_with_mozilla) {
319 deps += [ "../../media:rtc_media_base" ]
320 }
hbosa9a1d2a2016-01-11 10:19:02 -0800321 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700322}
323
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800324rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700325 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700326 "codecs/multiplex/augmented_video_frame_buffer.cc",
327 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800328 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800329 "codecs/multiplex/include/multiplex_encoder_adapter.h",
330 "codecs/multiplex/multiplex_decoder_adapter.cc",
331 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700332 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800333 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700334 ]
335
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700336 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100337 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700338 ":video_coding_utility",
339 "..:module_api",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200340 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100341 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200342 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200343 "../../api/video:video_frame",
344 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200345 "../../api/video:video_rtp_headers",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700346 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100347 "../../common_video",
348 "../../rtc_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100349 "../../rtc_base:checks",
Qiang Chena7c7a192018-01-24 13:36:41 -0800350 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700351 ]
352}
353
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200354# This target includes the internal SW codec.
355rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000356 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200357 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000358 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000359 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200360 "codecs/vp8/libvpx_interface.cc",
361 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200362 "codecs/vp8/libvpx_vp8_decoder.cc",
363 "codecs/vp8/libvpx_vp8_decoder.h",
364 "codecs/vp8/libvpx_vp8_encoder.cc",
365 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100366 ]
367
Anders Carlssondd8c1652018-01-30 10:32:13 +0100368 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200369 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100370 ":video_codec_interface",
371 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200372 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100373 "..:module_api",
374 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200375 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100376 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200377 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200378 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100379 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200380 "../../api/video:video_rtp_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100381 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100382 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100383 "../../common_video",
384 "../../rtc_base:checks",
385 "../../rtc_base:rtc_base_approved",
386 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100387 "../../rtc_base/experiments:cpu_speed_experiment",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800388 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100389 "../../rtc_base/experiments:rate_control_settings",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200390 "../../system_wrappers:field_trial",
391 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200392 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200393 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100394 "//third_party/libyuv",
395 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000396 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200397 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000398 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000399}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000400
Erik Språng4529fbc2018-10-12 10:30:31 +0200401rtc_static_library("webrtc_vp8_temporal_layers") {
402 visibility = [ "*" ]
403 sources = [
404 "codecs/vp8/default_temporal_layers.cc",
405 "codecs/vp8/default_temporal_layers.h",
406 "codecs/vp8/include/temporal_layers_checker.h",
407 "codecs/vp8/screenshare_layers.cc",
408 "codecs/vp8/screenshare_layers.h",
409 "codecs/vp8/temporal_layers.h",
410 "codecs/vp8/temporal_layers_checker.cc",
411 ]
412
Erik Språng4529fbc2018-10-12 10:30:31 +0200413 deps = [
414 ":codec_globals_headers",
415 ":video_codec_interface",
416 ":video_coding_utility",
417 "..:module_api",
418 "../..:webrtc_common",
419 "../../api/video_codecs:video_codecs_api",
420 "../../rtc_base:checks",
421 "../../rtc_base:rtc_base_approved",
422 "../../rtc_base:rtc_numerics",
Erik Språng4529fbc2018-10-12 10:30:31 +0200423 "../../system_wrappers:field_trial",
424 "../../system_wrappers:metrics",
425 "//third_party/abseil-cpp/absl/memory",
426 "//third_party/abseil-cpp/absl/types:optional",
427 ]
428}
429
Sergey Silkin86684962018-03-28 19:32:37 +0200430# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
431rtc_static_library("webrtc_vp9_helpers") {
432 sources = [
433 "codecs/vp9/svc_config.cc",
434 "codecs/vp9/svc_config.h",
435 "codecs/vp9/svc_rate_allocator.cc",
436 "codecs/vp9/svc_rate_allocator.h",
437 ]
438
Sergey Silkin86684962018-03-28 19:32:37 +0200439 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100440 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200441 ":video_codec_interface",
442 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100443 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700444 "../../api/video:video_bitrate_allocator",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200445 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200446 "../../common_video",
447 "../../rtc_base:checks",
448 ]
449}
450
kjellanderb62dbbe2016-09-23 00:38:52 -0700451rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000452 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200453 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100454 sources = [
455 "codecs/vp9/include/vp9.h",
456 "codecs/vp9/vp9.cc",
457 "codecs/vp9/vp9_frame_buffer_pool.cc",
458 "codecs/vp9/vp9_frame_buffer_pool.h",
459 "codecs/vp9/vp9_impl.cc",
460 "codecs/vp9/vp9_impl.h",
461 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000462
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000463 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100464 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000465 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200466 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700467 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200468 "../..:webrtc_common",
Elad Alon8f01c4e2019-06-28 15:19:43 +0200469 "../../api:fec_controller_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100470 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700471 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700472 "../../api/video:video_frame_i010",
Chen Xing5d24b162019-06-10 12:59:38 +0200473 "../../api/video:video_rtp_headers",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700474 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000475 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700476 "../../media:rtc_media_base",
477 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100478 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100479 "../../rtc_base:checks",
Erik Språng4b4266f2019-01-23 12:48:13 +0100480 "../../rtc_base/experiments:rate_control_settings",
Sergey Silkin390f3582018-10-01 17:13:50 +0200481 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200482 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200483 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000484 ]
485 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200486 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000487 }
488}
kjellanderfb114242016-06-13 00:19:48 -0700489
490if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100491 if (is_android) {
492 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700493 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100494 "codecs/test/android_codec_factory_helper.cc",
495 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700496 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100497
498 deps = [
499 "../../api/video_codecs:video_codecs_api",
500 "../../rtc_base:checks",
501 "../../rtc_base:rtc_base_approved",
502 "../../sdk/android:native_api_base",
503 "../../sdk/android:native_api_codecs",
504 "../../sdk/android:native_api_jni",
505 "//base",
506 ]
507 }
508 }
509
510 if (is_ios || is_mac) {
511 rtc_static_library("objc_codec_factory_helper") {
512 sources = [
513 "codecs/test/objc_codec_factory_helper.h",
514 "codecs/test/objc_codec_factory_helper.mm",
515 ]
516
magjed73c0eb52017-08-07 06:55:28 -0700517 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200518 "../../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200519 "../../api/video:video_rtp_headers",
magjed73c0eb52017-08-07 06:55:28 -0700520 "../../api/video_codecs:video_codecs_api",
521 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100522 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700523 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100524 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100525 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100526 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100527 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100528 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700529 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700530 ]
magjed73c0eb52017-08-07 06:55:28 -0700531 }
532 }
533
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200534 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700535 testonly = true
536 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200537 "utility/simulcast_test_fixture_impl.cc",
538 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700539 ]
540
magjed6cc25612017-07-10 03:26:36 -0700541 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100542 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700543 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200544 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200545 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200546 "../../api:mock_video_decoder",
547 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200548 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200549 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200550 "../../api/video:video_frame",
551 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200552 "../../api/video:video_rtp_headers",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200553 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100554 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100555 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700556 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700557 "../../test:test_support",
Artem Titov533a9fe2019-03-21 12:18:05 +0100558 "//third_party/abseil-cpp/absl/memory",
magjed6cc25612017-07-10 03:26:36 -0700559 ]
560 }
561
ehmaldonado38a21322016-09-02 04:10:34 -0700562 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700563 testonly = true
564 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100565 "codecs/test/video_codec_unittest.cc",
566 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700567 "codecs/test/videoprocessor.cc",
568 "codecs/test/videoprocessor.h",
569 ]
570
kjellanderfb114242016-06-13 00:19:48 -0700571 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100572 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100573 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800574 ":video_coding",
575 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100576 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200577 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100578 "..:module_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100579 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200580 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000581 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800582 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100583 "../../api/video:encoded_image",
584 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700585 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100586 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200587 "../../api/video:video_frame",
588 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200589 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700590 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100591 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100592 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700593 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700594 "../../rtc_base:rtc_task_queue",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200595 "../../rtc_base/synchronization:sequence_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000596 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700597 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800598 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800599 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100600 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100601 "//third_party/abseil-cpp/absl/memory",
602 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100603 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700604 ]
605 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800606
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200607 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200608 if (is_android) {
609 video_coding_modules_tests_resources += [
610 "../../resources/foreman_128x96.yuv",
611 "../../resources/foreman_160x120.yuv",
612 "../../resources/foreman_176x144.yuv",
613 "../../resources/foreman_240x136.yuv",
614 "../../resources/foreman_320x240.yuv",
615 "../../resources/foreman_480x272.yuv",
616 ]
617 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200618 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100619 video_coding_modules_tests_resources += [
620 "../../resources/FourPeople_1280x720_30.yuv",
621 "../../resources/ConferenceMotion_1280_720_50.yuv",
622 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100623 }
624
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200625 num_video_coding_modules_tests_resources = 0
626 foreach(i, video_coding_modules_tests_resources) {
627 num_video_coding_modules_tests_resources += 1
628 }
629
630 if (num_video_coding_modules_tests_resources > 0) {
631 if (is_ios || is_mac) {
632 bundle_data("video_coding_modules_tests_resources_bundle_data") {
633 testonly = true
634 sources = video_coding_modules_tests_resources
635 outputs = [
636 "{{bundle_resources_dir}}/{{source_file_part}}",
637 ]
638 }
brandtr12a47f62017-09-01 00:10:27 -0700639 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800640 }
641
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200642 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800643 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800644 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200645 "codecs/test/videocodec_test_fixture_impl.cc",
646 "codecs/test/videocodec_test_fixture_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800647 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800648 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100649 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100650 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800651 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700652 ":video_coding_utility",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100653 ":videocodec_test_stats_impl",
Sergey Silkin86684962018-03-28 19:32:37 +0200654 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700655 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100656 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200657 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200658 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100659 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100660 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200661 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700662 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200663 "../../media:rtc_audio_video",
664 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100665 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200666 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100667 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200668 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200669 "../../rtc_base:rtc_base_tests_utils",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100670 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700671 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100672 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100673 "../../test:perf_test",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800674 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200675 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700676 "../../test:video_test_support",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200677 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100678 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200679 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200680 }
681
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100682 rtc_source_set("videocodec_test_stats_impl") {
683 testonly = true
684 sources = [
685 "codecs/test/videocodec_test_stats_impl.cc",
686 "codecs/test/videocodec_test_stats_impl.h",
687 ]
688 deps = [
689 "../../api:videocodec_test_fixture_api",
690 "../../rtc_base:checks",
Yves Gerey79e9f4b2019-04-13 18:59:53 +0200691 "../../rtc_base:rtc_numerics",
Rasmus Brandt315de592019-04-15 13:27:00 +0200692 "../../rtc_base:stringutils",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100693 "../../test:test_common",
694 "../rtp_rtcp:rtp_rtcp_format",
695 ]
696 }
697
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200698 rtc_source_set("video_coding_modules_tests") {
699 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100700 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200701
702 sources = [
703 "codecs/h264/test/h264_impl_unittest.cc",
704 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
705 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
706 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200707 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200708 "codecs/vp8/test/vp8_impl_unittest.cc",
709 "codecs/vp9/test/vp9_impl_unittest.cc",
710 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200711 if (rtc_use_h264) {
712 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
713 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200714
715 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100716 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200717 ":video_codecs_test_framework",
718 ":video_coding_utility",
719 ":videocodec_test_impl",
720 ":webrtc_h264",
721 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200722 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200723 ":webrtc_vp9",
724 ":webrtc_vp9_helpers",
725 "../..:webrtc_common",
726 "../../api:create_videocodec_test_fixture_api",
727 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200728 "../../api:mock_video_decoder",
729 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100730 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200731 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200732 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100733 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700734 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200735 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200736 "../../api/video:video_rtp_headers",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200737 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200738 "../../api/video_codecs:video_codecs_api",
739 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100740 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200741 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200742 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200743 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700744 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700745 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100746 "../../rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200747 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200748 "../../test:fileutils",
749 "../../test:test_support",
750 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200751 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200752 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200753 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700754 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800755 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800756
brandtrdf232992017-09-07 07:50:06 -0700757 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800758
759 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200760 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000761
Rasmus Brandtf1053252018-02-05 09:52:31 +0100762 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800763 }
764
765 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200766 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200767
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200768 deps += [ ":objc_codec_factory_helper" ]
769
770 if (num_video_coding_modules_tests_resources > 0) {
771 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
772 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800773 }
774
Erik Språngdcc02382018-10-10 14:58:46 +0200775 if (rtc_build_libvpx) {
776 deps += [ rtc_libvpx_dir ]
777 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800778 }
779
ehmaldonado36268652017-01-19 08:27:11 -0800780 rtc_source_set("video_coding_unittests") {
781 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700782
ehmaldonado36268652017-01-19 08:27:11 -0800783 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200784 "codecs/test/videocodec_test_fixture_config_unittest.cc",
785 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800786 "codecs/test/videoprocessor_unittest.cc",
787 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200788 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800789 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200790 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200791 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800792 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100793 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800794 "frame_buffer2_unittest.cc",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200795 "generic_decoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800796 "h264_sprop_parameter_sets_unittest.cc",
797 "h264_sps_pps_tracker_unittest.cc",
798 "histogram_unittest.cc",
799 "include/mock/mock_vcm_callbacks.h",
800 "jitter_buffer_unittest.cc",
801 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100802 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800803 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800804 "receiver_unittest.cc",
805 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800806 "session_info_unittest.cc",
807 "test/stream_generator.cc",
808 "test/stream_generator.h",
809 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100810 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800811 "utility/default_video_bitrate_allocator_unittest.cc",
812 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200813 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800814 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800815 "utility/quality_scaler_unittest.cc",
816 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800817 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800818 "video_packet_buffer_unittest.cc",
819 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800820 ]
ehmaldonado36268652017-01-19 08:27:11 -0800821 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200822 sources += [
823 "codecs/h264/h264_encoder_impl_unittest.cc",
824 "codecs/h264/h264_simulcast_unittest.cc",
825 ]
ehmaldonado36268652017-01-19 08:27:11 -0800826 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200827
ehmaldonado36268652017-01-19 08:27:11 -0800828 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200829 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100830 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200831 ":nack_module",
832 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200833 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100834 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800835 ":video_codecs_test_framework",
836 ":video_coding",
837 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200838 ":videocodec_test_impl",
Rasmus Brandt7d72d0f2019-03-26 16:56:14 +0100839 ":videocodec_test_stats_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800840 ":webrtc_h264",
841 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200842 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800843 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200844 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700845 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100846 "..:module_fec_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100847 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200848 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100849 "../../api:fec_controller_api",
Erik Språngc84cd952018-10-15 11:55:13 +0200850 "../../api:mock_video_decoder",
851 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100852 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200853 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200854 "../../api:videocodec_test_fixture_api",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200855 "../../api/task_queue:default_task_queue_factory",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200856 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800857 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100858 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700859 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800860 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200861 "../../api/video:video_frame",
862 "../../api/video:video_frame_i420",
Chen Xing5d24b162019-06-10 12:59:38 +0200863 "../../api/video:video_rtp_headers",
ilnikd60d06a2017-04-05 03:02:20 -0700864 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100865 "../../api/video_codecs:vp8_temporal_layers_factory",
Artem Titov94b57c02019-03-21 13:35:10 +0100866 "../../common_video",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200867 "../../common_video/test:utilities",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200868 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100869 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100870 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700871 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200872 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200873 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700874 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100875 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100876 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100877 "../../system_wrappers",
Niels Möllere8fd57c2019-03-28 15:10:17 +0100878 "../../system_wrappers:event_wrapper",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200879 "../../system_wrappers:field_trial",
880 "../../system_wrappers:metrics",
Ilya Nikolaevskiy2ebf5232019-05-13 16:13:36 +0200881 "../../test:fake_video_codecs",
ehmaldonado36268652017-01-19 08:27:11 -0800882 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100883 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200884 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800885 "../../test:test_support",
886 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800887 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100888 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100889 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200890 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100891 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100892 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800893 ]
894 if (rtc_build_libvpx) {
895 deps += [ rtc_libvpx_dir ]
896 }
ehmaldonado36268652017-01-19 08:27:11 -0800897 }
kjellanderfb114242016-06-13 00:19:48 -0700898}