blob: 5ead8a0506ff497bc79da506925941b529c188b0 [file] [log] [blame]
kjellanderd2b63cf2017-06-30 10:04:591# 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.
kjellanderd2b63cf2017-06-30 10:04:598import("../webrtc.gni")
Kimmo Kinnunen08f6a6c2019-02-26 09:46:179if (rtc_enable_protobuf) {
10 import("//third_party/protobuf/proto_library.gni")
11}
kjellanderd2b63cf2017-06-30 10:04:5912
13group("rtc_tools") {
14 # This target shall build all targets in tools/.
15 testonly = true
16
Mirko Bonadei858864d2022-11-18 12:25:2117 deps = [ ":video_file_reader" ]
kjellander6af0cbf2017-09-05 06:42:4518 if (!build_with_chromium) {
Mirko Bonadeif5ff67c2017-12-06 15:31:1819 deps += [
Mirko Bonadeif45f8232022-11-18 13:05:1320 ":frame_analyzer",
kjellander6af0cbf2017-09-05 06:42:4521 ":psnr_ssim_analyzer",
Mirko Bonadei08ce9862020-06-11 09:25:3222 ":video_quality_analysis",
kjellander6af0cbf2017-09-05 06:42:4523 ]
kjellanderd2b63cf2017-06-30 10:04:5924 }
Andrey Logvine7c79fd2021-02-01 09:56:3725 if (!build_with_chromium && rtc_enable_protobuf) {
26 deps += [ ":chart_proto" ]
27 }
28 if (!build_with_chromium && rtc_include_tests) {
Sergey Silkinb1bdadc2022-12-01 15:30:3829 deps += [ ":tools_unittests" ]
Andrey Logvine7c79fd2021-02-01 09:56:3730 }
31 if (rtc_include_tests && rtc_enable_protobuf) {
32 deps += [
33 ":rtp_analyzer",
34 "network_tester",
35 ]
36 }
37 if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) {
38 deps += [
39 ":audioproc_f",
40 ":event_log_visualizer",
Björn Tereliusb3242062022-10-05 12:55:5341 ":rtc_event_log_to_text",
Andrey Logvine7c79fd2021-02-01 09:56:3742 ":unpack_aecdump",
43 ]
kjellanderd2b63cf2017-06-30 10:04:5944 }
Florent Castelli023be3c2022-03-15 15:01:5245 if (!build_with_chromium && rtc_enable_grpc) {
46 deps += [ "data_channel_benchmark" ]
47 }
kjellanderd2b63cf2017-06-30 10:04:5948}
49
Mirko Bonadei86d053c2019-10-17 19:32:0450rtc_library("video_file_reader") {
Magnus Jedvert10e829a2018-09-05 08:46:1851 sources = [
52 "video_file_reader.cc",
53 "video_file_reader.h",
54 ]
55 deps = [
Niels Möller105711e2022-06-14 13:48:2656 "../api:make_ref_counted",
Mirko Bonadeid9708072019-01-25 19:26:4857 "../api:scoped_refptr",
Magnus Jedvert10e829a2018-09-05 08:46:1858 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:3859 "../api/video:video_rtp_headers",
Yves Gerey3e707812018-11-28 15:47:4960 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:3061 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 00:54:1262 "../rtc_base:refcount",
Florent Castelli57aa81b2022-04-04 15:14:0263 "../rtc_base:stringutils",
Mirko Bonadei2dcf3482020-06-05 12:30:4164 ]
65 absl_deps = [
Steve Anton68586e82018-12-14 01:41:2566 "//third_party/abseil-cpp/absl/strings",
Magnus Jedvert10e829a2018-09-05 08:46:1867 "//third_party/abseil-cpp/absl/types:optional",
68 ]
69}
70
Mirko Bonadei86d053c2019-10-17 19:32:0471rtc_library("video_file_writer") {
Paulina Hensmanb671d462018-09-14 09:32:0072 sources = [
73 "video_file_writer.cc",
74 "video_file_writer.h",
75 ]
76 deps = [
77 ":video_file_reader",
Mirko Bonadeid9708072019-01-25 19:26:4878 "../api:scoped_refptr",
Paulina Hensmanb671d462018-09-14 09:32:0079 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:3880 "../api/video:video_rtp_headers",
Florent Castelli0af55ba2022-04-04 13:06:3081 "../rtc_base:logging",
Mirko Bonadei2dcf3482020-06-05 12:30:4182 ]
83 absl_deps = [
Steve Anton68586e82018-12-14 01:41:2584 "//third_party/abseil-cpp/absl/strings",
Paulina Hensmanb671d462018-09-14 09:32:0085 "//third_party/abseil-cpp/absl/types:optional",
86 ]
87}
88
Mirko Bonadei86d053c2019-10-17 19:32:0489rtc_library("video_quality_analysis") {
Patrik Höglund2ea27962020-01-13 14:10:4090 testonly = true
kjellanderd2b63cf2017-06-30 10:04:5991 sources = [
Magnus Jedvert1927dfa2018-09-11 10:56:0692 "frame_analyzer/linear_least_squares.cc",
93 "frame_analyzer/linear_least_squares.h",
94 "frame_analyzer/video_color_aligner.cc",
95 "frame_analyzer/video_color_aligner.h",
Magnus Jedvert286df002018-11-22 14:17:3096 "frame_analyzer/video_geometry_aligner.cc",
97 "frame_analyzer/video_geometry_aligner.h",
kjellanderd2b63cf2017-06-30 10:04:5998 "frame_analyzer/video_quality_analysis.cc",
99 "frame_analyzer/video_quality_analysis.h",
Magnus Jedvert62228c42018-09-05 13:04:08100 "frame_analyzer/video_temporal_aligner.cc",
101 "frame_analyzer/video_temporal_aligner.h",
kjellanderd2b63cf2017-06-30 10:04:59102 ]
Mirko Bonadei0250be52017-12-01 12:53:04103 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18104 ":video_file_reader",
Magnus Jedvert1927dfa2018-09-11 10:56:06105 "../api:array_view",
Niels Möller105711e2022-06-14 13:48:26106 "../api:make_ref_counted",
Mirko Bonadeid9708072019-01-25 19:26:48107 "../api:scoped_refptr",
Artem Titov5e7e4112022-09-26 08:29:22108 "../api/numerics",
109 "../api/test/metrics:metric",
110 "../api/test/metrics:metrics_logger",
Magnus Jedvert286df002018-11-22 14:17:30111 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38112 "../api/video:video_rtp_headers",
Mirko Bonadeif5ff67c2017-12-06 15:31:18113 "../common_video",
Magnus Jedvert62228c42018-09-05 13:04:08114 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30115 "../rtc_base:logging",
Mirko Bonadei401d0562017-12-14 10:24:00116 "//third_party/libyuv",
kjellanderd2b63cf2017-06-30 10:04:59117 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41118 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
kjellanderd2b63cf2017-06-30 10:04:59119}
120
Mirko Bonadei647968f2020-04-01 11:26:24121# TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it
122# is only required for Linux and Android.
Mirko Bonadeie50c9792020-04-20 15:48:26123if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) {
Mirko Bonadei080afed2018-09-18 11:39:37124 action("frame_analyzer_host") {
125 script = "//tools_webrtc/executable_host_build.py"
Mirko Bonadeiccbe95f2020-01-21 11:10:10126 outputs = [ "${root_out_dir}/frame_analyzer_host" ]
Mirko Bonadei080afed2018-09-18 11:39:37127 args = [
128 "--executable_name",
129 "frame_analyzer",
130 ]
131 }
Mirko Bonadeib56706f2018-09-18 09:03:39132}
133
Mirko Bonadeia5cec552020-02-06 09:16:20134if (!is_component_build) {
135 # This target can be built from Chromium but it doesn't support
136 # is_component_build=true because it depends on WebRTC testonly code
137 # which is not part of //third_party/webrtc_overrides:webrtc_component.
Andrey Logvin78646002021-01-29 10:50:19138
139 # Abseil dependencies are not moved to the absl_deps field deliberately.
140 # If build_with_chromium is true, the absl_deps replaces the dependencies with
141 # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
142 # (and some others) because they cannot be used in Chromiums. Special exception
143 # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
144 # it to be build in chromium.
Mirko Bonadei858864d2022-11-18 12:25:21145 rtc_executable("frame_analyzer") {
146 visibility = [ "*" ]
147 testonly = true
148 sources = [ "frame_analyzer/frame_analyzer.cc" ]
149
150 deps = [
151 ":video_file_reader",
152 ":video_file_writer",
153 ":video_quality_analysis",
154 "../api:make_ref_counted",
155 "../api:scoped_refptr",
156 "../api/test/metrics:chrome_perf_dashboard_metrics_exporter",
157 "../api/test/metrics:global_metrics_logger_and_exporter",
158 "../api/test/metrics:metrics_exporter",
159 "../api/test/metrics:stdout_metrics_exporter",
160 "../rtc_base:stringutils",
161 "//third_party/abseil-cpp/absl/flags:flag",
162 "//third_party/abseil-cpp/absl/flags:parse",
163 "//third_party/abseil-cpp/absl/strings",
164 ]
165
166 if (build_with_chromium) {
167 # When building from Chromium, WebRTC's metrics and field trial
168 # implementations need to be replaced by the Chromium ones.
169 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
170 }
171 }
172
173 # This target can be built from Chromium but it doesn't support
174 # is_component_build=true because it depends on WebRTC testonly code
175 # which is not part of //third_party/webrtc_overrides:webrtc_component.
176
177 # Abseil dependencies are not moved to the absl_deps field deliberately.
178 # If build_with_chromium is true, the absl_deps replaces the dependencies with
179 # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
180 # (and some others) because they cannot be used in Chromiums. Special exception
181 # for the "rtp_generator" target in "third_party/abseil-cpp/absl.gni" allows
182 # it to be build in chromium.
Mirko Bonadei8573aae2019-02-04 14:21:46183 rtc_executable("rtp_generator") {
184 visibility = [ "*" ]
185 testonly = true
186 sources = [
187 "rtp_generator/main.cc",
188 "rtp_generator/rtp_generator.cc",
189 "rtp_generator/rtp_generator.h",
190 ]
191
192 deps = [
Ying Wangbc959b12023-04-03 02:54:31193 "..//api/video_codecs:video_decoder_factory_template",
194 "..//api/video_codecs:video_decoder_factory_template_dav1d_adapter",
195 "..//api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter",
196 "..//api/video_codecs:video_decoder_factory_template_libvpx_vp9_adapter",
197 "..//api/video_codecs:video_decoder_factory_template_open_h264_adapter",
198 "..//api/video_codecs:video_encoder_factory_template",
199 "..//api/video_codecs:video_encoder_factory_template_libaom_av1_adapter",
200 "..//api/video_codecs:video_encoder_factory_template_libvpx_vp8_adapter",
201 "..//api/video_codecs:video_encoder_factory_template_libvpx_vp9_adapter",
202 "..//api/video_codecs:video_encoder_factory_template_open_h264_adapter",
Artem Titovd12582a2023-04-12 13:29:07203 "../api:create_frame_generator",
204 "../api:rtp_parameters",
205 "../api:transport_api",
206 "../api/rtc_event_log",
207 "../api/task_queue:default_task_queue_factory",
208 "../api/task_queue:task_queue",
209 "../api/video:builtin_video_bitrate_allocator_factory",
210 "../api/video_codecs:video_codecs_api",
Mirko Bonadei8573aae2019-02-04 14:21:46211 "../call",
212 "../call:call_interfaces",
213 "../call:fake_network",
214 "../call:rtp_interfaces",
215 "../call:rtp_sender",
216 "../call:simulated_network",
217 "../call:simulated_packet_receiver",
218 "../call:video_stream_api",
Harald Alvestrand794d5992022-12-16 09:54:57219 "../media:media_constants",
Mirko Bonadei8573aae2019-02-04 14:21:46220 "../media:rtc_audio_video",
221 "../media:rtc_media_base",
Mirko Bonadei8573aae2019-02-04 14:21:46222 "../rtc_base:rtc_json",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01223 "../rtc_base:threading",
Mirko Bonadei8573aae2019-02-04 14:21:46224 "../rtc_base/system:file_wrapper",
225 "../test:fileutils",
Artem Titovd12582a2023-04-12 13:29:07226 "../test:frame_generator_capturer",
Mirko Bonadei8573aae2019-02-04 14:21:46227 "../test:rtp_test_utils",
Jonas Oreland6c2dae22022-09-29 08:28:24228 "../video/config:encoder_config",
Jonas Oreland1262eb52022-09-27 14:53:04229 "../video/config:streams_config",
Mirko Bonadeia95949e2019-06-25 06:46:18230 "//third_party/abseil-cpp/absl/flags:flag",
231 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei06cdb232019-07-19 08:02:46232 "//third_party/abseil-cpp/absl/flags:usage",
Mirko Bonadei8573aae2019-02-04 14:21:46233 "//third_party/abseil-cpp/absl/strings",
234 ]
Mirko Bonadeia5cec552020-02-06 09:16:20235 if (build_with_chromium) {
236 # When building from Chromium, WebRTC's metrics and field trial
237 # implementations need to be replaced by the Chromium ones.
238 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
239 }
Mirko Bonadei8573aae2019-02-04 14:21:46240 }
Mirko Bonadeid4c3c3a2020-02-07 09:02:31241
242 # This target can be built from Chromium but it doesn't support
243 # is_component_build=true because it depends on WebRTC testonly code
244 # which is not part of //third_party/webrtc_overrides:webrtc_component.
Andrey Logvin78646002021-01-29 10:50:19245
246 # Abseil dependencies are not moved to the absl_deps field deliberately.
247 # If build_with_chromium is true, the absl_deps replaces the dependencies with
248 # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
249 # (and some others) because they cannot be used in Chromiums. Special exception
Mirko Bonadei858864d2022-11-18 12:25:21250 # for the "video_replay" target in "third_party/abseil-cpp/absl.gni" allows
Andrey Logvin78646002021-01-29 10:50:19251 # it to be build in chromium.
Mirko Bonadeid4c3c3a2020-02-07 09:02:31252 rtc_executable("video_replay") {
253 visibility = [ "*" ]
254 testonly = true
255 sources = [ "video_replay.cc" ]
256 deps = [
philipel525891a2022-10-03 12:54:09257 "../api:field_trials",
Per Kbdf30c82023-01-18 08:49:28258 "../api:rtp_parameters",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31259 "../api/rtc_event_log",
260 "../api/task_queue:default_task_queue_factory",
261 "../api/test/video:function_video_factory",
262 "../api/transport:field_trial_based_config",
Per Kbdf30c82023-01-18 08:49:28263 "../api/units:timestamp",
Philipp Hanckefae4fb12021-01-26 17:05:56264 "../api/video:video_frame",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31265 "../api/video_codecs:video_codecs_api",
266 "../call",
267 "../call:call_interfaces",
268 "../common_video",
269 "../media:rtc_internal_video_codecs",
Danil Chapovalov76a35d92021-06-08 10:30:46270 "../modules/rtp_rtcp:rtp_rtcp_format",
Philipp Hanckefae4fb12021-01-26 17:05:56271 "../modules/video_coding:video_coding_utility",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31272 "../rtc_base:checks",
273 "../rtc_base:rtc_json",
274 "../rtc_base:stringutils",
275 "../rtc_base:timeutils",
276 "../system_wrappers",
277 "../test:call_config_utils",
278 "../test:encoder_settings",
279 "../test:fake_video_codecs",
280 "../test:null_transport",
281 "../test:rtp_test_utils",
Niels Möller65b2d8a2022-05-19 14:06:23282 "../test:run_loop",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31283 "../test:run_test",
284 "../test:run_test_interface",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31285 "../test:test_renderer",
286 "../test:test_support",
Artem Titov86ad48c2023-03-24 22:31:10287 "../test:test_video_capturer",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31288 "../test:video_test_common",
Artem Titov8a9f3a82023-04-25 07:56:49289 "../test:video_test_constants",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31290 "../test:video_test_support",
philipel4426c472022-10-03 15:28:55291 "../test/time_controller:time_controller",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31292 "//third_party/abseil-cpp/absl/flags:flag",
293 "//third_party/abseil-cpp/absl/flags:parse",
294 ]
295 if (build_with_chromium) {
296 # When building from Chromium, WebRTC's metrics and field trial
297 # implementations need to be replaced by the Chromium ones.
298 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
299 }
300 }
Mirko Bonadeia5cec552020-02-06 09:16:20301}
Mirko Bonadei8573aae2019-02-04 14:21:46302
Mirko Bonadeia5cec552020-02-06 09:16:20303# Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid
304# building a lot of redundant code as part of Chromium builds.
305if (!build_with_chromium) {
kjellander6af0cbf2017-09-05 06:42:45306 rtc_executable("psnr_ssim_analyzer") {
Mirko Bonadei8e032c82019-06-25 06:51:01307 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10308 sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
kjellanderd2b63cf2017-06-30 10:04:59309
kjellanderd2b63cf2017-06-30 10:04:59310 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18311 ":video_file_reader",
kjellander6af0cbf2017-09-05 06:42:45312 ":video_quality_analysis",
Mirko Bonadeid9708072019-01-25 19:26:48313 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 15:47:49314 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38315 "../api/video:video_rtp_headers",
Mirko Bonadei8e032c82019-06-25 06:51:01316 "//third_party/abseil-cpp/absl/flags:flag",
317 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei4e722452019-07-19 08:08:41318 "//third_party/abseil-cpp/absl/flags:usage",
kjellanderd2b63cf2017-06-30 10:04:59319 ]
320 }
kjellanderd2b63cf2017-06-30 10:04:59321
Mirko Bonadei86d053c2019-10-17 19:32:04322 rtc_library("reference_less_video_analysis_lib") {
Patrik Höglund2ea27962020-01-13 14:10:40323 testonly = true
kjellanderd2b63cf2017-06-30 10:04:59324 sources = [
kjellander6af0cbf2017-09-05 06:42:45325 "frame_analyzer/reference_less_video_analysis_lib.cc",
326 "frame_analyzer/reference_less_video_analysis_lib.h",
kjellanderd2b63cf2017-06-30 10:04:59327 ]
kjellander6af0cbf2017-09-05 06:42:45328
329 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18330 ":video_file_reader",
kjellander6af0cbf2017-09-05 06:42:45331 ":video_quality_analysis",
Mirko Bonadeid9708072019-01-25 19:26:48332 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 15:47:49333 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38334 "../api/video:video_rtp_headers",
kjellander6af0cbf2017-09-05 06:42:45335 ]
kjellanderd2b63cf2017-06-30 10:04:59336 }
337
kjellander6af0cbf2017-09-05 06:42:45338 rtc_executable("reference_less_video_analysis") {
Mirko Bonadei6d6b0fb2019-06-25 06:49:03339 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10340 sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
kjellander6af0cbf2017-09-05 06:42:45341
342 deps = [
kjellander6af0cbf2017-09-05 06:42:45343 ":reference_less_video_analysis_lib",
Mirko Bonadei6d6b0fb2019-06-25 06:49:03344 "//third_party/abseil-cpp/absl/flags:flag",
345 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei7ddca162019-07-19 08:32:16346 "//third_party/abseil-cpp/absl/flags:usage",
kjellander6af0cbf2017-09-05 06:42:45347 ]
348 }
349
kjellander6af0cbf2017-09-05 06:42:45350 if (rtc_enable_protobuf) {
351 proto_library("chart_proto") {
Bjorn Terelius9b809d32019-04-24 15:12:45352 visibility = [ "*" ]
kjellander6af0cbf2017-09-05 06:42:45353 sources = [
Mirko Bonadei575998c2019-07-25 11:57:41354 "rtc_event_log_visualizer/proto/chart.proto",
355 "rtc_event_log_visualizer/proto/chart_enums.proto",
kjellander6af0cbf2017-09-05 06:42:45356 ]
Mirko Bonadei575998c2019-07-25 11:57:41357 proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto"
kjellander6af0cbf2017-09-05 06:42:45358 }
359
Mirko Bonadei86d053c2019-10-17 19:32:04360 rtc_library("event_log_visualizer_utils") {
Per Kjellandera0f5f602018-01-10 15:57:32361 visibility = [ "*" ]
kjellander6af0cbf2017-09-05 06:42:45362 sources = [
Bjorn Terelius48b82792020-05-19 08:57:24363 "rtc_event_log_visualizer/alerts.cc",
364 "rtc_event_log_visualizer/alerts.h",
Bjorn Tereliusc186e142020-06-05 08:47:19365 "rtc_event_log_visualizer/analyze_audio.cc",
366 "rtc_event_log_visualizer/analyze_audio.h",
Mirko Bonadei575998c2019-07-25 11:57:41367 "rtc_event_log_visualizer/analyzer.cc",
368 "rtc_event_log_visualizer/analyzer.h",
Bjorn Terelius48b82792020-05-19 08:57:24369 "rtc_event_log_visualizer/analyzer_common.cc",
370 "rtc_event_log_visualizer/analyzer_common.h",
Mirko Bonadei575998c2019-07-25 11:57:41371 "rtc_event_log_visualizer/log_simulation.cc",
372 "rtc_event_log_visualizer/log_simulation.h",
373 "rtc_event_log_visualizer/plot_base.cc",
374 "rtc_event_log_visualizer/plot_base.h",
375 "rtc_event_log_visualizer/plot_protobuf.cc",
376 "rtc_event_log_visualizer/plot_protobuf.h",
377 "rtc_event_log_visualizer/plot_python.cc",
378 "rtc_event_log_visualizer/plot_python.h",
kjellander6af0cbf2017-09-05 06:42:45379 ]
kjellander6af0cbf2017-09-05 06:42:45380 deps = [
Mirko Bonadeif5ff67c2017-12-06 15:31:18381 ":chart_proto",
Artem Titov741daaf2019-03-21 13:37:36382 "../api:function_view",
Niels Möller0d863f72020-11-24 16:50:31383 "../api:network_state_predictor_api",
Mirko Bonadei22ca4fb2022-06-24 12:23:17384 "../modules/audio_coding:neteq_input_audio_tools",
385 "../modules/audio_coding:neteq_tools_minimal",
Mirko Bonadei3663ed32019-10-19 10:03:23386 "../rtc_base:ignore_wundef",
Florent Castelli0af55ba2022-04-04 13:06:30387 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 13:18:46388 "../rtc_base:macromagic",
Florent Castelli6bb1fd32022-04-19 13:58:39389 "../rtc_base:rate_statistics",
Florent Castellif86f6f92022-04-05 00:54:12390 "../rtc_base:refcount",
Niels Möller3f651d82018-12-19 14:06:17391
392 # TODO(kwiberg): Remove this dependency.
393 "../api/audio_codecs:audio_codecs_api",
Sebastian Jansson95edb032019-01-17 15:24:12394 "../api/transport:field_trial_based_config",
Niels Möller3f651d82018-12-19 14:06:17395 "../api/transport:goog_cc",
Sebastian Jansson1175ae02019-03-13 07:56:58396 "../api/transport:network_control",
kjellander6af0cbf2017-09-05 06:42:45397 "../call:call_interfaces",
398 "../call:video_stream_api",
kjellander6af0cbf2017-09-05 06:42:45399 "../logging:rtc_event_log_parser",
Qingsi Wang970b0882018-02-01 19:04:46400 "../logging:rtc_stream_config",
kjellander6af0cbf2017-09-05 06:42:45401 "../modules/audio_coding:ana_debug_dump_proto",
Mirko Bonadei818d9102017-12-12 11:46:13402 "../modules/audio_coding:audio_network_adaptor",
kjellander6af0cbf2017-09-05 06:42:45403 "../modules/audio_coding:neteq_tools",
kjellander6af0cbf2017-09-05 06:42:45404 "../modules/congestion_controller",
Sebastian Jansson04b18cb2018-07-02 07:25:25405 "../modules/congestion_controller/goog_cc:delay_based_bwe",
Sebastian Jansson172fd852018-05-24 12:17:06406 "../modules/congestion_controller/goog_cc:estimators",
Sebastian Jansson5c94f552018-10-15 16:46:51407 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 09:19:10408 "../modules/pacing",
Sebastian Jansson5c94f552018-10-15 16:46:51409 "../modules/remote_bitrate_estimator",
kjellander6af0cbf2017-09-05 06:42:45410 "../modules/rtp_rtcp",
Niels Möller3f651d82018-12-19 14:06:17411 "../modules/rtp_rtcp:rtp_rtcp_format",
412 "../rtc_base:checks",
Niels Möller3f651d82018-12-19 14:06:17413 "../rtc_base:rtc_numerics",
414 "../rtc_base:stringutils",
Paul Hallak46fbefa2021-05-21 16:53:28415 "../system_wrappers",
Björn Tereliusae1892d2020-06-17 09:55:55416 "../test:explicit_key_value_config",
Mirko Bonadei2dcf3482020-06-05 12:30:41417 ]
418 absl_deps = [
Björn Tereliusc69c1bb2019-10-11 13:06:58419 "//third_party/abseil-cpp/absl/algorithm:container",
Danil Chapovalove9041612021-02-22 11:43:39420 "//third_party/abseil-cpp/absl/base:core_headers",
Per Kjellanderfe2063e2021-05-12 07:02:43421 "//third_party/abseil-cpp/absl/functional:bind_front",
Bjorn Terelius6c4b1b72019-01-11 12:01:29422 "//third_party/abseil-cpp/absl/strings",
Bjorn Tereliusc186e142020-06-05 08:47:19423 "//third_party/abseil-cpp/absl/types:optional",
kjellander6af0cbf2017-09-05 06:42:45424 ]
kjellander6af0cbf2017-09-05 06:42:45425 }
kjellanderd2b63cf2017-06-30 10:04:59426 }
Jianhui Dai18f66fc2023-06-12 11:36:03427
428 rtc_executable("video_encoder") {
429 visibility = [ "*" ]
430 testonly = true
Jianhui Daia2e945e2023-06-19 01:36:42431 sources = [
432 "video_encoder/encoded_image_file_writer.cc",
433 "video_encoder/encoded_image_file_writer.h",
434 "video_encoder/video_encoder.cc",
435 ]
Jianhui Dai18f66fc2023-06-12 11:36:03436 deps = [
437 "//api:create_frame_generator",
438 "//api:frame_generator_api",
439 "//api/video:builtin_video_bitrate_allocator_factory",
440 "//api/video_codecs:builtin_video_encoder_factory",
441 "//api/video_codecs:video_codecs_api",
442 "//modules/video_coding:video_codec_interface",
443 "//modules/video_coding:video_coding_utility",
444 "//modules/video_coding/codecs/av1:av1_svc_config",
445 "//modules/video_coding/svc:scalability_mode_util",
446 "//rtc_base:logging",
Jianhui Dai4d752ec2023-07-13 09:16:37447 "//test:y4m_frame_generator",
Jianhui Dai18f66fc2023-06-12 11:36:03448 "//third_party/abseil-cpp/absl/flags:flag",
449 "//third_party/abseil-cpp/absl/flags:parse",
450 "//third_party/abseil-cpp/absl/flags:usage",
451 ]
452 }
kjellanderd2b63cf2017-06-30 10:04:59453}
454
kjellanderd2b63cf2017-06-30 10:04:59455if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37456 if (!build_with_chromium) {
Andrey Logvine7c79fd2021-02-01 09:56:37457 if (rtc_enable_protobuf) {
458 rtc_executable("event_log_visualizer") {
Mirko Bonadei6183a0f2022-07-05 19:19:43459 # TODO(bugs.webrtc.org/14248): Remove once usage of std::tmpnam
460 # is removed (in favor of in memory InputAudioFile.
461 cflags_cc = [ "-Wno-deprecated-declarations" ]
462 sources = [
463 "rtc_event_log_visualizer/conversational_speech_en.h",
464 "rtc_event_log_visualizer/main.cc",
Andrey Logvine7c79fd2021-02-01 09:56:37465 ]
466 deps = [
467 ":event_log_visualizer_utils",
468 "../api/neteq:neteq_api",
469 "../api/rtc_event_log",
470 "../logging:rtc_event_log_parser",
471 "../modules/audio_coding:neteq",
472 "../modules/rtp_rtcp:rtp_rtcp_format",
473 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30474 "../rtc_base:logging",
Andrey Logvine7c79fd2021-02-01 09:56:37475 "../rtc_base:protobuf_utils",
Andrey Logvine7c79fd2021-02-01 09:56:37476 "../system_wrappers:field_trial",
Andrey Logvine7c79fd2021-02-01 09:56:37477 "//third_party/abseil-cpp/absl/algorithm:container",
478 "//third_party/abseil-cpp/absl/flags:config",
479 "//third_party/abseil-cpp/absl/flags:flag",
480 "//third_party/abseil-cpp/absl/flags:parse",
481 "//third_party/abseil-cpp/absl/flags:usage",
482 "//third_party/abseil-cpp/absl/strings",
483 ]
484 }
Björn Tereliusb3242062022-10-05 12:55:53485
486 rtc_executable("rtc_event_log_to_text") {
487 testonly = true
488 sources = [
489 "rtc_event_log_to_text/converter.cc",
490 "rtc_event_log_to_text/converter.h",
491 "rtc_event_log_to_text/main.cc",
492 ]
493 deps = [
494 "../api/rtc_event_log",
495 "../logging:ice_log",
496 "../logging:rtc_event_audio",
497 "../logging:rtc_event_begin_end",
498 "../logging:rtc_event_bwe",
499 "../logging:rtc_event_frame_events",
500 "../logging:rtc_event_generic_packet_events",
501 "../logging:rtc_event_log2_proto",
502 "../logging:rtc_event_log_impl_encoder",
503 "../logging:rtc_event_log_parser",
504 "../logging:rtc_event_log_proto",
505 "../logging:rtc_event_pacing",
506 "../logging:rtc_event_rtp_rtcp",
507 "../logging:rtc_event_video",
508 "../logging:rtc_stream_config",
509 "../rtc_base:checks",
510 "../rtc_base:logging",
511 "//third_party/abseil-cpp/absl/base:core_headers",
512 "//third_party/abseil-cpp/absl/flags:flag",
513 "//third_party/abseil-cpp/absl/flags:parse",
514 "//third_party/abseil-cpp/absl/flags:usage",
515 "//third_party/abseil-cpp/absl/strings",
516 ]
517 }
kjellanderd2b63cf2017-06-30 10:04:59518 }
kjellanderd2b63cf2017-06-30 10:04:59519
Andrey Logvine7c79fd2021-02-01 09:56:37520 tools_unittests_resources = [
521 "../resources/foreman_128x96.yuv",
522 "../resources/foreman_cif.yuv",
523 "../resources/reference_less_video_test_file.y4m",
kjellanderd2b63cf2017-06-30 10:04:59524 ]
525
Andrey Logvine7c79fd2021-02-01 09:56:37526 if (is_ios) {
527 bundle_data("tools_unittests_bundle_data") {
528 testonly = true
529 sources = tools_unittests_resources
530 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
531 }
532 }
kjellanderd2b63cf2017-06-30 10:04:59533
Andrey Logvine7c79fd2021-02-01 09:56:37534 rtc_test("tools_unittests") {
535 testonly = true
536
537 sources = [
538 "frame_analyzer/linear_least_squares_unittest.cc",
539 "frame_analyzer/reference_less_video_analysis_unittest.cc",
540 "frame_analyzer/video_color_aligner_unittest.cc",
541 "frame_analyzer/video_geometry_aligner_unittest.cc",
542 "frame_analyzer/video_quality_analysis_unittest.cc",
543 "frame_analyzer/video_temporal_aligner_unittest.cc",
544 "sanitizers_unittest.cc",
545 "video_file_reader_unittest.cc",
546 "video_file_writer_unittest.cc",
547 ]
548
549 deps = [
550 ":video_file_reader",
551 ":video_file_writer",
552 ":video_quality_analysis",
553 "../api:scoped_refptr",
Artem Titov5e7e4112022-09-26 08:29:22554 "../api/test/metrics:metric",
555 "../api/test/metrics:metrics_logger",
Andrey Logvine7c79fd2021-02-01 09:56:37556 "../api/video:video_frame",
557 "../api/video:video_rtp_headers",
558 "../common_video",
Andrey Logvine7c79fd2021-02-01 09:56:37559 "../rtc_base:checks",
560 "../rtc_base:null_socket_server",
561 "../rtc_base:threading",
Artem Titov5e7e4112022-09-26 08:29:22562 "../system_wrappers",
Andrey Logvine7c79fd2021-02-01 09:56:37563 "../test:fileutils",
564 "../test:test_main",
565 "../test:test_support",
566 "//testing/gtest",
567 "//third_party/libyuv",
568 ]
569
570 if (!build_with_chromium) {
571 deps += [ ":reference_less_video_analysis_lib" ]
572 }
573
574 if (rtc_enable_protobuf) {
575 deps += [ "network_tester:network_tester_unittests" ]
576 }
577
578 data = tools_unittests_resources
579 if (is_android) {
580 deps += [ "//testing/android/native_test:native_test_support" ]
581 shard_timeout = 900
582 }
583 if (is_ios) {
584 deps += [ ":tools_unittests_bundle_data" ]
585 }
Yves Gerey21cddff2018-10-30 20:12:42586 }
587
kjellanderd2b63cf2017-06-30 10:04:59588 if (rtc_enable_protobuf) {
Andrey Logvine7c79fd2021-02-01 09:56:37589 rtc_executable("audioproc_f") {
590 testonly = true
591 sources = [ "audioproc_f/audioproc_float_main.cc" ]
592 deps = [
593 "../api:audioproc_f_api",
594 "../modules/audio_processing",
595 "../modules/audio_processing:api",
Andrey Logvine7c79fd2021-02-01 09:56:37596 ]
597 }
kjellanderd2b63cf2017-06-30 10:04:59598
Andrey Logvine7c79fd2021-02-01 09:56:37599 rtc_executable("unpack_aecdump") {
600 visibility = [ "*" ]
Andrey Logvine7c79fd2021-02-01 09:56:37601 sources = [ "unpack_aecdump/unpack.cc" ]
602
603 deps = [
604 "../api:function_view",
605 "../common_audio",
606 "../modules/audio_processing",
607 "../modules/audio_processing:audioproc_debug_proto",
608 "../modules/audio_processing:audioproc_debug_proto",
609 "../modules/audio_processing:audioproc_protobuf_utils",
Mirko Bonadei2ad75b32022-07-05 08:16:11610 "../rtc_base:checks",
Andrey Logvine7c79fd2021-02-01 09:56:37611 "../rtc_base:ignore_wundef",
Florent Castelli4467ad72022-04-04 13:18:46612 "../rtc_base:macromagic",
Andrey Logvine7c79fd2021-02-01 09:56:37613 "../rtc_base:protobuf_utils",
Florent Castelli57aa81b2022-04-04 15:14:02614 "../rtc_base:stringutils",
Mirko Bonadei2ad75b32022-07-05 08:16:11615 "../rtc_base/system:arch",
Andrey Logvine7c79fd2021-02-01 09:56:37616 "//third_party/abseil-cpp/absl/flags:flag",
617 "//third_party/abseil-cpp/absl/flags:parse",
618 ]
619 } # unpack_aecdump
kjellanderd2b63cf2017-06-30 10:04:59620 }
621 }
622
623 if (rtc_enable_protobuf) {
624 copy("rtp_analyzer") {
625 sources = [
626 "py_event_log_analyzer/misc.py",
627 "py_event_log_analyzer/pb_parse.py",
628 "py_event_log_analyzer/rtp_analyzer.py",
629 "py_event_log_analyzer/rtp_analyzer.sh",
630 ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10631 outputs = [ "$root_build_dir/{{source_file_part}}" ]
632 deps = [ "../logging:rtc_event_log_proto" ]
Patrik Höglund844ce8b2017-12-12 14:53:31633 } # rtp_analyzer
kjellanderd2b63cf2017-06-30 10:04:59634 }
635}