blob: 6eec2f4a4cfa8aab7ca07f2bda189a874e809960 [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",
26 "../../modules/video_coding:video_coding_utility",
27 "../../rtc_base:checks",
28 "../../rtc_base:rtc_base_approved",
29 "../../rtc_base/experiments:alr_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -050030 "../../rtc_base/experiments:rtt_mult_experiment",
philipeld5a272f2018-02-21 14:30:34 +010031 "../../system_wrappers:system_wrappers",
Danil Chapovalov0040b662018-06-18 10:48:16 +020032 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +010033 "//third_party/abseil-cpp/absl/types:variant",
philipeld5a272f2018-02-21 14:30:34 +010034 ]
35
36 if (!build_with_chromium && is_clang) {
37 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
38 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
39 }
40}
41
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020042rtc_static_library("nack_module") {
43 visibility = [ "*" ]
44 sources = [
45 "histogram.cc",
46 "histogram.h",
47 "nack_module.cc",
48 "nack_module.h",
49 ]
50
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020051 if (!build_with_chromium && is_clang) {
52 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
53 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
54 }
55
56 deps = [
57 ":packet",
58 "..:module_api",
59 "../../rtc_base:checks",
60 "../../rtc_base:rtc_base_approved",
61 "../../rtc_base:rtc_numerics",
62 "../../system_wrappers",
Ying Wang0367d1a2018-11-02 14:51:15 +010063 "../../system_wrappers:field_trial",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020064 "../utility:utility",
65 ]
66}
67
68rtc_static_library("packet") {
69 visibility = [ "*" ]
70 sources = [
71 "packet.cc",
72 "packet.h",
73 ]
74 deps = [
75 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +010076 "../../:webrtc_common",
77 "../../api:libjingle_peerconnection_api",
philipel2837edc2018-10-02 13:55:47 +020078 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +010079 "../rtp_rtcp:rtp_video_header",
80 "//third_party/abseil-cpp/absl/types:optional",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020081 ]
82}
83
kjellanderb62dbbe2016-09-23 00:38:52 -070084rtc_static_library("video_coding") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000085 visibility = [ "*" ]
Mirko Bonadei17f48782018-09-28 08:51:10 +020086 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +010087 "..:module_fec_api",
88 "../../api:libjingle_peerconnection_api",
89 "../../api/video:encoded_image",
90 "../../api/video:video_bitrate_allocation",
91 "../../api/video:video_bitrate_allocator_factory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020092 "../../system_wrappers:field_trial",
93 "../../system_wrappers:metrics",
Yves Gerey3e707812018-11-28 16:47:49 +010094 "../rtp_rtcp:rtp_video_header",
95 "//third_party/abseil-cpp/absl/memory",
Mirko Bonadei17f48782018-09-28 08:51:10 +020096 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010097
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000098 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010099 "codec_timer.cc",
100 "codec_timer.h",
Niels Möllerf9063782018-02-20 16:09:48 +0100101 "decoder_database.cc",
102 "decoder_database.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100103 "decoding_state.cc",
104 "decoding_state.h",
Niels Möllerf9063782018-02-20 16:09:48 +0100105 "encoder_database.cc",
106 "encoder_database.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100107 "fec_controller_default.cc",
108 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -0800109 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100110 "frame_buffer.cc",
111 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +0200112 "frame_buffer2.cc",
113 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -0700114 "frame_object.cc",
115 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000116 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100117 "generic_decoder.h",
118 "generic_encoder.cc",
119 "generic_encoder.h",
johanb0a11112016-12-08 03:57:17 -0800120 "h264_sprop_parameter_sets.cc",
121 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700122 "h264_sps_pps_tracker.cc",
123 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100124 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100125 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100126 "inter_frame_delay.cc",
127 "inter_frame_delay.h",
128 "internal_defines.h",
129 "jitter_buffer.cc",
130 "jitter_buffer.h",
131 "jitter_buffer_common.h",
132 "jitter_estimator.cc",
133 "jitter_estimator.h",
134 "media_opt_util.cc",
135 "media_opt_util.h",
Niels Möller6613f8e2019-01-10 10:30:21 +0100136 "media_optimization.cc",
137 "media_optimization.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100138 "nack_fec_tables.h",
philipelc707ab72016-04-01 02:01:54 -0700139 "packet_buffer.cc",
140 "packet_buffer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100141 "receiver.cc",
142 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -0700143 "rtp_frame_reference_finder.cc",
144 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100145 "rtt_filter.cc",
146 "rtt_filter.h",
147 "session_info.cc",
148 "session_info.h",
149 "timestamp_map.cc",
150 "timestamp_map.h",
151 "timing.cc",
152 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +0100153 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100154 "video_coding_impl.cc",
155 "video_coding_impl.h",
156 "video_receiver.cc",
157 "video_sender.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000158 ]
159
kjellandere40a7ee2016-10-16 23:56:12 -0700160 if (!build_with_chromium && is_clang) {
161 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700162 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000163 }
164
Anders Carlssondd8c1652018-01-30 10:32:13 +0100165 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100166 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100167 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200168 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100169 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000170 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200171 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700172 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100173 "..:module_api_public",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000174 "../..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +0100175 "../../api:fec_controller_api",
Erik Språngd96b2752018-12-13 11:23:27 +0100176 "../../api/units:data_rate",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800177 "../../api/video:builtin_video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200178 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700179 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200180 "../../api/video:video_frame",
181 "../../api/video:video_frame_i420",
Patrik Höglund99175c62018-01-08 11:05:10 +0100182 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000183 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100184 "../../rtc_base:checks",
Niels Möller689983f2018-11-07 16:36:22 +0100185 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700186 "../../rtc_base:rtc_base",
187 "../../rtc_base:rtc_base_approved",
188 "../../rtc_base:rtc_numerics",
189 "../../rtc_base:rtc_task_queue",
190 "../../rtc_base:sequenced_task_checker",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100191 "../../rtc_base/experiments:alr_experiment",
Erik Språngb1e031a2018-11-01 11:20:49 +0100192 "../../rtc_base/experiments:jitter_upper_bound_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500193 "../../rtc_base/experiments:rtt_mult_experiment",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100194 "../../rtc_base/system:fallthrough",
Artem Titova76af0c2018-07-23 17:38:12 +0200195 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100196 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000197 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100198 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36df2d72016-12-08 09:56:16 -0800199 "../utility:utility",
Elad Alon69321dd2019-01-10 15:02:54 +0100200 "//third_party/abseil-cpp/absl/container:inlined_vector",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200201 "//third_party/abseil-cpp/absl/types:optional",
philipel1a4746a2018-07-09 15:52:29 +0200202 "//third_party/abseil-cpp/absl/types:variant",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000203 ]
204}
205
Patrik Höglund99175c62018-01-08 11:05:10 +0100206rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100207 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100208 sources = [
209 "include/video_codec_interface.h",
210 "include/video_coding_defines.h",
211 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200212 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100213 ]
214 deps = [
215 "..:module_api",
Patrik Höglund99175c62018-01-08 11:05:10 +0100216 "../..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200217 "../../api/video:video_frame",
Patrik Höglund99175c62018-01-08 11:05:10 +0100218 "../../api/video_codecs:video_codecs_api",
219 "../../common_video:common_video",
Yves Gerey3e707812018-11-28 16:47:49 +0100220 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund99175c62018-01-08 11:05:10 +0100221 ]
222}
223
charujaincb728ea2017-09-18 03:08:08 -0700224rtc_source_set("mock_headers") {
225 testonly = true
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000226 sources = [
charujaincb728ea2017-09-18 03:08:08 -0700227 "include/mock/mock_video_codec_interface.h",
228 ]
229 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100230 ":video_codec_interface",
charujaincb728ea2017-09-18 03:08:08 -0700231 ":video_coding_utility",
232 "../..:webrtc_common",
233 "../../test:test_support",
234 ]
235}
236
237rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200238 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700239 sources = [
240 "codecs/h264/include/h264_globals.h",
241 "codecs/interface/common_constants.h",
242 "codecs/vp8/include/vp8_globals.h",
243 "codecs/vp9/include/vp9_globals.h",
244 ]
philipel1a4746a2018-07-09 15:52:29 +0200245
246 deps = [
247 "../../rtc_base:checks",
248 ]
charujaincb728ea2017-09-18 03:08:08 -0700249}
250
251rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000252 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700253 sources = [
Erik Språng08127a92016-11-16 16:41:30 +0100254 "utility/default_video_bitrate_allocator.cc",
255 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000256 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100257 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200258 "utility/framerate_controller.cc",
259 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700260 "utility/ivf_file_writer.cc",
261 "utility/ivf_file_writer.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000262 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100263 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200264 "utility/simulcast_rate_allocator.cc",
265 "utility/simulcast_rate_allocator.h",
266 "utility/simulcast_utility.cc",
267 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700268 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100269 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700270 "utility/vp9_uncompressed_header_parser.cc",
271 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000272 ]
273
kjellandere40a7ee2016-10-16 23:56:12 -0700274 if (!build_with_chromium && is_clang) {
275 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700276 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000277 }
278
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200279 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100280 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700281 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800282 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200283 "../../api/video:encoded_image",
Yves Gerey3e707812018-11-28 16:47:49 +0100284 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700285 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700286 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700287 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100288 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100289 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700290 "../../rtc_base:rtc_base_approved",
291 "../../rtc_base:rtc_numerics",
292 "../../rtc_base:rtc_task_queue",
293 "../../rtc_base:sequenced_task_checker",
Åsa Perssona945aee2018-04-24 16:53:25 +0200294 "../../rtc_base/experiments:quality_scaling_experiment",
Niels Möllera12c42a2018-07-25 16:05:48 +0200295 "../../rtc_base/system:arch",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200296 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200297 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100298 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200299 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200300 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000301}
302
kjellanderb62dbbe2016-09-23 00:38:52 -0700303rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000304 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700305 sources = [
306 "codecs/h264/h264.cc",
307 "codecs/h264/include/h264.h",
308 ]
309
kjellandere40a7ee2016-10-16 23:56:12 -0700310 if (!build_with_chromium && is_clang) {
311 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700312 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700313 }
314
hbosbab934b2016-01-27 01:36:03 -0800315 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700316 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100317 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800318 ":video_coding_utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100319 "../../:webrtc_common",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700320 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200321 "../../api/video:video_frame_i420",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200322 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100323 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800324 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100325 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100326 "../../rtc_base:rtc_base",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200327 "../../rtc_base/system:rtc_export",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200328 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200329 "//third_party/abseil-cpp/absl/memory",
Niels Möller039743e2018-10-23 10:07:25 +0200330 "//third_party/abseil-cpp/absl/strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100331 "//third_party/abseil-cpp/absl/types:optional",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200332 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700333 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800334
hbos902c03e2016-01-21 03:34:40 -0800335 if (rtc_use_h264) {
hbos9dc59282016-02-03 05:09:37 -0800336 defines += [ "WEBRTC_USE_H264" ]
hbosbab934b2016-01-27 01:36:03 -0800337 sources += [
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700338 "codecs/h264/h264_color_space.cc",
339 "codecs/h264/h264_color_space.h",
hbosbab934b2016-01-27 01:36:03 -0800340 "codecs/h264/h264_decoder_impl.cc",
341 "codecs/h264/h264_decoder_impl.h",
342 "codecs/h264/h264_encoder_impl.cc",
343 "codecs/h264/h264_encoder_impl.h",
344 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800345 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800346 "../../common_video",
hbosa9a1d2a2016-01-11 10:19:02 -0800347 "//third_party/ffmpeg:ffmpeg",
348 "//third_party/openh264:encoder",
349 ]
Oleh Prypin2b82ee72018-01-15 09:44:18 +0100350
Dan Minor9c686132018-01-15 10:20:00 -0500351 if (!build_with_mozilla) {
352 deps += [ "../../media:rtc_media_base" ]
353 }
hbosa9a1d2a2016-01-11 10:19:02 -0800354 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700355}
356
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800357rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700358 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700359 "codecs/multiplex/augmented_video_frame_buffer.cc",
360 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800361 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800362 "codecs/multiplex/include/multiplex_encoder_adapter.h",
363 "codecs/multiplex/multiplex_decoder_adapter.cc",
364 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700365 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800366 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700367 ]
368
369 if (!build_with_chromium && is_clang) {
370 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
371 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
372 }
373
374 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100375 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700376 ":video_coding_utility",
377 "..:module_api",
378 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200379 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200380 "../../api/video:video_frame",
381 "../../api/video:video_frame_i420",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700382 "../../api/video_codecs:video_codecs_api",
383 "../../common_video:common_video",
Yves Gerey3e707812018-11-28 16:47:49 +0100384 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100385 "../../rtc_base:rtc_base",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700386 "../../system_wrappers",
Qiang Chena7c7a192018-01-24 13:36:41 -0800387 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700388 ]
389}
390
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200391# This target includes the internal SW codec.
392rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000393 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200394 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000395 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000396 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200397 "codecs/vp8/libvpx_interface.cc",
398 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200399 "codecs/vp8/libvpx_vp8_decoder.cc",
400 "codecs/vp8/libvpx_vp8_decoder.h",
401 "codecs/vp8/libvpx_vp8_encoder.cc",
402 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100403 ]
404
Anders Carlssondd8c1652018-01-30 10:32:13 +0100405 if (!build_with_chromium && is_clang) {
406 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
407 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
408 }
409
410 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200411 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100412 ":video_codec_interface",
413 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200414 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100415 "..:module_api",
416 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200417 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200418 "../../api/video:video_frame",
Yves Gerey3e707812018-11-28 16:47:49 +0100419 "../../api/video:video_frame_i420",
Erik Språng4529fbc2018-10-12 10:30:31 +0200420 "../../api/video_codecs:create_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100421 "../../api/video_codecs:video_codecs_api",
422 "../../common_video",
423 "../../rtc_base:checks",
424 "../../rtc_base:rtc_base_approved",
425 "../../rtc_base:rtc_numerics",
Åsa Perssonf8ba95e2018-11-02 11:38:46 +0100426 "../../rtc_base/experiments:cpu_speed_experiment",
Jiawei Ouaa7bc7e2018-12-11 14:25:25 -0800427 "../../rtc_base/experiments:field_trial_parser",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100428 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200429 "../../system_wrappers:field_trial",
430 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200431 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200432 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100433 "//third_party/libyuv",
434 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000435 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200436 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000437 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000438}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000439
Erik Språng4529fbc2018-10-12 10:30:31 +0200440rtc_static_library("webrtc_vp8_temporal_layers") {
441 visibility = [ "*" ]
442 sources = [
443 "codecs/vp8/default_temporal_layers.cc",
444 "codecs/vp8/default_temporal_layers.h",
445 "codecs/vp8/include/temporal_layers_checker.h",
446 "codecs/vp8/screenshare_layers.cc",
447 "codecs/vp8/screenshare_layers.h",
448 "codecs/vp8/temporal_layers.h",
449 "codecs/vp8/temporal_layers_checker.cc",
450 ]
451
452 if (!build_with_chromium && is_clang) {
453 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
454 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
455 }
456
457 deps = [
458 ":codec_globals_headers",
459 ":video_codec_interface",
460 ":video_coding_utility",
461 "..:module_api",
462 "../..:webrtc_common",
463 "../../api/video_codecs:video_codecs_api",
464 "../../rtc_base:checks",
465 "../../rtc_base:rtc_base_approved",
466 "../../rtc_base:rtc_numerics",
467 "../../system_wrappers",
468 "../../system_wrappers:field_trial",
469 "../../system_wrappers:metrics",
470 "//third_party/abseil-cpp/absl/memory",
471 "//third_party/abseil-cpp/absl/types:optional",
472 ]
473}
474
Sergey Silkin86684962018-03-28 19:32:37 +0200475# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
476rtc_static_library("webrtc_vp9_helpers") {
477 sources = [
478 "codecs/vp9/svc_config.cc",
479 "codecs/vp9/svc_config.h",
480 "codecs/vp9/svc_rate_allocator.cc",
481 "codecs/vp9/svc_rate_allocator.h",
482 ]
483
Sergey Silkin86684962018-03-28 19:32:37 +0200484 if (!build_with_chromium && is_clang) {
485 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
486 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
487 }
488
489 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100490 ":codec_globals_headers",
Sergey Silkin86684962018-03-28 19:32:37 +0200491 ":video_codec_interface",
492 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100493 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700494 "../../api/video:video_bitrate_allocator",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200495 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200496 "../../common_video",
497 "../../rtc_base:checks",
498 ]
499}
500
kjellanderb62dbbe2016-09-23 00:38:52 -0700501rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000502 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200503 poisonous = [ "software_video_codecs" ]
Mirko Bonadei95adedb2018-11-19 09:52:37 +0100504 sources = [
505 "codecs/vp9/include/vp9.h",
506 "codecs/vp9/vp9.cc",
507 "codecs/vp9/vp9_frame_buffer_pool.cc",
508 "codecs/vp9/vp9_frame_buffer_pool.h",
509 "codecs/vp9/vp9_impl.cc",
510 "codecs/vp9/vp9_impl.h",
511 ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000512
kjellandere40a7ee2016-10-16 23:56:12 -0700513 if (!build_with_chromium && is_clang) {
514 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700515 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000516 }
517
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000518 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100519 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000520 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200521 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700522 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200523 "../..:webrtc_common",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700524 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700525 "../../api/video:video_frame_i010",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700526 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000527 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700528 "../../media:rtc_media_base",
529 "../../media:rtc_vp9_profile",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100530 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100531 "../../rtc_base:rtc_base",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000532 "../../system_wrappers",
Sergey Silkin390f3582018-10-01 17:13:50 +0200533 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200534 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200535 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000536 ]
537 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200538 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000539 }
540}
kjellanderfb114242016-06-13 00:19:48 -0700541
542if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100543 if (is_android) {
544 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700545 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100546 "codecs/test/android_codec_factory_helper.cc",
547 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700548 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100549
550 deps = [
551 "../../api/video_codecs:video_codecs_api",
552 "../../rtc_base:checks",
553 "../../rtc_base:rtc_base_approved",
554 "../../sdk/android:native_api_base",
555 "../../sdk/android:native_api_codecs",
556 "../../sdk/android:native_api_jni",
557 "//base",
558 ]
559 }
560 }
561
562 if (is_ios || is_mac) {
563 rtc_static_library("objc_codec_factory_helper") {
564 sources = [
565 "codecs/test/objc_codec_factory_helper.h",
566 "codecs/test/objc_codec_factory_helper.mm",
567 ]
568
magjed73c0eb52017-08-07 06:55:28 -0700569 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200570 "../../api/video:video_frame",
magjed73c0eb52017-08-07 06:55:28 -0700571 "../../api/video_codecs:video_codecs_api",
572 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100573 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700574 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100575 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100576 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100577 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100578 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100579 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700580 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700581 ]
582
583 if (!build_with_chromium && is_clang) {
584 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
585 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
586 }
587 }
588 }
589
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200590 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700591 testonly = true
592 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200593 "utility/simulcast_test_fixture_impl.cc",
594 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700595 ]
596
597 if (!build_with_chromium && is_clang) {
598 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
599 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
600 }
601
602 deps = [
charujaincb728ea2017-09-18 03:08:08 -0700603 ":mock_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100604 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700605 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200606 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200607 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200608 "../../api:mock_video_decoder",
609 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200610 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200611 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200612 "../../api/video:video_frame",
613 "../../api/video:video_frame_i420",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200614 "../../api/video_codecs:video_codecs_api",
magjed6cc25612017-07-10 03:26:36 -0700615 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100616 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700617 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700618 "../../test:test_support",
Artem Titov1ebfb6a2019-01-03 23:49:37 +0100619 "//third_party/abseil-cpp/absl/memory:memory",
magjed6cc25612017-07-10 03:26:36 -0700620 ]
621 }
622
ehmaldonado38a21322016-09-02 04:10:34 -0700623 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700624 testonly = true
625 sources = [
Rasmus Brandt98a867c2018-02-01 15:45:38 +0100626 "codecs/test/video_codec_unittest.cc",
627 "codecs/test/video_codec_unittest.h",
kjellanderfb114242016-06-13 00:19:48 -0700628 "codecs/test/videoprocessor.cc",
629 "codecs/test/videoprocessor.h",
630 ]
631
kjellandere40a7ee2016-10-16 23:56:12 -0700632 if (!build_with_chromium && is_clang) {
633 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700634 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -0700635 }
636
637 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100638 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100639 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800640 ":video_coding",
641 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200642 ":webrtc_vp9_helpers",
Yves Gerey3e707812018-11-28 16:47:49 +0100643 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800644 "../..:webrtc_common",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200645 "../../api:videocodec_test_fixture_api",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800646 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100647 "../../api/video:encoded_image",
648 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700649 "../../api/video:video_bitrate_allocator",
Yves Gerey3e707812018-11-28 16:47:49 +0100650 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200651 "../../api/video:video_frame",
652 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700653 "../../api/video_codecs:video_codecs_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800654 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100655 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700656 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700657 "../../rtc_base:rtc_task_queue",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200658 "../../rtc_base:rtc_task_queue_for_test",
brandtrc8c59052017-08-21 06:44:16 -0700659 "../../rtc_base:sequenced_task_checker",
kjellanderfb114242016-06-13 00:19:48 -0700660 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800661 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800662 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100663 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100664 "//third_party/abseil-cpp/absl/memory",
665 "//third_party/abseil-cpp/absl/types:optional",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100666 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700667 ]
668 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800669
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200670 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200671 if (is_android) {
672 video_coding_modules_tests_resources += [
673 "../../resources/foreman_128x96.yuv",
674 "../../resources/foreman_160x120.yuv",
675 "../../resources/foreman_176x144.yuv",
676 "../../resources/foreman_240x136.yuv",
677 "../../resources/foreman_320x240.yuv",
678 "../../resources/foreman_480x272.yuv",
679 ]
680 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200681 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100682 video_coding_modules_tests_resources += [
683 "../../resources/FourPeople_1280x720_30.yuv",
684 "../../resources/ConferenceMotion_1280_720_50.yuv",
685 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100686 }
687
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200688 num_video_coding_modules_tests_resources = 0
689 foreach(i, video_coding_modules_tests_resources) {
690 num_video_coding_modules_tests_resources += 1
691 }
692
693 if (num_video_coding_modules_tests_resources > 0) {
694 if (is_ios || is_mac) {
695 bundle_data("video_coding_modules_tests_resources_bundle_data") {
696 testonly = true
697 sources = video_coding_modules_tests_resources
698 outputs = [
699 "{{bundle_resources_dir}}/{{source_file_part}}",
700 ]
701 }
brandtr12a47f62017-09-01 00:10:27 -0700702 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800703 }
704
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200705 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800706 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800707 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200708 "codecs/test/videocodec_test_fixture_impl.cc",
709 "codecs/test/videocodec_test_fixture_impl.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200710 "codecs/test/videocodec_test_stats_impl.cc",
711 "codecs/test/videocodec_test_stats_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800712 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800713 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100714 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100715 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800716 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700717 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200718 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700719 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100720 "../../api:array_view",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200721 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200722 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100723 "../../api/video:video_bitrate_allocation",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100724 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200725 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700726 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200727 "../../media:rtc_audio_video",
728 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100729 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200730 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100731 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200732 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200733 "../../rtc_base:rtc_base_tests_utils",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200734 "../../rtc_base:rtc_event",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200735 "../../rtc_base:rtc_task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700736 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100737 "../../test:fileutils",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200738 "../../test:test_common",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800739 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200740 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700741 "../../test:video_test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200742 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200743 "//third_party/abseil-cpp/absl/memory",
Yves Gerey3e707812018-11-28 16:47:49 +0100744 "//third_party/abseil-cpp/absl/types:optional",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200745 ]
746 if (!build_with_chromium && is_clang) {
747 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
748 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
749 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200750 }
751
752 rtc_source_set("video_coding_modules_tests") {
753 testonly = true
754
755 sources = [
756 "codecs/h264/test/h264_impl_unittest.cc",
757 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
758 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
759 "codecs/test/videocodec_test_libvpx.cc",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200760 "codecs/test/videocodec_test_parameterized.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200761 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200762 "codecs/vp8/test/vp8_impl_unittest.cc",
763 "codecs/vp9/test/vp9_impl_unittest.cc",
764 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200765 if (rtc_use_h264) {
766 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
767 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200768
769 deps = [
Erik Språngdcc02382018-10-10 14:58:46 +0200770 ":mock_headers",
Yves Gerey3e707812018-11-28 16:47:49 +0100771 ":video_codec_interface",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200772 ":video_codecs_test_framework",
773 ":video_coding_utility",
774 ":videocodec_test_impl",
775 ":webrtc_h264",
776 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200777 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200778 ":webrtc_vp9",
779 ":webrtc_vp9_helpers",
780 "../..:webrtc_common",
781 "../../api:create_videocodec_test_fixture_api",
782 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200783 "../../api:mock_video_decoder",
784 "../../api:mock_video_encoder",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200785 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200786 "../../api/test/video:function_video_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100787 "../../api/video:encoded_image",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700788 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200789 "../../api/video:video_frame_i420",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200790 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200791 "../../api/video_codecs:video_codecs_api",
792 "../../common_video",
Johannes Kronf1ab9b92018-12-14 10:14:07 +0100793 "../../common_video/test:utilities",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200794 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200795 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200796 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700797 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700798 "../../media:rtc_vp9_profile",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200799 "../../rtc_base:rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200800 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200801 "../../test:fileutils",
802 "../../test:test_support",
803 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200804 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200805 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200806 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700807 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800808 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800809
brandtrdf232992017-09-07 07:50:06 -0700810 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800811
812 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200813 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000814
Rasmus Brandtf1053252018-02-05 09:52:31 +0100815 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800816 }
817
818 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200819 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200820
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200821 deps += [ ":objc_codec_factory_helper" ]
822
823 if (num_video_coding_modules_tests_resources > 0) {
824 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
825 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800826 }
827
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800828 if (!build_with_chromium && is_clang) {
829 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
830 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
831 }
Erik Språngdcc02382018-10-10 14:58:46 +0200832
833 if (rtc_build_libvpx) {
834 deps += [ rtc_libvpx_dir ]
835 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800836 }
837
ehmaldonado36268652017-01-19 08:27:11 -0800838 rtc_source_set("video_coding_unittests") {
839 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700840
ehmaldonado36268652017-01-19 08:27:11 -0800841 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200842 "codecs/test/videocodec_test_fixture_config_unittest.cc",
843 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800844 "codecs/test/videoprocessor_unittest.cc",
845 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200846 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800847 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200848 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200849 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800850 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100851 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800852 "frame_buffer2_unittest.cc",
ilnik04f4d122017-06-19 07:18:55 -0700853 "generic_encoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800854 "h264_sprop_parameter_sets_unittest.cc",
855 "h264_sps_pps_tracker_unittest.cc",
856 "histogram_unittest.cc",
857 "include/mock/mock_vcm_callbacks.h",
858 "jitter_buffer_unittest.cc",
859 "jitter_estimator_tests.cc",
860 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800861 "receiver_unittest.cc",
862 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800863 "session_info_unittest.cc",
864 "test/stream_generator.cc",
865 "test/stream_generator.h",
866 "timing_unittest.cc",
867 "utility/default_video_bitrate_allocator_unittest.cc",
868 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200869 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800870 "utility/ivf_file_writer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800871 "utility/quality_scaler_unittest.cc",
872 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800873 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800874 "video_packet_buffer_unittest.cc",
875 "video_receiver_unittest.cc",
876 "video_sender_unittest.cc",
877 ]
ehmaldonado36268652017-01-19 08:27:11 -0800878 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200879 sources += [
880 "codecs/h264/h264_encoder_impl_unittest.cc",
881 "codecs/h264/h264_simulcast_unittest.cc",
882 ]
ehmaldonado36268652017-01-19 08:27:11 -0800883 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200884
ehmaldonado36268652017-01-19 08:27:11 -0800885 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200886 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100887 ":encoded_frame",
charujaincb728ea2017-09-18 03:08:08 -0700888 ":mock_headers",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200889 ":nack_module",
890 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200891 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100892 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800893 ":video_codecs_test_framework",
894 ":video_coding",
895 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200896 ":videocodec_test_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800897 ":webrtc_h264",
898 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200899 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800900 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200901 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700902 "..:module_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100903 "..:module_fec_api",
ehmaldonado36268652017-01-19 08:27:11 -0800904 "../..:webrtc_common",
Yves Gerey3e707812018-11-28 16:47:49 +0100905 "../../api:array_view",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200906 "../../api:create_simulcast_test_fixture_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100907 "../../api:fec_controller_api",
Erik Språngc84cd952018-10-15 11:55:13 +0200908 "../../api:mock_video_decoder",
909 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200910 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200911 "../../api:videocodec_test_fixture_api",
Danil Chapovalov99b71df2018-10-26 15:57:48 +0200912 "../../api/test/video:function_video_factory",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800913 "../../api/video:builtin_video_bitrate_allocator_factory",
Yves Gerey3e707812018-11-28 16:47:49 +0100914 "../../api/video:video_bitrate_allocation",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700915 "../../api/video:video_bitrate_allocator",
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800916 "../../api/video:video_bitrate_allocator_factory",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200917 "../../api/video:video_frame",
918 "../../api/video:video_frame_i420",
Erik Språng4529fbc2018-10-12 10:30:31 +0200919 "../../api/video_codecs:create_vp8_temporal_layers",
ilnikd60d06a2017-04-05 03:02:20 -0700920 "../../api/video_codecs:video_codecs_api",
ehmaldonado36268652017-01-19 08:27:11 -0800921 "../../common_video:common_video",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200922 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100923 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700924 "../../rtc_base:rtc_base",
925 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200926 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200927 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700928 "../../rtc_base:rtc_task_queue",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200929 "../../rtc_base:rtc_task_queue_for_test",
Erik Språngb1e031a2018-11-01 11:20:49 +0100930 "../../rtc_base/experiments:jitter_upper_bound_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100931 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200932 "../../system_wrappers:field_trial",
933 "../../system_wrappers:metrics",
ehmaldonado36268652017-01-19 08:27:11 -0800934 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100935 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200936 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800937 "../../test:test_support",
938 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800939 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100940 "../rtp_rtcp:rtp_rtcp_format",
Yves Gerey3e707812018-11-28 16:47:49 +0100941 "../rtp_rtcp:rtp_video_header",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200942 "//third_party/abseil-cpp/absl/memory",
Erik Språngb1e031a2018-11-01 11:20:49 +0100943 "//third_party/abseil-cpp/absl/types:optional",
Yves Gerey3e707812018-11-28 16:47:49 +0100944 "//third_party/abseil-cpp/absl/types:variant",
ehmaldonado36268652017-01-19 08:27:11 -0800945 ]
946 if (rtc_build_libvpx) {
947 deps += [ rtc_libvpx_dir ]
948 }
ehmaldonado36268652017-01-19 08:27:11 -0800949 if (!build_with_chromium && is_clang) {
950 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
951 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
952 }
953 }
kjellanderfb114242016-06-13 00:19:48 -0700954}