blob: dfe183b459205b897923bcbc52e335df21687584 [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",
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",
Niels Möller8f7ce222019-03-21 15:43:58 +010067 "../../api/video:video_frame_type",
philipel2837edc2018-10-02 13:55:47 +020068 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +010069 "../rtp_rtcp:rtp_video_header",
70 "//third_party/abseil-cpp/absl/types:optional",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020071 ]
72}
73
kjellanderb62dbbe2016-09-23 00:38:52 -070074rtc_static_library("video_coding") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000075 visibility = [ "*" ]
Mirko Bonadei17f48782018-09-28 08:51:10 +020076 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +010077 "..:module_fec_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010078 "../../api:scoped_refptr",
Yves Gerey3e707812018-11-28 16:47:49 +010079 "../../api/video:encoded_image",
80 "../../api/video:video_bitrate_allocation",
81 "../../api/video:video_bitrate_allocator_factory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020082 "../../system_wrappers:field_trial",
83 "../../system_wrappers:metrics",
Yves Gerey3e707812018-11-28 16:47:49 +010084 "../rtp_rtcp:rtp_video_header",
85 "//third_party/abseil-cpp/absl/memory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020086 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010087
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000088 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010089 "codec_timer.cc",
90 "codec_timer.h",
Niels Möllerf9063782018-02-20 16:09:48 +010091 "decoder_database.cc",
92 "decoder_database.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010093 "decoding_state.cc",
94 "decoding_state.h",
Ying Wang3b790f32018-01-19 17:58:57 +010095 "fec_controller_default.cc",
96 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -080097 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010098 "frame_buffer.cc",
99 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +0200100 "frame_buffer2.cc",
101 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -0700102 "frame_object.cc",
103 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000104 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100105 "generic_decoder.h",
johanb0a11112016-12-08 03:57:17 -0800106 "h264_sprop_parameter_sets.cc",
107 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700108 "h264_sps_pps_tracker.cc",
109 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100110 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100111 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100112 "inter_frame_delay.cc",
113 "inter_frame_delay.h",
114 "internal_defines.h",
115 "jitter_buffer.cc",
116 "jitter_buffer.h",
117 "jitter_buffer_common.h",
118 "jitter_estimator.cc",
119 "jitter_estimator.h",
Elad Alon10874b22019-02-21 16:25:40 +0100120 "loss_notification_controller.cc",
121 "loss_notification_controller.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100122 "media_opt_util.cc",
123 "media_opt_util.h",
philipelc707ab72016-04-01 02:01:54 -0700124 "packet_buffer.cc",
125 "packet_buffer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100126 "receiver.cc",
127 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -0700128 "rtp_frame_reference_finder.cc",
129 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100130 "rtt_filter.cc",
131 "rtt_filter.h",
132 "session_info.cc",
133 "session_info.h",
134 "timestamp_map.cc",
135 "timestamp_map.h",
136 "timing.cc",
137 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100138 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100139 "video_coding_impl.cc",
140 "video_coding_impl.h",
141 "video_receiver.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000142 ]
143
Anders Carlssondd8c1652018-01-30 10:32:13 +0100144 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100145 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100146 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200147 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100148 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000149 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200150 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700151 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100152 "..:module_api_public",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000153 "../..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +0100154 "../../api:fec_controller_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100155 "../../api:rtp_headers",
Erik Språngd96b2752018-12-13 11:23:27 +0100156 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800157 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200158 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700159 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200160 "../../api/video:video_frame",
161 "../../api/video:video_frame_i420",
Patrik Höglund99175c62018-01-08 11:05:10 +0100162 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000163 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100164 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100165 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100166 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700167 "../../rtc_base:rtc_base_approved",
168 "../../rtc_base:rtc_numerics",
169 "../../rtc_base:rtc_task_queue",
170 "../../rtc_base:sequenced_task_checker",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100171 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100172 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500173 "../../rtc_base/experiments:rtt_mult_experiment",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100174 "../../rtc_base/system:fallthrough",
Artem Titova76af0c2018-07-23 17:38:12 +0200175 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100176 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000177 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100178 "../rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +0100179 "../utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100180 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200181 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200182 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000183 ]
184}
185
Patrik Höglund99175c62018-01-08 11:05:10 +0100186rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100187 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100188 sources = [
philipel9df33532019-03-04 16:37:50 +0100189 "include/video_codec_interface.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100190 "include/video_codec_interface.h",
191 "include/video_coding_defines.h",
192 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200193 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100194 ]
195 deps = [
196 "..:module_api",
Patrik Höglund99175c62018-01-08 11:05:10 +0100197 "../..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200198 "../../api/video:video_frame",
Patrik Höglund99175c62018-01-08 11:05:10 +0100199 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100200 "../../common_video",
201 "../../common_video/generic_frame_descriptor",
Yves Gerey3e707812018-11-28 16:47:49 +0100202 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100203 ]
204}
205
charujaincb728ea2017-09-18 03:08:08 -0700206rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200207 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700208 sources = [
209 "codecs/h264/include/h264_globals.h",
210 "codecs/interface/common_constants.h",
211 "codecs/vp8/include/vp8_globals.h",
212 "codecs/vp9/include/vp9_globals.h",
213 ]
philipel1a4746a2018-07-09 15:52:29 +0200214
215 deps = [
216 "../../rtc_base:checks",
217 ]
charujaincb728ea2017-09-18 03:08:08 -0700218}
219
220rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000221 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700222 sources = [
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100223 "utility/decoded_frames_history.cc",
224 "utility/decoded_frames_history.h",
Erik Språng08127a92016-11-16 16:41:30 +0100225 "utility/default_video_bitrate_allocator.cc",
226 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000227 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100228 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200229 "utility/framerate_controller.cc",
230 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700231 "utility/ivf_file_writer.cc",
232 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000233 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100234 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200235 "utility/simulcast_rate_allocator.cc",
236 "utility/simulcast_rate_allocator.h",
237 "utility/simulcast_utility.cc",
238 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700239 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100240 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700241 "utility/vp9_uncompressed_header_parser.cc",
242 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000243 ]
244
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200245 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100246 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700247 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800248 "../..:webrtc_common",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100249 "../../api/video:encoded_frame",
Niels Möller4dc66c52018-10-05 14:17:58 +0200250 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100251 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700252 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700253 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700254 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100255 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100256 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700257 "../../rtc_base:rtc_base_approved",
258 "../../rtc_base:rtc_numerics",
259 "../../rtc_base:rtc_task_queue",
260 "../../rtc_base:sequenced_task_checker",
Åsa Perssona945aee2018-04-24 16:53:25 +0200261 "../../rtc_base/experiments:quality_scaling_experiment",
Erik Språng2c58ba12019-01-23 16:53:18 +0100262 "../../rtc_base/experiments:rate_control_settings",
Niels Möllera12c42a2018-07-25 16:05:48 +0200263 "../../rtc_base/system:arch",
Niels Möllerb7edf692019-02-08 16:40:53 +0100264 "../../rtc_base/system:file_wrapper",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100265 "../../rtc_base/task_utils:repeating_task",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200266 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200267 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100268 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200269 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200270 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000271}
272
kjellanderb62dbbe2016-09-23 00:38:52 -0700273rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000274 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700275 sources = [
276 "codecs/h264/h264.cc",
277 "codecs/h264/include/h264.h",
278 ]
279
hbosbab934b2016-01-27 01:36:03 -0800280 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700281 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100282 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800283 ":video_coding_utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100284 "../../:webrtc_common",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700285 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200286 "../../api/video:video_frame_i420",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200287 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100288 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800289 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100290 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100291 "../../rtc_base:checks",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200292 "../../rtc_base/system:rtc_export",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200293 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200294 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200295 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100296 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200297 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700298 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800299
hbos902c03e2016-01-21 03:34:40 -0800300 if (rtc_use_h264) {
Mirko Bonadeiee0a85c2019-01-15 10:47:18 +0100301 assert(!(is_win && !is_clang), "See: bugs.webrtc.org/9213#c13.")
hbosbab934b2016-01-27 01:36:03 -0800302 sources += [
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700303 "codecs/h264/h264_color_space.cc",
304 "codecs/h264/h264_color_space.h",
hbosbab934b2016-01-27 01:36:03 -0800305 "codecs/h264/h264_decoder_impl.cc",
306 "codecs/h264/h264_decoder_impl.h",
307 "codecs/h264/h264_encoder_impl.cc",
308 "codecs/h264/h264_encoder_impl.h",
309 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800310 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800311 "../../common_video",
Artem Titov94b57c02019-03-21 13:35:10 +0100312 "//third_party/ffmpeg",
hbosa9a1d2a2016-01-11 10:19:02 -0800313 "//third_party/openh264:encoder",
314 ]
Oleh Prypin2b82ee72018-01-15 09:44:18 +0100315
Dan Minor9c686132018-01-15 10:20:00 -0500316 if (!build_with_mozilla) {
317 deps += [ "../../media:rtc_media_base" ]
318 }
hbosa9a1d2a2016-01-11 10:19:02 -0800319 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700320}
321
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800322rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700323 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700324 "codecs/multiplex/augmented_video_frame_buffer.cc",
325 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800326 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800327 "codecs/multiplex/include/multiplex_encoder_adapter.h",
328 "codecs/multiplex/multiplex_decoder_adapter.cc",
329 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700330 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800331 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700332 ]
333
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700334 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100335 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700336 ":video_coding_utility",
337 "..:module_api",
338 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100339 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200340 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200341 "../../api/video:video_frame",
342 "../../api/video:video_frame_i420",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700343 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100344 "../../common_video",
345 "../../rtc_base",
Yves Gerey3e707812018-11-28 16:47:49 +0100346 "../../rtc_base:checks",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700347 "../../system_wrappers",
Qiang Chena7c7a192018-01-24 13:36:41 -0800348 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700349 ]
350}
351
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200352# This target includes the internal SW codec.
353rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000354 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200355 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000356 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000357 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200358 "codecs/vp8/libvpx_interface.cc",
359 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200360 "codecs/vp8/libvpx_vp8_decoder.cc",
361 "codecs/vp8/libvpx_vp8_decoder.h",
362 "codecs/vp8/libvpx_vp8_encoder.cc",
363 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100364 ]
365
Anders Carlssondd8c1652018-01-30 10:32:13 +0100366 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200367 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100368 ":video_codec_interface",
369 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200370 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100371 "..:module_api",
372 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100373 "../../api:scoped_refptr",
Niels Möller4dc66c52018-10-05 14:17:58 +0200374 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200375 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100376 "../../api/video:video_frame_i420",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100377 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100378 "../../api/video_codecs:vp8_temporal_layers_factory",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100379 "../../common_video",
380 "../../rtc_base:checks",
381 "../../rtc_base:rtc_base_approved",
382 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100383 "../../rtc_base/experiments:cpu_speed_experiment",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800384 "../../rtc_base/experiments:field_trial_parser",
Erik Språng4b4266f2019-01-23 12:48:13 +0100385 "../../rtc_base/experiments:rate_control_settings",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100386 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200387 "../../system_wrappers:field_trial",
388 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200389 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200390 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100391 "//third_party/libyuv",
392 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000393 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200394 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000395 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000396}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000397
Erik Språng4529fbc2018-10-12 10:30:31 +0200398rtc_static_library("webrtc_vp8_temporal_layers") {
399 visibility = [ "*" ]
400 sources = [
401 "codecs/vp8/default_temporal_layers.cc",
402 "codecs/vp8/default_temporal_layers.h",
403 "codecs/vp8/include/temporal_layers_checker.h",
404 "codecs/vp8/screenshare_layers.cc",
405 "codecs/vp8/screenshare_layers.h",
406 "codecs/vp8/temporal_layers.h",
407 "codecs/vp8/temporal_layers_checker.cc",
408 ]
409
Erik Språng4529fbc2018-10-12 10:30:31 +0200410 deps = [
411 ":codec_globals_headers",
412 ":video_codec_interface",
413 ":video_coding_utility",
414 "..:module_api",
415 "../..:webrtc_common",
416 "../../api/video_codecs:video_codecs_api",
417 "../../rtc_base:checks",
418 "../../rtc_base:rtc_base_approved",
419 "../../rtc_base:rtc_numerics",
420 "../../system_wrappers",
421 "../../system_wrappers:field_trial",
422 "../../system_wrappers:metrics",
423 "//third_party/abseil-cpp/absl/memory",
424 "//third_party/abseil-cpp/absl/types:optional",
425 ]
426}
427
Sergey Silkin86684962018-03-28 19:32:37 +0200428# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
429rtc_static_library("webrtc_vp9_helpers") {
430 sources = [
431 "codecs/vp9/svc_config.cc",
432 "codecs/vp9/svc_config.h",
433 "codecs/vp9/svc_rate_allocator.cc",
434 "codecs/vp9/svc_rate_allocator.h",
435 ]
436
Sergey Silkin86684962018-03-28 19:32:37 +0200437 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100438 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200439 ":video_codec_interface",
440 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100441 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700442 "../../api/video:video_bitrate_allocator",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200443 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200444 "../../common_video",
445 "../../rtc_base:checks",
446 ]
447}
448
kjellanderb62dbbe2016-09-23 00:38:52 -0700449rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000450 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200451 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100452 sources = [
453 "codecs/vp9/include/vp9.h",
454 "codecs/vp9/vp9.cc",
455 "codecs/vp9/vp9_frame_buffer_pool.cc",
456 "codecs/vp9/vp9_frame_buffer_pool.h",
457 "codecs/vp9/vp9_impl.cc",
458 "codecs/vp9/vp9_impl.h",
459 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000460
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000461 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100462 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000463 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200464 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700465 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200466 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100467 "../../api:scoped_refptr",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700468 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700469 "../../api/video:video_frame_i010",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700470 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000471 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700472 "../../media:rtc_media_base",
473 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100474 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100475 "../../rtc_base:checks",
Erik Språng4b4266f2019-01-23 12:48:13 +0100476 "../../rtc_base/experiments:rate_control_settings",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000477 "../../system_wrappers",
Sergey Silkin390f3582018-10-01 17:13:50 +0200478 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200479 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200480 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000481 ]
482 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200483 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000484 }
485}
kjellanderfb114242016-06-13 00:19:48 -0700486
487if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100488 if (is_android) {
489 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700490 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100491 "codecs/test/android_codec_factory_helper.cc",
492 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700493 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100494
495 deps = [
496 "../../api/video_codecs:video_codecs_api",
497 "../../rtc_base:checks",
498 "../../rtc_base:rtc_base_approved",
499 "../../sdk/android:native_api_base",
500 "../../sdk/android:native_api_codecs",
501 "../../sdk/android:native_api_jni",
502 "//base",
503 ]
504 }
505 }
506
507 if (is_ios || is_mac) {
508 rtc_static_library("objc_codec_factory_helper") {
509 sources = [
510 "codecs/test/objc_codec_factory_helper.h",
511 "codecs/test/objc_codec_factory_helper.mm",
512 ]
513
magjed73c0eb52017-08-07 06:55:28 -0700514 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200515 "../../api/video:video_frame",
magjed73c0eb52017-08-07 06:55:28 -0700516 "../../api/video_codecs:video_codecs_api",
517 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100518 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700519 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100520 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100521 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100522 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100523 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100524 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700525 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700526 ]
magjed73c0eb52017-08-07 06:55:28 -0700527 }
528 }
529
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200530 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700531 testonly = true
532 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200533 "utility/simulcast_test_fixture_impl.cc",
534 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700535 ]
536
magjed6cc25612017-07-10 03:26:36 -0700537 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100538 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700539 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200540 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200541 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200542 "../../api:mock_video_decoder",
543 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200544 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200545 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200546 "../../api/video:video_frame",
547 "../../api/video:video_frame_i420",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200548 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100549 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100550 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700551 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700552 "../../test:test_support",
Artem Titov533a9fe2019-03-21 12:18:05 +0100553 "//third_party/abseil-cpp/absl/memory",
magjed6cc25612017-07-10 03:26:36 -0700554 ]
555 }
556
ehmaldonado38a21322016-09-02 04:10:34 -0700557 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700558 testonly = true
559 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100560 "codecs/test/video_codec_unittest.cc",
561 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700562 "codecs/test/videoprocessor.cc",
563 "codecs/test/videoprocessor.h",
564 ]
565
kjellanderfb114242016-06-13 00:19:48 -0700566 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100567 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100568 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800569 ":video_coding",
570 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200571 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100572 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800573 "../..:webrtc_common",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100574 "../../api:scoped_refptr",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200575 "../../api:videocodec_test_fixture_api",
Danil Chapovalovad895282019-03-11 10:28:05 +0000576 "../../api/task_queue",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800577 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100578 "../../api/video:encoded_image",
579 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700580 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100581 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200582 "../../api/video:video_frame",
583 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700584 "../../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100585 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100586 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700587 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700588 "../../rtc_base:rtc_task_queue",
589 "../../rtc_base:sequenced_task_checker",
Danil Chapovalovad895282019-03-11 10:28:05 +0000590 "../../rtc_base/task_utils:to_queued_task",
kjellanderfb114242016-06-13 00:19:48 -0700591 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800592 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800593 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100594 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100595 "//third_party/abseil-cpp/absl/memory",
596 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100597 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700598 ]
599 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800600
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200601 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200602 if (is_android) {
603 video_coding_modules_tests_resources += [
604 "../../resources/foreman_128x96.yuv",
605 "../../resources/foreman_160x120.yuv",
606 "../../resources/foreman_176x144.yuv",
607 "../../resources/foreman_240x136.yuv",
608 "../../resources/foreman_320x240.yuv",
609 "../../resources/foreman_480x272.yuv",
610 ]
611 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200612 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100613 video_coding_modules_tests_resources += [
614 "../../resources/FourPeople_1280x720_30.yuv",
615 "../../resources/ConferenceMotion_1280_720_50.yuv",
616 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100617 }
618
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200619 num_video_coding_modules_tests_resources = 0
620 foreach(i, video_coding_modules_tests_resources) {
621 num_video_coding_modules_tests_resources += 1
622 }
623
624 if (num_video_coding_modules_tests_resources > 0) {
625 if (is_ios || is_mac) {
626 bundle_data("video_coding_modules_tests_resources_bundle_data") {
627 testonly = true
628 sources = video_coding_modules_tests_resources
629 outputs = [
630 "{{bundle_resources_dir}}/{{source_file_part}}",
631 ]
632 }
brandtr12a47f62017-09-01 00:10:27 -0700633 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800634 }
635
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200636 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800637 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800638 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200639 "codecs/test/videocodec_test_fixture_impl.cc",
640 "codecs/test/videocodec_test_fixture_impl.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200641 "codecs/test/videocodec_test_stats_impl.cc",
642 "codecs/test/videocodec_test_stats_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800643 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800644 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100645 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100646 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800647 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700648 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200649 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700650 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100651 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200652 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200653 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100654 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100655 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200656 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700657 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200658 "../../media:rtc_audio_video",
659 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100660 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200661 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100662 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200663 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200664 "../../rtc_base:rtc_base_tests_utils",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200665 "../../rtc_base:rtc_event",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100666 "../../rtc_base:task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700667 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100668 "../../test:fileutils",
Rasmus Brandt6f0aafa2019-03-07 14:27:57 +0100669 "../../test:perf_test",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200670 "../../test:test_common",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800671 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200672 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700673 "../../test:video_test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200674 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200675 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100676 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200677 ]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200678 }
679
680 rtc_source_set("video_coding_modules_tests") {
681 testonly = true
Johannes Kron108f20f2019-02-07 16:42:45 +0100682 defines = []
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200683
684 sources = [
685 "codecs/h264/test/h264_impl_unittest.cc",
686 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
687 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
688 "codecs/test/videocodec_test_libvpx.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200689 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200690 "codecs/vp8/test/vp8_impl_unittest.cc",
691 "codecs/vp9/test/vp9_impl_unittest.cc",
692 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200693 if (rtc_use_h264) {
694 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
695 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200696
697 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100698 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200699 ":video_codecs_test_framework",
700 ":video_coding_utility",
701 ":videocodec_test_impl",
702 ":webrtc_h264",
703 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200704 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200705 ":webrtc_vp9",
706 ":webrtc_vp9_helpers",
707 "../..:webrtc_common",
708 "../../api:create_videocodec_test_fixture_api",
709 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200710 "../../api:mock_video_decoder",
711 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100712 "../../api:scoped_refptr",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200713 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200714 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100715 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700716 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200717 "../../api/video:video_frame_i420",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200718 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200719 "../../api/video_codecs:video_codecs_api",
720 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100721 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200722 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200723 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200724 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700725 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700726 "../../media:rtc_vp9_profile",
Artem Titov94b57c02019-03-21 13:35:10 +0100727 "../../rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200728 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200729 "../../test:fileutils",
730 "../../test:test_support",
731 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200732 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200733 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200734 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700735 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800736 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800737
brandtrdf232992017-09-07 07:50:06 -0700738 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800739
740 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200741 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000742
Rasmus Brandtf1053252018-02-05 09:52:31 +0100743 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800744 }
745
746 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200747 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200748
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200749 deps += [ ":objc_codec_factory_helper" ]
750
751 if (num_video_coding_modules_tests_resources > 0) {
752 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
753 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800754 }
755
Erik Språngdcc02382018-10-10 14:58:46 +0200756 if (rtc_build_libvpx) {
757 deps += [ rtc_libvpx_dir ]
758 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800759 }
760
ehmaldonado36268652017-01-19 08:27:11 -0800761 rtc_source_set("video_coding_unittests") {
762 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700763
ehmaldonado36268652017-01-19 08:27:11 -0800764 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200765 "codecs/test/videocodec_test_fixture_config_unittest.cc",
766 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800767 "codecs/test/videoprocessor_unittest.cc",
768 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200769 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800770 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200771 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200772 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800773 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100774 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800775 "frame_buffer2_unittest.cc",
776 "h264_sprop_parameter_sets_unittest.cc",
777 "h264_sps_pps_tracker_unittest.cc",
778 "histogram_unittest.cc",
779 "include/mock/mock_vcm_callbacks.h",
780 "jitter_buffer_unittest.cc",
781 "jitter_estimator_tests.cc",
Elad Alon10874b22019-02-21 16:25:40 +0100782 "loss_notification_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800783 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800784 "receiver_unittest.cc",
785 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800786 "session_info_unittest.cc",
787 "test/stream_generator.cc",
788 "test/stream_generator.h",
789 "timing_unittest.cc",
Ilya Nikolaevskiy13717842019-01-14 13:24:22 +0100790 "utility/decoded_frames_history_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800791 "utility/default_video_bitrate_allocator_unittest.cc",
792 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200793 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800794 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800795 "utility/quality_scaler_unittest.cc",
796 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800797 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800798 "video_packet_buffer_unittest.cc",
799 "video_receiver_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800800 ]
ehmaldonado36268652017-01-19 08:27:11 -0800801 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200802 sources += [
803 "codecs/h264/h264_encoder_impl_unittest.cc",
804 "codecs/h264/h264_simulcast_unittest.cc",
805 ]
ehmaldonado36268652017-01-19 08:27:11 -0800806 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200807
ehmaldonado36268652017-01-19 08:27:11 -0800808 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200809 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100810 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200811 ":nack_module",
812 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200813 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100814 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800815 ":video_codecs_test_framework",
816 ":video_coding",
817 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200818 ":videocodec_test_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800819 ":webrtc_h264",
820 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200821 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800822 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200823 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700824 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100825 "..:module_fec_api",
ehmaldonado36268652017-01-19 08:27:11 -0800826 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100827 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200828 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100829 "../../api:fec_controller_api",
Erik Språngc84cd952018-10-15 11:55:13 +0200830 "../../api:mock_video_decoder",
831 "../../api:mock_video_encoder",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100832 "../../api:scoped_refptr",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200833 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200834 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200835 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800836 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100837 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700838 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800839 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200840 "../../api/video:video_frame",
841 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700842 "../../api/video_codecs:video_codecs_api",
Elad Aloncde8ab22019-03-20 11:56:20 +0100843 "../../api/video_codecs:vp8_temporal_layers_factory",
Artem Titov94b57c02019-03-21 13:35:10 +0100844 "../../common_video",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200845 "../../media:rtc_media_base",
Artem Titov94b57c02019-03-21 13:35:10 +0100846 "../../rtc_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100847 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700848 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200849 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200850 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700851 "../../rtc_base:rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +0100852 "../../rtc_base:task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100853 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100854 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200855 "../../system_wrappers:field_trial",
856 "../../system_wrappers:metrics",
ehmaldonado36268652017-01-19 08:27:11 -0800857 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100858 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200859 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800860 "../../test:test_support",
861 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800862 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100863 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100864 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200865 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100866 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100867 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800868 ]
869 if (rtc_build_libvpx) {
870 deps += [ rtc_libvpx_dir ]
871 }
ehmaldonado36268652017-01-19 08:27:11 -0800872 }
kjellanderfb114242016-06-13 00:19:48 -0700873}