blob: f09c91f7536b3e49d8fd026b78b760e3a2123e06 [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 = [
18 ":video_codec_interface",
19 "../../:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +020020 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020021 "../../api/video:video_frame_i420",
philipeld5a272f2018-02-21 14:30:34 +010022 "../../modules:module_api",
23 "../../modules:module_api_public",
24 "../../modules/video_coding:video_coding_utility",
25 "../../rtc_base:checks",
26 "../../rtc_base:rtc_base_approved",
27 "../../rtc_base/experiments:alr_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -050028 "../../rtc_base/experiments:rtt_mult_experiment",
philipeld5a272f2018-02-21 14:30:34 +010029 "../../system_wrappers:system_wrappers",
Danil Chapovalov0040b662018-06-18 10:48:16 +020030 "//third_party/abseil-cpp/absl/types:optional",
philipeld5a272f2018-02-21 14:30:34 +010031 ]
32
33 if (!build_with_chromium && is_clang) {
34 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
35 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
36 }
37}
38
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020039rtc_static_library("nack_module") {
40 visibility = [ "*" ]
41 sources = [
42 "histogram.cc",
43 "histogram.h",
44 "nack_module.cc",
45 "nack_module.h",
46 ]
47
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020048 if (!build_with_chromium && is_clang) {
49 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
50 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
51 }
52
53 deps = [
54 ":packet",
55 "..:module_api",
56 "../../rtc_base:checks",
57 "../../rtc_base:rtc_base_approved",
58 "../../rtc_base:rtc_numerics",
59 "../../system_wrappers",
60 "../utility:utility",
61 ]
62}
63
64rtc_static_library("packet") {
65 visibility = [ "*" ]
66 sources = [
67 "packet.cc",
68 "packet.h",
69 ]
70 deps = [
71 "..:module_api",
philipel2837edc2018-10-02 13:55:47 +020072 "../rtp_rtcp:rtp_rtcp_format",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +020073 ]
74}
75
kjellanderb62dbbe2016-09-23 00:38:52 -070076rtc_static_library("video_coding") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000077 visibility = [ "*" ]
Mirko Bonadei17f48782018-09-28 08:51:10 +020078 deps = [
79 "../../system_wrappers:field_trial",
80 "../../system_wrappers:metrics",
81 ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010082
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000083 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010084 "codec_timer.cc",
85 "codec_timer.h",
Niels Möllerf9063782018-02-20 16:09:48 +010086 "decoder_database.cc",
87 "decoder_database.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010088 "decoding_state.cc",
89 "decoding_state.h",
Niels Möllerf9063782018-02-20 16:09:48 +010090 "encoder_database.cc",
91 "encoder_database.h",
Ying Wang3b790f32018-01-19 17:58:57 +010092 "fec_controller_default.cc",
93 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -080094 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010095 "frame_buffer.cc",
96 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +020097 "frame_buffer2.cc",
98 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -070099 "frame_object.cc",
100 "frame_object.h",
Lu Liu352314a2018-02-21 19:38:59 +0000101 "generic_decoder.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100102 "generic_decoder.h",
103 "generic_encoder.cc",
104 "generic_encoder.h",
johanb0a11112016-12-08 03:57:17 -0800105 "h264_sprop_parameter_sets.cc",
106 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -0700107 "h264_sps_pps_tracker.cc",
108 "h264_sps_pps_tracker.h",
Erik Språng08127a92016-11-16 16:41:30 +0100109 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +0100110 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +0100111 "inter_frame_delay.cc",
112 "inter_frame_delay.h",
113 "internal_defines.h",
114 "jitter_buffer.cc",
115 "jitter_buffer.h",
116 "jitter_buffer_common.h",
117 "jitter_estimator.cc",
118 "jitter_estimator.h",
119 "media_opt_util.cc",
120 "media_opt_util.h",
121 "media_optimization.cc",
122 "media_optimization.h",
123 "nack_fec_tables.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",
142 "video_sender.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000143 ]
144
kjellandere40a7ee2016-10-16 23:56:12 -0700145 if (!build_with_chromium && is_clang) {
146 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700147 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000148 }
149
Anders Carlssondd8c1652018-01-30 10:32:13 +0100150 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100151 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100152 ":encoded_frame",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200153 ":packet",
Patrik Höglund99175c62018-01-08 11:05:10 +0100154 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000155 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200156 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700157 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100158 "..:module_api_public",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000159 "../..:webrtc_common",
Ying Wang3b790f32018-01-19 17:58:57 +0100160 "../../api:fec_controller_api",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200161 "../../api/video:encoded_frame",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700162 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200163 "../../api/video:video_frame",
164 "../../api/video:video_frame_i420",
Patrik Höglund99175c62018-01-08 11:05:10 +0100165 "../../api/video_codecs:video_codecs_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000166 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100167 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700168 "../../rtc_base:rtc_base",
169 "../../rtc_base:rtc_base_approved",
170 "../../rtc_base:rtc_numerics",
171 "../../rtc_base:rtc_task_queue",
172 "../../rtc_base:sequenced_task_checker",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100173 "../../rtc_base/experiments:alr_experiment",
“Michaelf9fc1712018-08-27 10:08:58 -0500174 "../../rtc_base/experiments:rtt_mult_experiment",
Karl Wiberg80ba3332018-02-05 10:33:35 +0100175 "../../rtc_base/system:fallthrough",
Artem Titova76af0c2018-07-23 17:38:12 +0200176 "../../rtc_base/third_party/base64",
Karl Wiberg76b7f512018-03-22 15:29:03 +0100177 "../../rtc_base/time:timestamp_extrapolator",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000178 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100179 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36df2d72016-12-08 09:56:16 -0800180 "../utility:utility",
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 = [
189 "include/video_codec_interface.h",
190 "include/video_coding_defines.h",
191 "include/video_error_codes.h",
Niels Möllerbe682d42018-03-27 08:31:45 +0200192 "video_coding_defines.cc",
Patrik Höglund99175c62018-01-08 11:05:10 +0100193 ]
194 deps = [
195 "..:module_api",
Patrik Höglund99175c62018-01-08 11:05:10 +0100196 "../..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200197 "../../api/video:video_frame",
Patrik Höglund99175c62018-01-08 11:05:10 +0100198 "../../api/video_codecs:video_codecs_api",
199 "../../common_video:common_video",
200 ]
201}
202
charujaincb728ea2017-09-18 03:08:08 -0700203rtc_source_set("mock_headers") {
204 testonly = true
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000205 sources = [
charujaincb728ea2017-09-18 03:08:08 -0700206 "include/mock/mock_video_codec_interface.h",
207 ]
208 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100209 ":video_codec_interface",
charujaincb728ea2017-09-18 03:08:08 -0700210 ":video_coding_utility",
211 "../..:webrtc_common",
212 "../../test:test_support",
213 ]
214}
215
216rtc_source_set("codec_globals_headers") {
Danil Chapovalov5c250102018-10-03 14:54:43 +0200217 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700218 sources = [
219 "codecs/h264/include/h264_globals.h",
220 "codecs/interface/common_constants.h",
221 "codecs/vp8/include/vp8_globals.h",
222 "codecs/vp9/include/vp9_globals.h",
223 ]
philipel1a4746a2018-07-09 15:52:29 +0200224
225 deps = [
226 "../../rtc_base:checks",
227 ]
charujaincb728ea2017-09-18 03:08:08 -0700228}
229
230rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000231 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700232 sources = [
Erik Språng08127a92016-11-16 16:41:30 +0100233 "utility/default_video_bitrate_allocator.cc",
234 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000235 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100236 "utility/frame_dropper.h",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200237 "utility/framerate_controller.cc",
238 "utility/framerate_controller.h",
sprang3911c262016-04-15 01:24:14 -0700239 "utility/ivf_file_writer.cc",
240 "utility/ivf_file_writer.h",
kthelgason194f40a2016-09-14 02:14:58 -0700241 "utility/moving_average.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100242 "utility/moving_average.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000243 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100244 "utility/quality_scaler.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200245 "utility/simulcast_rate_allocator.cc",
246 "utility/simulcast_rate_allocator.h",
247 "utility/simulcast_utility.cc",
248 "utility/simulcast_utility.h",
jackychen98d8cf52015-05-21 11:12:02 -0700249 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100250 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700251 "utility/vp9_uncompressed_header_parser.cc",
252 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000253 ]
254
kjellandere40a7ee2016-10-16 23:56:12 -0700255 if (!build_with_chromium && is_clang) {
256 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700257 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000258 }
259
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200260 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100261 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700262 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800263 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200264 "../../api/video:encoded_image",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700265 "../../api/video:video_bitrate_allocator",
ilnikd60d06a2017-04-05 03:02:20 -0700266 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700267 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100268 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100269 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700270 "../../rtc_base:rtc_base_approved",
271 "../../rtc_base:rtc_numerics",
272 "../../rtc_base:rtc_task_queue",
273 "../../rtc_base:sequenced_task_checker",
Åsa Perssona945aee2018-04-24 16:53:25 +0200274 "../../rtc_base/experiments:quality_scaling_experiment",
Niels Möllera12c42a2018-07-25 16:05:48 +0200275 "../../rtc_base/system:arch",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200277 "../../system_wrappers:field_trial",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100278 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200279 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200280 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000281}
282
kjellanderb62dbbe2016-09-23 00:38:52 -0700283rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000284 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700285 sources = [
286 "codecs/h264/h264.cc",
287 "codecs/h264/include/h264.h",
288 ]
289
kjellandere40a7ee2016-10-16 23:56:12 -0700290 if (!build_with_chromium && is_clang) {
291 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700292 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700293 }
294
hbosbab934b2016-01-27 01:36:03 -0800295 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700296 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100297 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800298 ":video_coding_utility",
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700299 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200300 "../../api/video:video_frame_i420",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200301 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100302 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800303 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100304 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100305 "../../rtc_base:rtc_base",
Mirko Bonadei276827c2018-10-16 14:13:50 +0200306 "../../rtc_base/system:rtc_export",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200307 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200308 "//third_party/abseil-cpp/absl/memory",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200309 "//third_party/libyuv",
Zeke Chin71f6f442015-06-29 14:34:58 -0700310 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800311
hbos902c03e2016-01-21 03:34:40 -0800312 if (rtc_use_h264) {
hbos9dc59282016-02-03 05:09:37 -0800313 defines += [ "WEBRTC_USE_H264" ]
hbosbab934b2016-01-27 01:36:03 -0800314 sources += [
Emircan Uysalerd4c16b12018-07-23 17:55:25 -0700315 "codecs/h264/h264_color_space.cc",
316 "codecs/h264/h264_color_space.h",
hbosbab934b2016-01-27 01:36:03 -0800317 "codecs/h264/h264_decoder_impl.cc",
318 "codecs/h264/h264_decoder_impl.h",
319 "codecs/h264/h264_encoder_impl.cc",
320 "codecs/h264/h264_encoder_impl.h",
321 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800322 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800323 "../../common_video",
hbosa9a1d2a2016-01-11 10:19:02 -0800324 "//third_party/ffmpeg:ffmpeg",
325 "//third_party/openh264:encoder",
326 ]
Oleh Prypin2b82ee72018-01-15 09:44:18 +0100327
Dan Minor9c686132018-01-15 10:20:00 -0500328 if (!build_with_mozilla) {
329 deps += [ "../../media:rtc_media_base" ]
330 }
hbosa9a1d2a2016-01-11 10:19:02 -0800331 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700332}
333
kjellanderb62dbbe2016-09-23 00:38:52 -0700334rtc_static_library("webrtc_i420") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000335 visibility = [ "*" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000336 sources = [
Henrik Kjellandera74c08d2015-10-22 12:23:11 +0200337 "codecs/i420/i420.cc",
338 "codecs/i420/include/i420.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000339 ]
340
kjellandere40a7ee2016-10-16 23:56:12 -0700341 if (!build_with_chromium && is_clang) {
342 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700343 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000344 }
345
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200346 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100347 ":video_codec_interface",
charujaincb728ea2017-09-18 03:08:08 -0700348 ":video_coding_utility",
ehmaldonado36df2d72016-12-08 09:56:16 -0800349 "../..:webrtc_common",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200350 "../../api/video:video_frame_i420",
ehmaldonado36df2d72016-12-08 09:56:16 -0800351 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100352 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700353 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "../../system_wrappers",
Mirko Bonadei401d0562017-12-14 11:24:00 +0100355 "//third_party/libyuv",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200356 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000357}
358
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800359rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700360 sources = [
Tarek Hefny77c8e652018-08-15 10:19:32 -0700361 "codecs/multiplex/augmented_video_frame_buffer.cc",
362 "codecs/multiplex/include/augmented_video_frame_buffer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800363 "codecs/multiplex/include/multiplex_decoder_adapter.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800364 "codecs/multiplex/include/multiplex_encoder_adapter.h",
365 "codecs/multiplex/multiplex_decoder_adapter.cc",
366 "codecs/multiplex/multiplex_encoded_image_packer.cc",
Emircan Uysalered425d12018-09-06 15:35:55 -0700367 "codecs/multiplex/multiplex_encoded_image_packer.h",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800368 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700369 ]
370
371 if (!build_with_chromium && is_clang) {
372 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
373 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
374 }
375
376 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100377 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700378 ":video_coding_utility",
379 "..:module_api",
380 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200381 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200382 "../../api/video:video_frame",
383 "../../api/video:video_frame_i420",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700384 "../../api/video_codecs:video_codecs_api",
385 "../../common_video:common_video",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100386 "../../rtc_base:rtc_base",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700387 "../../system_wrappers",
Qiang Chena7c7a192018-01-24 13:36:41 -0800388 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700389 ]
390}
391
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200392# This target includes the internal SW codec.
393rtc_static_library("webrtc_vp8") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000394 visibility = [ "*" ]
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200395 poisonous = [ "software_video_codecs" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000396 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000397 "codecs/vp8/include/vp8.h",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200398 "codecs/vp8/libvpx_interface.cc",
399 "codecs/vp8/libvpx_interface.h",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200400 "codecs/vp8/libvpx_vp8_decoder.cc",
401 "codecs/vp8/libvpx_vp8_decoder.h",
402 "codecs/vp8/libvpx_vp8_encoder.cc",
403 "codecs/vp8/libvpx_vp8_encoder.h",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100404 ]
405
Anders Carlssondd8c1652018-01-30 10:32:13 +0100406 if (!build_with_chromium && is_clang) {
407 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
408 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
409 }
410
411 deps = [
Erik Språng8abd56c2018-10-01 18:47:03 +0200412 ":codec_globals_headers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100413 ":video_codec_interface",
414 ":video_coding_utility",
Erik Språng4529fbc2018-10-12 10:30:31 +0200415 ":webrtc_vp8_temporal_layers",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100416 "..:module_api",
417 "../..:webrtc_common",
Niels Möller4dc66c52018-10-05 14:17:58 +0200418 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200419 "../../api/video:video_frame",
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",
426 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200427 "../../system_wrappers:field_trial",
428 "../../system_wrappers:metrics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200429 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200430 "//third_party/abseil-cpp/absl/types:optional",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100431 "//third_party/libyuv",
432 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000433 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200434 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000435 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000436}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000437
Erik Språng4529fbc2018-10-12 10:30:31 +0200438rtc_static_library("webrtc_vp8_temporal_layers") {
439 visibility = [ "*" ]
440 sources = [
441 "codecs/vp8/default_temporal_layers.cc",
442 "codecs/vp8/default_temporal_layers.h",
443 "codecs/vp8/include/temporal_layers_checker.h",
444 "codecs/vp8/screenshare_layers.cc",
445 "codecs/vp8/screenshare_layers.h",
446 "codecs/vp8/temporal_layers.h",
447 "codecs/vp8/temporal_layers_checker.cc",
448 ]
449
450 if (!build_with_chromium && is_clang) {
451 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
452 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
453 }
454
455 deps = [
456 ":codec_globals_headers",
457 ":video_codec_interface",
458 ":video_coding_utility",
459 "..:module_api",
460 "../..:webrtc_common",
461 "../../api/video_codecs:video_codecs_api",
462 "../../rtc_base:checks",
463 "../../rtc_base:rtc_base_approved",
464 "../../rtc_base:rtc_numerics",
465 "../../system_wrappers",
466 "../../system_wrappers:field_trial",
467 "../../system_wrappers:metrics",
468 "//third_party/abseil-cpp/absl/memory",
469 "//third_party/abseil-cpp/absl/types:optional",
470 ]
471}
472
Sergey Silkin86684962018-03-28 19:32:37 +0200473# This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW.
474rtc_static_library("webrtc_vp9_helpers") {
475 sources = [
476 "codecs/vp9/svc_config.cc",
477 "codecs/vp9/svc_config.h",
478 "codecs/vp9/svc_rate_allocator.cc",
479 "codecs/vp9/svc_rate_allocator.h",
480 ]
481
Sergey Silkin86684962018-03-28 19:32:37 +0200482 if (!build_with_chromium && is_clang) {
483 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
484 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
485 }
486
487 deps = [
488 ":video_codec_interface",
489 "../..:webrtc_common",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700490 "../../api/video:video_bitrate_allocator",
Niels Möllera46bd4b2018-06-08 14:03:44 +0200491 "../../api/video_codecs:video_codecs_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200492 "../../common_video",
493 "../../rtc_base:checks",
494 ]
495}
496
kjellanderb62dbbe2016-09-23 00:38:52 -0700497rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000498 visibility = [ "*" ]
Anders Carlsson1f433e42018-04-24 16:39:05 +0200499 poisonous = [ "software_video_codecs" ]
phoglund33603522016-10-05 06:52:22 -0700500 if (rtc_libvpx_build_vp9) {
501 sources = [
502 "codecs/vp9/include/vp9.h",
phoglund33603522016-10-05 06:52:22 -0700503 "codecs/vp9/vp9_frame_buffer_pool.cc",
504 "codecs/vp9/vp9_frame_buffer_pool.h",
505 "codecs/vp9/vp9_impl.cc",
506 "codecs/vp9/vp9_impl.h",
507 ]
508 } else {
509 sources = [
510 "codecs/vp9/vp9_noop.cc",
511 ]
512 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000513
kjellandere40a7ee2016-10-16 23:56:12 -0700514 if (!build_with_chromium && is_clang) {
515 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700516 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000517 }
518
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000519 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100520 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000521 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200522 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700523 "..:module_api",
Sergey Silkin86684962018-03-28 19:32:37 +0200524 "../..:webrtc_common",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700525 "../../api/video:video_frame",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700526 "../../api/video:video_frame_i010",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700527 "../../api/video_codecs:video_codecs_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000528 "../../common_video",
Emircan Uysaler98badbc2018-06-28 10:59:02 -0700529 "../../media:rtc_media_base",
530 "../../media:rtc_vp9_profile",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100531 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100532 "../../rtc_base:rtc_base",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000533 "../../system_wrappers",
Sergey Silkin390f3582018-10-01 17:13:50 +0200534 "../../system_wrappers:field_trial",
Sergey Silkind902d582018-05-18 17:31:19 +0200535 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200536 "//third_party/abseil-cpp/absl/memory",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000537 ]
538 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200539 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000540 }
541}
kjellanderfb114242016-06-13 00:19:48 -0700542
543if (rtc_include_tests) {
Rasmus Brandtf1053252018-02-05 09:52:31 +0100544 if (is_android) {
545 rtc_static_library("android_codec_factory_helper") {
magjed73c0eb52017-08-07 06:55:28 -0700546 sources = [
Rasmus Brandtf1053252018-02-05 09:52:31 +0100547 "codecs/test/android_codec_factory_helper.cc",
548 "codecs/test/android_codec_factory_helper.h",
magjed73c0eb52017-08-07 06:55:28 -0700549 ]
Rasmus Brandtf1053252018-02-05 09:52:31 +0100550
551 deps = [
552 "../../api/video_codecs:video_codecs_api",
553 "../../rtc_base:checks",
554 "../../rtc_base:rtc_base_approved",
555 "../../sdk/android:native_api_base",
556 "../../sdk/android:native_api_codecs",
557 "../../sdk/android:native_api_jni",
558 "//base",
559 ]
560 }
561 }
562
563 if (is_ios || is_mac) {
564 rtc_static_library("objc_codec_factory_helper") {
565 sources = [
566 "codecs/test/objc_codec_factory_helper.h",
567 "codecs/test/objc_codec_factory_helper.mm",
568 ]
569
magjed73c0eb52017-08-07 06:55:28 -0700570 deps = [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200571 "../../api/video:video_frame",
magjed73c0eb52017-08-07 06:55:28 -0700572 "../../api/video_codecs:video_codecs_api",
573 "../../media:rtc_audio_video",
Rasmus Brandtf1053252018-02-05 09:52:31 +0100574 "../../media:rtc_media_base",
magjed73c0eb52017-08-07 06:55:28 -0700575 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100576 "../../rtc_base:rtc_base_approved",
Anders Carlsson3ff50fb2018-02-01 15:47:05 +0100577 "../../sdk:native_api",
Kári Tristan Helgason99bf77c2018-02-16 10:49:22 +0100578 "../../sdk:peerconnectionfactory_base_objc",
Mirko Bonadei111a0d12018-02-19 09:58:00 +0100579 "../../sdk:videocodec_objc",
Anders Carlsson9823ee42018-03-07 10:32:03 +0100580 "../../sdk:videosource_objc",
kthelgason36d658d2017-08-24 05:43:45 -0700581 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700582 ]
583
584 if (!build_with_chromium && is_clang) {
585 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
586 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
587 }
588 }
589 }
590
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200591 rtc_source_set("simulcast_test_fixture_impl") {
magjed6cc25612017-07-10 03:26:36 -0700592 testonly = true
593 sources = [
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200594 "utility/simulcast_test_fixture_impl.cc",
595 "utility/simulcast_test_fixture_impl.h",
magjed6cc25612017-07-10 03:26:36 -0700596 ]
597
598 if (!build_with_chromium && is_clang) {
599 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
600 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
601 }
602
603 deps = [
charujaincb728ea2017-09-18 03:08:08 -0700604 ":mock_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100605 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700606 ":video_coding",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200607 ":video_coding_utility",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200608 "../../:webrtc_common",
Erik Språngc84cd952018-10-15 11:55:13 +0200609 "../../api:mock_video_decoder",
610 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200611 "../../api:simulcast_test_fixture_api",
Niels Möller4dc66c52018-10-05 14:17:58 +0200612 "../../api/video:encoded_image",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200613 "../../api/video:video_frame",
614 "../../api/video:video_frame_i420",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200615 "../../api/video_codecs:video_codecs_api",
magjed6cc25612017-07-10 03:26:36 -0700616 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100617 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700618 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700619 "../../test:test_support",
620 ]
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 = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100638 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800639 ":video_coding",
640 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200641 ":webrtc_vp9_helpers",
ehmaldonado36df2d72016-12-08 09:56:16 -0800642 "../..:webrtc_common",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200643 "../../api:videocodec_test_fixture_api",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700644 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200645 "../../api/video:video_frame",
646 "../../api/video:video_frame_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700647 "../../api/video_codecs:video_codecs_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800648 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100649 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700650 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700651 "../../rtc_base:rtc_task_queue",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200652 "../../rtc_base:rtc_task_queue_for_test",
brandtrc8c59052017-08-21 06:44:16 -0700653 "../../rtc_base:sequenced_task_checker",
kjellanderfb114242016-06-13 00:19:48 -0700654 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800655 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800656 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100657 "../rtp_rtcp:rtp_rtcp_format",
Sergey Silkin10d9d592018-02-01 13:25:17 +0100658 "//third_party/libyuv",
kjellanderfb114242016-06-13 00:19:48 -0700659 ]
660 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800661
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200662 video_coding_modules_tests_resources = []
Rasmus Brandtcd7da922018-04-25 12:45:16 +0200663 if (is_android) {
664 video_coding_modules_tests_resources += [
665 "../../resources/foreman_128x96.yuv",
666 "../../resources/foreman_160x120.yuv",
667 "../../resources/foreman_176x144.yuv",
668 "../../resources/foreman_240x136.yuv",
669 "../../resources/foreman_320x240.yuv",
670 "../../resources/foreman_480x272.yuv",
671 ]
672 }
Kári Tristan Helgason8eeda492018-05-16 16:46:58 +0200673 if (!is_android) {
Sergey Silkin32858972018-03-09 11:04:15 +0100674 video_coding_modules_tests_resources += [
675 "../../resources/FourPeople_1280x720_30.yuv",
676 "../../resources/ConferenceMotion_1280_720_50.yuv",
677 ]
Sergey Silkin556270c2018-02-27 15:18:18 +0100678 }
679
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200680 num_video_coding_modules_tests_resources = 0
681 foreach(i, video_coding_modules_tests_resources) {
682 num_video_coding_modules_tests_resources += 1
683 }
684
685 if (num_video_coding_modules_tests_resources > 0) {
686 if (is_ios || is_mac) {
687 bundle_data("video_coding_modules_tests_resources_bundle_data") {
688 testonly = true
689 sources = video_coding_modules_tests_resources
690 outputs = [
691 "{{bundle_resources_dir}}/{{source_file_part}}",
692 ]
693 }
brandtr12a47f62017-09-01 00:10:27 -0700694 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800695 }
696
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200697 rtc_source_set("videocodec_test_impl") {
brandtr6bb8e0e2017-02-20 04:35:52 -0800698 testonly = true
brandtr6bb8e0e2017-02-20 04:35:52 -0800699 sources = [
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200700 "codecs/test/videocodec_test_fixture_impl.cc",
701 "codecs/test/videocodec_test_fixture_impl.h",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200702 "codecs/test/videocodec_test_stats_impl.cc",
703 "codecs/test/videocodec_test_stats_impl.h",
brandtr6bb8e0e2017-02-20 04:35:52 -0800704 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800705 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100706 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800707 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700708 ":video_coding_utility",
Sergey Silkin86684962018-03-28 19:32:37 +0200709 ":webrtc_vp9_helpers",
brandtrdf232992017-09-07 07:50:06 -0700710 "../..:webrtc_common",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200711 "../../api:videocodec_test_fixture_api",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100712 "../../api/video_codecs:video_codecs_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200713 "../../call:video_stream_api",
brandtrdf232992017-09-07 07:50:06 -0700714 "../../common_video",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200715 "../../media:rtc_audio_video",
716 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100717 "../../media:rtc_internal_video_codecs",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200718 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100719 "../../rtc_base:checks",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200720 "../../rtc_base:rtc_base_approved",
Åsa Persson7173cf22017-10-19 12:14:09 +0200721 "../../rtc_base:rtc_base_tests_utils",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200722 "../../rtc_base:rtc_event",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200723 "../../rtc_base:rtc_task_queue_for_test",
brandtrdf232992017-09-07 07:50:06 -0700724 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100725 "../../test:fileutils",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200726 "../../test:test_common",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800727 "../../test:test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200728 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700729 "../../test:video_test_support",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200730 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200731 "//third_party/abseil-cpp/absl/memory",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200732 ]
733 if (!build_with_chromium && is_clang) {
734 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
735 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
736 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200737 }
738
739 rtc_source_set("video_coding_modules_tests") {
740 testonly = true
741
742 sources = [
743 "codecs/h264/test/h264_impl_unittest.cc",
744 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
745 "codecs/test/video_encoder_decoder_instantiation_tests.cc",
746 "codecs/test/videocodec_test_libvpx.cc",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200747 "codecs/test/videocodec_test_parameterized.cc",
Erik Språng5fbc0e02018-10-04 17:52:36 +0200748 "codecs/vp8/test/mock_libvpx_interface.h",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200749 "codecs/vp8/test/vp8_impl_unittest.cc",
750 "codecs/vp9/test/vp9_impl_unittest.cc",
751 ]
Rasmus Brandta7e48442018-05-14 17:11:49 +0200752 if (rtc_use_h264) {
753 sources += [ "codecs/test/videocodec_test_openh264.cc" ]
754 }
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200755
756 deps = [
Erik Språngdcc02382018-10-10 14:58:46 +0200757 ":mock_headers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200758 ":video_codecs_test_framework",
759 ":video_coding_utility",
760 ":videocodec_test_impl",
761 ":webrtc_h264",
762 ":webrtc_multiplex",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200763 ":webrtc_vp8",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200764 ":webrtc_vp9",
765 ":webrtc_vp9_helpers",
766 "../..:webrtc_common",
767 "../../api:create_videocodec_test_fixture_api",
768 "../../api:mock_video_codec_factory",
Erik Språngc84cd952018-10-15 11:55:13 +0200769 "../../api:mock_video_decoder",
770 "../../api:mock_video_encoder",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200771 "../../api:videocodec_test_fixture_api",
Emircan Uysaler800787f2018-07-16 10:01:49 -0700772 "../../api/video:video_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200773 "../../api/video:video_frame_i420",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200774 "../../api/video_codecs:rtc_software_fallback_wrappers",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200775 "../../api/video_codecs:video_codecs_api",
776 "../../common_video",
777 "../../media:rtc_h264_profile_id",
Anders Carlssonb3306882018-05-14 10:11:42 +0200778 "../../media:rtc_internal_video_codecs",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200779 "../../media:rtc_media_base",
Jonathan Yu9a5da492018-10-19 00:51:18 -0700780 "../../media:rtc_simulcast_encoder_adapter",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700781 "../../media:rtc_vp9_profile",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200782 "../../rtc_base:rtc_base",
Sergey Silkin390f3582018-10-01 17:13:50 +0200783 "../../test:field_trial",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200784 "../../test:fileutils",
Rasmus Brandt2aae2732018-05-29 09:31:15 +0200785 "../../test:test_common",
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200786 "../../test:test_support",
787 "../../test:video_test_common",
Sergey Silkind902d582018-05-18 17:31:19 +0200788 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200789 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +0200790 "//third_party/abseil-cpp/absl/types:optional",
Emircan Uysaler0823eec2018-07-13 17:10:00 -0700791 "//third_party/libyuv",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800792 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800793
brandtrdf232992017-09-07 07:50:06 -0700794 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800795
796 if (is_android) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200797 sources += [ "codecs/test/videocodec_test_mediacodec.cc" ]
Rasmus Brandt31027342017-09-29 13:48:12 +0000798
Rasmus Brandtf1053252018-02-05 09:52:31 +0100799 deps += [ ":android_codec_factory_helper" ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800800 }
801
802 if (is_ios || is_mac) {
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +0200803 sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ]
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200804
Sergey Silkin1d2b6272018-03-28 13:04:35 +0200805 deps += [ ":objc_codec_factory_helper" ]
806
807 if (num_video_coding_modules_tests_resources > 0) {
808 deps += [ ":video_coding_modules_tests_resources_bundle_data" ]
809 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800810 }
811
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800812 if (!build_with_chromium && is_clang) {
813 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
814 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
815 }
Erik Språngdcc02382018-10-10 14:58:46 +0200816
817 if (rtc_build_libvpx) {
818 deps += [ rtc_libvpx_dir ]
819 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800820 }
821
ehmaldonado36268652017-01-19 08:27:11 -0800822 rtc_source_set("video_coding_unittests") {
823 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700824
ehmaldonado36268652017-01-19 08:27:11 -0800825 sources = [
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200826 "codecs/test/videocodec_test_fixture_config_unittest.cc",
827 "codecs/test/videocodec_test_stats_impl_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800828 "codecs/test/videoprocessor_unittest.cc",
829 "codecs/vp8/default_temporal_layers_unittest.cc",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200830 "codecs/vp8/libvpx_vp8_simulcast_test.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800831 "codecs/vp8/screenshare_layers_unittest.cc",
Sergey Silkin1322dbc2018-04-23 12:30:35 +0200832 "codecs/vp9/svc_config_unittest.cc",
Sergey Silkin86684962018-03-28 19:32:37 +0200833 "codecs/vp9/svc_rate_allocator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800834 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100835 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800836 "frame_buffer2_unittest.cc",
ilnik04f4d122017-06-19 07:18:55 -0700837 "generic_encoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800838 "h264_sprop_parameter_sets_unittest.cc",
839 "h264_sps_pps_tracker_unittest.cc",
840 "histogram_unittest.cc",
841 "include/mock/mock_vcm_callbacks.h",
842 "jitter_buffer_unittest.cc",
843 "jitter_estimator_tests.cc",
844 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800845 "receiver_unittest.cc",
846 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800847 "session_info_unittest.cc",
848 "test/stream_generator.cc",
849 "test/stream_generator.h",
charujaincb728ea2017-09-18 03:08:08 -0700850 "test/test_util.h",
ehmaldonado36268652017-01-19 08:27:11 -0800851 "timing_unittest.cc",
852 "utility/default_video_bitrate_allocator_unittest.cc",
853 "utility/frame_dropper_unittest.cc",
Sergey Silkinae3144c2018-08-29 01:05:26 +0200854 "utility/framerate_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800855 "utility/ivf_file_writer_unittest.cc",
856 "utility/moving_average_unittest.cc",
857 "utility/quality_scaler_unittest.cc",
858 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800859 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800860 "video_packet_buffer_unittest.cc",
861 "video_receiver_unittest.cc",
862 "video_sender_unittest.cc",
863 ]
ehmaldonado36268652017-01-19 08:27:11 -0800864 if (rtc_use_h264) {
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200865 sources += [
866 "codecs/h264/h264_encoder_impl_unittest.cc",
867 "codecs/h264/h264_simulcast_unittest.cc",
868 ]
ehmaldonado36268652017-01-19 08:27:11 -0800869 }
Anders Carlssonb3306882018-05-14 10:11:42 +0200870
ehmaldonado36268652017-01-19 08:27:11 -0800871 deps = [
Sergey Silkin86684962018-03-28 19:32:37 +0200872 ":codec_globals_headers",
philipeld5a272f2018-02-21 14:30:34 +0100873 ":encoded_frame",
charujaincb728ea2017-09-18 03:08:08 -0700874 ":mock_headers",
Ilya Nikolaevskiy8643b782018-06-07 16:15:40 +0200875 ":nack_module",
876 ":packet",
Sergio Garcia Murillo43800f92018-06-21 16:16:38 +0200877 ":simulcast_test_fixture_impl",
Patrik Höglund99175c62018-01-08 11:05:10 +0100878 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800879 ":video_codecs_test_framework",
880 ":video_coding",
881 ":video_coding_utility",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200882 ":videocodec_test_impl",
ehmaldonado36268652017-01-19 08:27:11 -0800883 ":webrtc_h264",
884 ":webrtc_vp8",
Erik Språng4529fbc2018-10-12 10:30:31 +0200885 ":webrtc_vp8_temporal_layers",
ehmaldonado36268652017-01-19 08:27:11 -0800886 ":webrtc_vp9",
Sergey Silkin86684962018-03-28 19:32:37 +0200887 ":webrtc_vp9_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700888 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -0800889 "../..:webrtc_common",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200890 "../../api:create_simulcast_test_fixture_api",
Erik Språngc84cd952018-10-15 11:55:13 +0200891 "../../api:mock_video_decoder",
892 "../../api:mock_video_encoder",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200893 "../../api:simulcast_test_fixture_api",
Kári Tristan Helgason169005d2018-05-22 13:34:14 +0200894 "../../api:videocodec_test_fixture_api",
Jiawei Ou4206a0a2018-07-20 15:49:43 -0700895 "../../api/video:video_bitrate_allocator",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200896 "../../api/video:video_frame",
897 "../../api/video:video_frame_i420",
Erik Språng4529fbc2018-10-12 10:30:31 +0200898 "../../api/video_codecs:create_vp8_temporal_layers",
ilnikd60d06a2017-04-05 03:02:20 -0700899 "../../api/video_codecs:video_codecs_api",
ehmaldonado36268652017-01-19 08:27:11 -0800900 "../../common_video:common_video",
Kári Tristan Helgason8cbb1c92018-04-13 14:25:22 +0200901 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100902 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700903 "../../rtc_base:rtc_base",
904 "../../rtc_base:rtc_base_approved",
Ilya Nikolaevskiy764aeb72018-04-03 10:01:52 +0200905 "../../rtc_base:rtc_base_tests_utils",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200906 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700907 "../../rtc_base:rtc_task_queue",
Rasmus Brandt8dd4db42018-05-16 09:38:42 +0200908 "../../rtc_base:rtc_task_queue_for_test",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100909 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200910 "../../system_wrappers:field_trial",
911 "../../system_wrappers:metrics",
ehmaldonado36268652017-01-19 08:27:11 -0800912 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100913 "../../test:fileutils",
Rasmus Brandt0cedc052018-05-31 12:53:00 +0200914 "../../test:test_common",
ehmaldonado36268652017-01-19 08:27:11 -0800915 "../../test:test_support",
916 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800917 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100918 "../rtp_rtcp:rtp_rtcp_format",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200919 "//third_party/abseil-cpp/absl/memory",
ehmaldonado36268652017-01-19 08:27:11 -0800920 ]
921 if (rtc_build_libvpx) {
922 deps += [ rtc_libvpx_dir ]
923 }
ehmaldonado36268652017-01-19 08:27:11 -0800924 if (!build_with_chromium && is_clang) {
925 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
926 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
927 }
928 }
kjellanderfb114242016-06-13 00:19:48 -0700929}