2017-06-30 03:04:59 -07:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
import("../webrtc.gni")
|
2019-02-26 11:46:17 +02:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
import("//third_party/protobuf/proto_library.gni")
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
|
|
|
|
|
group("rtc_tools") {
|
|
|
|
|
# This target shall build all targets in tools/.
|
|
|
|
|
testonly = true
|
|
|
|
|
|
2022-11-18 13:25:21 +01:00
|
|
|
deps = [ ":video_file_reader" ]
|
2017-09-04 23:42:45 -07:00
|
|
|
if (!build_with_chromium) {
|
2017-12-06 16:31:18 +01:00
|
|
|
deps += [
|
2017-09-04 23:42:45 -07:00
|
|
|
":psnr_ssim_analyzer",
|
|
|
|
|
":rgba_to_i420_converter",
|
2020-06-11 11:25:32 +02:00
|
|
|
":video_quality_analysis",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
2021-02-01 09:56:37 +00:00
|
|
|
if (!build_with_chromium && rtc_enable_protobuf) {
|
|
|
|
|
deps += [ ":chart_proto" ]
|
|
|
|
|
}
|
|
|
|
|
if (!build_with_chromium && rtc_include_tests) {
|
2020-02-19 15:03:45 +01:00
|
|
|
deps += [
|
|
|
|
|
":tools_unittests",
|
|
|
|
|
":yuv_to_ivf_converter",
|
|
|
|
|
]
|
2021-02-01 09:56:37 +00:00
|
|
|
}
|
|
|
|
|
if (rtc_include_tests && rtc_enable_protobuf) {
|
|
|
|
|
deps += [
|
|
|
|
|
":rtp_analyzer",
|
|
|
|
|
"network_tester",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) {
|
|
|
|
|
deps += [
|
|
|
|
|
":audioproc_f",
|
|
|
|
|
":event_log_visualizer",
|
2022-10-05 14:55:53 +02:00
|
|
|
":rtc_event_log_to_text",
|
2021-02-01 09:56:37 +00:00
|
|
|
":unpack_aecdump",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
2022-03-15 16:01:52 +01:00
|
|
|
if (!build_with_chromium && rtc_enable_grpc) {
|
|
|
|
|
deps += [ "data_channel_benchmark" ]
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_file_reader") {
|
2018-09-05 10:46:18 +02:00
|
|
|
sources = [
|
|
|
|
|
"video_file_reader.cc",
|
|
|
|
|
"video_file_reader.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2022-06-14 15:48:26 +02:00
|
|
|
"../api:make_ref_counted",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-09-05 10:46:18 +02:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../rtc_base:checks",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../rtc_base:logging",
|
2022-04-05 02:54:12 +02:00
|
|
|
"../rtc_base:refcount",
|
2022-04-04 17:14:02 +02:00
|
|
|
"../rtc_base:stringutils",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-09-05 10:46:18 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_file_writer") {
|
2018-09-14 11:32:00 +02:00
|
|
|
sources = [
|
|
|
|
|
"video_file_writer.cc",
|
|
|
|
|
"video_file_writer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_file_reader",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-09-14 11:32:00 +02:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../rtc_base:logging",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-09-14 11:32:00 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("video_quality_analysis") {
|
2020-01-13 15:10:40 +01:00
|
|
|
testonly = true
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
2018-09-11 12:56:06 +02:00
|
|
|
"frame_analyzer/linear_least_squares.cc",
|
|
|
|
|
"frame_analyzer/linear_least_squares.h",
|
|
|
|
|
"frame_analyzer/video_color_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_color_aligner.h",
|
2018-11-22 15:17:30 +01:00
|
|
|
"frame_analyzer/video_geometry_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_geometry_aligner.h",
|
2017-06-30 03:04:59 -07:00
|
|
|
"frame_analyzer/video_quality_analysis.cc",
|
|
|
|
|
"frame_analyzer/video_quality_analysis.h",
|
2018-09-05 15:04:08 +02:00
|
|
|
"frame_analyzer/video_temporal_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_temporal_aligner.h",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2017-12-01 13:53:04 +01:00
|
|
|
deps = [
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2018-09-11 12:56:06 +02:00
|
|
|
"../api:array_view",
|
2022-06-14 15:48:26 +02:00
|
|
|
"../api:make_ref_counted",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2022-09-26 10:29:22 +02:00
|
|
|
"../api/numerics",
|
|
|
|
|
"../api/test/metrics:metric",
|
|
|
|
|
"../api/test/metrics:metrics_logger",
|
2018-11-22 15:17:30 +01:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2017-12-06 16:31:18 +01:00
|
|
|
"../common_video",
|
2018-09-05 15:04:08 +02:00
|
|
|
"../rtc_base:checks",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../rtc_base:logging",
|
2017-12-14 11:24:00 +01:00
|
|
|
"//third_party/libyuv",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
2020-04-01 13:26:24 +02:00
|
|
|
# TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it
|
|
|
|
|
# is only required for Linux and Android.
|
2020-04-20 17:48:26 +02:00
|
|
|
if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) {
|
2018-09-18 13:39:37 +02:00
|
|
|
action("frame_analyzer_host") {
|
|
|
|
|
script = "//tools_webrtc/executable_host_build.py"
|
2020-01-21 12:10:10 +01:00
|
|
|
outputs = [ "${root_out_dir}/frame_analyzer_host" ]
|
2018-09-18 13:39:37 +02:00
|
|
|
args = [
|
|
|
|
|
"--executable_name",
|
|
|
|
|
"frame_analyzer",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-09-18 11:03:39 +02:00
|
|
|
}
|
|
|
|
|
|
2020-02-06 10:16:20 +01:00
|
|
|
if (!is_component_build) {
|
|
|
|
|
# This target can be built from Chromium but it doesn't support
|
|
|
|
|
# is_component_build=true because it depends on WebRTC testonly code
|
|
|
|
|
# which is not part of //third_party/webrtc_overrides:webrtc_component.
|
2021-01-29 10:50:19 +00:00
|
|
|
|
|
|
|
|
# Abseil dependencies are not moved to the absl_deps field deliberately.
|
|
|
|
|
# If build_with_chromium is true, the absl_deps replaces the dependencies with
|
|
|
|
|
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
|
|
|
|
|
# (and some others) because they cannot be used in Chromiums. Special exception
|
|
|
|
|
# for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
|
|
|
|
|
# it to be build in chromium.
|
2022-11-18 13:25:21 +01:00
|
|
|
rtc_executable("frame_analyzer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "frame_analyzer/frame_analyzer.cc" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":video_file_reader",
|
|
|
|
|
":video_file_writer",
|
|
|
|
|
":video_quality_analysis",
|
|
|
|
|
"../api:make_ref_counted",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/test/metrics:chrome_perf_dashboard_metrics_exporter",
|
|
|
|
|
"../api/test/metrics:global_metrics_logger_and_exporter",
|
|
|
|
|
"../api/test/metrics:metrics_exporter",
|
|
|
|
|
"../api/test/metrics:stdout_metrics_exporter",
|
|
|
|
|
"../rtc_base:stringutils",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
# When building from Chromium, WebRTC's metrics and field trial
|
|
|
|
|
# implementations need to be replaced by the Chromium ones.
|
|
|
|
|
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This target can be built from Chromium but it doesn't support
|
|
|
|
|
# is_component_build=true because it depends on WebRTC testonly code
|
|
|
|
|
# which is not part of //third_party/webrtc_overrides:webrtc_component.
|
|
|
|
|
|
|
|
|
|
# Abseil dependencies are not moved to the absl_deps field deliberately.
|
|
|
|
|
# If build_with_chromium is true, the absl_deps replaces the dependencies with
|
|
|
|
|
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
|
|
|
|
|
# (and some others) because they cannot be used in Chromiums. Special exception
|
|
|
|
|
# for the "rtp_generator" target in "third_party/abseil-cpp/absl.gni" allows
|
|
|
|
|
# it to be build in chromium.
|
2019-02-04 15:21:46 +01:00
|
|
|
rtc_executable("rtp_generator") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"rtp_generator/main.cc",
|
|
|
|
|
"rtp_generator/rtp_generator.cc",
|
|
|
|
|
"rtp_generator/rtp_generator.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2019-12-05 15:59:00 +01:00
|
|
|
"../api:create_frame_generator",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../api:rtp_parameters",
|
2019-02-04 15:21:46 +01:00
|
|
|
"../api:transport_api",
|
2019-08-07 12:24:53 +02:00
|
|
|
"../api/rtc_event_log",
|
2019-07-10 15:34:45 +02:00
|
|
|
"../api/task_queue:default_task_queue_factory",
|
|
|
|
|
"../api/task_queue:task_queue",
|
2019-02-04 15:21:46 +01:00
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:fake_network",
|
|
|
|
|
"../call:rtp_interfaces",
|
|
|
|
|
"../call:rtp_sender",
|
|
|
|
|
"../call:simulated_network",
|
|
|
|
|
"../call:simulated_packet_receiver",
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../media:rtc_audio_video",
|
|
|
|
|
"../media:rtc_media_base",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2019-02-04 15:21:46 +01:00
|
|
|
"../rtc_base:rtc_json",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../rtc_base:threading",
|
2019-02-04 15:21:46 +01:00
|
|
|
"../rtc_base/system:file_wrapper",
|
|
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:rtp_test_utils",
|
|
|
|
|
"../test:video_test_common",
|
2022-09-29 10:28:24 +02:00
|
|
|
"../video/config:encoder_config",
|
2022-09-27 16:53:04 +02:00
|
|
|
"../video/config:streams_config",
|
2019-06-25 08:46:18 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-19 10:02:46 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
2019-02-04 15:21:46 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
2020-02-06 10:16:20 +01:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
# When building from Chromium, WebRTC's metrics and field trial
|
|
|
|
|
# implementations need to be replaced by the Chromium ones.
|
|
|
|
|
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
|
|
|
|
|
}
|
2019-02-04 15:21:46 +01:00
|
|
|
}
|
2020-02-07 10:02:31 +01:00
|
|
|
|
|
|
|
|
# This target can be built from Chromium but it doesn't support
|
|
|
|
|
# is_component_build=true because it depends on WebRTC testonly code
|
|
|
|
|
# which is not part of //third_party/webrtc_overrides:webrtc_component.
|
2021-01-29 10:50:19 +00:00
|
|
|
|
|
|
|
|
# Abseil dependencies are not moved to the absl_deps field deliberately.
|
|
|
|
|
# If build_with_chromium is true, the absl_deps replaces the dependencies with
|
|
|
|
|
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
|
|
|
|
|
# (and some others) because they cannot be used in Chromiums. Special exception
|
2022-11-18 13:25:21 +01:00
|
|
|
# for the "video_replay" target in "third_party/abseil-cpp/absl.gni" allows
|
2021-01-29 10:50:19 +00:00
|
|
|
# it to be build in chromium.
|
2020-02-07 10:02:31 +01:00
|
|
|
rtc_executable("video_replay") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "video_replay.cc" ]
|
|
|
|
|
deps = [
|
2022-10-03 14:54:09 +02:00
|
|
|
"../api:field_trials",
|
2020-02-07 10:02:31 +01:00
|
|
|
"../api/rtc_event_log",
|
|
|
|
|
"../api/task_queue:default_task_queue_factory",
|
|
|
|
|
"../api/test/video:function_video_factory",
|
|
|
|
|
"../api/transport:field_trial_based_config",
|
2021-01-26 18:05:56 +01:00
|
|
|
"../api/video:video_frame",
|
2020-02-07 10:02:31 +01:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../media:rtc_internal_video_codecs",
|
2021-06-08 12:30:46 +02:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2021-01-26 18:05:56 +01:00
|
|
|
"../modules/video_coding:video_coding_utility",
|
2020-02-07 10:02:31 +01:00
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_json",
|
|
|
|
|
"../rtc_base:stringutils",
|
|
|
|
|
"../rtc_base:timeutils",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
"../test:call_config_utils",
|
|
|
|
|
"../test:encoder_settings",
|
|
|
|
|
"../test:fake_video_codecs",
|
|
|
|
|
"../test:null_transport",
|
|
|
|
|
"../test:rtp_test_utils",
|
2022-05-19 16:06:23 +02:00
|
|
|
"../test:run_loop",
|
2020-02-07 10:02:31 +01:00
|
|
|
"../test:run_test",
|
|
|
|
|
"../test:run_test_interface",
|
|
|
|
|
"../test:test_common",
|
|
|
|
|
"../test:test_renderer",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
"../test:video_test_common",
|
|
|
|
|
"../test:video_test_support",
|
2022-10-03 17:28:55 +02:00
|
|
|
"../test/time_controller:time_controller",
|
2020-02-07 10:02:31 +01:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
]
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
# When building from Chromium, WebRTC's metrics and field trial
|
|
|
|
|
# implementations need to be replaced by the Chromium ones.
|
|
|
|
|
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-02-06 10:16:20 +01:00
|
|
|
}
|
2019-02-04 15:21:46 +01:00
|
|
|
|
2020-02-06 10:16:20 +01:00
|
|
|
# Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid
|
|
|
|
|
# building a lot of redundant code as part of Chromium builds.
|
|
|
|
|
if (!build_with_chromium) {
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("psnr_ssim_analyzer") {
|
2019-06-25 08:51:01 +02:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
deps = [
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2017-09-04 23:42:45 -07:00
|
|
|
":video_quality_analysis",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-06-25 08:51:01 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-19 10:08:41 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("reference_less_video_analysis_lib") {
|
2020-01-13 15:10:40 +01:00
|
|
|
testonly = true
|
2017-09-04 23:42:45 -07:00
|
|
|
sources = [
|
|
|
|
|
"frame_analyzer/reference_less_video_analysis_lib.cc",
|
|
|
|
|
"frame_analyzer/reference_less_video_analysis_lib.h",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
deps = [
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2017-09-04 23:42:45 -07:00
|
|
|
":video_quality_analysis",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("reference_less_video_analysis") {
|
2019-06-25 08:49:03 +02:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
|
|
|
|
deps = [
|
2017-09-04 23:42:45 -07:00
|
|
|
":reference_less_video_analysis_lib",
|
2019-06-25 08:49:03 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-19 10:32:16 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("rgba_to_i420_converter") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2019-06-25 08:52:47 +02:00
|
|
|
testonly = true
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
2017-09-04 23:42:45 -07:00
|
|
|
"converter/converter.cc",
|
|
|
|
|
"converter/converter.h",
|
|
|
|
|
"converter/rgba_to_i420_converter.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../common_video",
|
2019-06-25 08:52:47 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-19 11:58:07 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
2017-12-14 11:24:00 +01:00
|
|
|
"//third_party/libyuv",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
proto_library("chart_proto") {
|
2019-04-24 17:12:45 +02:00
|
|
|
visibility = [ "*" ]
|
2017-09-04 23:42:45 -07:00
|
|
|
sources = [
|
2019-07-25 13:57:41 +02:00
|
|
|
"rtc_event_log_visualizer/proto/chart.proto",
|
|
|
|
|
"rtc_event_log_visualizer/proto/chart_enums.proto",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
2019-07-25 13:57:41 +02:00
|
|
|
proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto"
|
2017-09-04 23:42:45 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("event_log_visualizer_utils") {
|
2018-01-10 15:57:32 +00:00
|
|
|
visibility = [ "*" ]
|
2017-09-04 23:42:45 -07:00
|
|
|
sources = [
|
2020-05-19 10:57:24 +02:00
|
|
|
"rtc_event_log_visualizer/alerts.cc",
|
|
|
|
|
"rtc_event_log_visualizer/alerts.h",
|
2020-06-05 10:47:19 +02:00
|
|
|
"rtc_event_log_visualizer/analyze_audio.cc",
|
|
|
|
|
"rtc_event_log_visualizer/analyze_audio.h",
|
2019-07-25 13:57:41 +02:00
|
|
|
"rtc_event_log_visualizer/analyzer.cc",
|
|
|
|
|
"rtc_event_log_visualizer/analyzer.h",
|
2020-05-19 10:57:24 +02:00
|
|
|
"rtc_event_log_visualizer/analyzer_common.cc",
|
|
|
|
|
"rtc_event_log_visualizer/analyzer_common.h",
|
2019-07-25 13:57:41 +02:00
|
|
|
"rtc_event_log_visualizer/log_simulation.cc",
|
|
|
|
|
"rtc_event_log_visualizer/log_simulation.h",
|
|
|
|
|
"rtc_event_log_visualizer/plot_base.cc",
|
|
|
|
|
"rtc_event_log_visualizer/plot_base.h",
|
|
|
|
|
"rtc_event_log_visualizer/plot_protobuf.cc",
|
|
|
|
|
"rtc_event_log_visualizer/plot_protobuf.h",
|
|
|
|
|
"rtc_event_log_visualizer/plot_python.cc",
|
|
|
|
|
"rtc_event_log_visualizer/plot_python.h",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-06 16:31:18 +01:00
|
|
|
":chart_proto",
|
2019-03-21 14:37:36 +01:00
|
|
|
"../api:function_view",
|
2020-11-24 17:50:31 +01:00
|
|
|
"../api:network_state_predictor_api",
|
2022-06-24 14:23:17 +02:00
|
|
|
"../modules/audio_coding:neteq_input_audio_tools",
|
|
|
|
|
"../modules/audio_coding:neteq_tools_minimal",
|
2019-10-19 12:03:23 +02:00
|
|
|
"../rtc_base:ignore_wundef",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../rtc_base:logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
"../rtc_base:macromagic",
|
2022-04-19 15:58:39 +02:00
|
|
|
"../rtc_base:rate_statistics",
|
2022-04-05 02:54:12 +02:00
|
|
|
"../rtc_base:refcount",
|
2018-12-19 15:06:17 +01:00
|
|
|
|
|
|
|
|
# TODO(kwiberg): Remove this dependency.
|
|
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2019-01-17 16:24:12 +01:00
|
|
|
"../api/transport:field_trial_based_config",
|
2018-12-19 15:06:17 +01:00
|
|
|
"../api/transport:goog_cc",
|
2019-03-13 08:56:58 +01:00
|
|
|
"../api/transport:network_control",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../logging:rtc_event_log_parser",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_stream_config",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/audio_coding:ana_debug_dump_proto",
|
2017-12-12 12:46:13 +01:00
|
|
|
"../modules/audio_coding:audio_network_adaptor",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/audio_coding:neteq_tools",
|
|
|
|
|
"../modules/congestion_controller",
|
2018-07-02 09:25:25 +02:00
|
|
|
"../modules/congestion_controller/goog_cc:delay_based_bwe",
|
2018-05-24 14:17:06 +02:00
|
|
|
"../modules/congestion_controller/goog_cc:estimators",
|
2018-10-15 18:46:51 +02:00
|
|
|
"../modules/congestion_controller/rtp:transport_feedback",
|
2017-10-31 10:19:10 +01:00
|
|
|
"../modules/pacing",
|
2018-10-15 18:46:51 +02:00
|
|
|
"../modules/remote_bitrate_estimator",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/rtp_rtcp",
|
2018-12-19 15:06:17 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_numerics",
|
|
|
|
|
"../rtc_base:stringutils",
|
2021-05-21 18:53:28 +02:00
|
|
|
"../system_wrappers",
|
2020-06-17 11:55:55 +02:00
|
|
|
"../test:explicit_key_value_config",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-10-11 15:06:58 +02:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2021-02-22 12:43:39 +01:00
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
2021-05-12 09:02:43 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:bind_front",
|
2019-01-11 13:01:29 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2020-06-05 10:47:19 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2021-02-01 09:56:37 +00:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
rtc_executable("yuv_to_ivf_converter") {
|
|
|
|
|
visibility = [ "*" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
testonly = true
|
2021-02-01 09:56:37 +00:00
|
|
|
sources = [ "converter/yuv_to_ivf_converter.cc" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
deps = [
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api:create_frame_generator",
|
|
|
|
|
"../api:frame_generator_api",
|
|
|
|
|
"../api/task_queue:default_task_queue_factory",
|
|
|
|
|
"../api/video:encoded_image",
|
|
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../media:rtc_media_base",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
|
|
|
|
"../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../modules/video_coding:webrtc_h264",
|
|
|
|
|
"../modules/video_coding:webrtc_vp8",
|
|
|
|
|
"../modules/video_coding:webrtc_vp9",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../rtc_base:checks",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../rtc_base:criticalsection",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"../rtc_base:rtc_event",
|
|
|
|
|
"../rtc_base:rtc_task_queue",
|
|
|
|
|
"../rtc_base/synchronization:mutex",
|
|
|
|
|
"../rtc_base/system:file_wrapper",
|
|
|
|
|
"../test:video_test_common",
|
|
|
|
|
"../test:video_test_support",
|
|
|
|
|
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
|
|
|
|
|
"//third_party/abseil-cpp/absl/debugging:symbolize",
|
2019-07-16 11:55:08 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-24 15:29:47 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
rtc_executable("event_log_visualizer") {
|
2022-07-05 19:19:43 +00:00
|
|
|
# TODO(bugs.webrtc.org/14248): Remove once usage of std::tmpnam
|
|
|
|
|
# is removed (in favor of in memory InputAudioFile.
|
|
|
|
|
cflags_cc = [ "-Wno-deprecated-declarations" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"rtc_event_log_visualizer/conversational_speech_en.h",
|
|
|
|
|
"rtc_event_log_visualizer/main.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":event_log_visualizer_utils",
|
|
|
|
|
"../api/neteq:neteq_api",
|
|
|
|
|
"../api/rtc_event_log",
|
|
|
|
|
"../logging:rtc_event_log_parser",
|
|
|
|
|
"../modules/audio_coding:neteq",
|
|
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../rtc_base:checks",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../rtc_base:logging",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../rtc_base:protobuf_utils",
|
|
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:config",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
}
|
2022-10-05 14:55:53 +02:00
|
|
|
|
|
|
|
|
rtc_executable("rtc_event_log_to_text") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"rtc_event_log_to_text/converter.cc",
|
|
|
|
|
"rtc_event_log_to_text/converter.h",
|
|
|
|
|
"rtc_event_log_to_text/main.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api/rtc_event_log",
|
|
|
|
|
"../logging:ice_log",
|
|
|
|
|
"../logging:rtc_event_audio",
|
|
|
|
|
"../logging:rtc_event_begin_end",
|
|
|
|
|
"../logging:rtc_event_bwe",
|
|
|
|
|
"../logging:rtc_event_frame_events",
|
|
|
|
|
"../logging:rtc_event_generic_packet_events",
|
|
|
|
|
"../logging:rtc_event_log2_proto",
|
|
|
|
|
"../logging:rtc_event_log_impl_encoder",
|
|
|
|
|
"../logging:rtc_event_log_parser",
|
|
|
|
|
"../logging:rtc_event_log_proto",
|
|
|
|
|
"../logging:rtc_event_pacing",
|
|
|
|
|
"../logging:rtc_event_rtp_rtcp",
|
|
|
|
|
"../logging:rtc_event_video",
|
|
|
|
|
"../logging:rtc_stream_config",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:logging",
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
}
|
2021-02-01 09:56:37 +00:00
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
tools_unittests_resources = [
|
|
|
|
|
"../resources/foreman_128x96.yuv",
|
|
|
|
|
"../resources/foreman_cif.yuv",
|
|
|
|
|
"../resources/reference_less_video_test_file.y4m",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("tools_unittests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = tools_unittests_resources
|
|
|
|
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_test("tools_unittests") {
|
|
|
|
|
testonly = true
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
sources = [
|
|
|
|
|
"frame_analyzer/linear_least_squares_unittest.cc",
|
|
|
|
|
"frame_analyzer/reference_less_video_analysis_unittest.cc",
|
|
|
|
|
"frame_analyzer/video_color_aligner_unittest.cc",
|
|
|
|
|
"frame_analyzer/video_geometry_aligner_unittest.cc",
|
|
|
|
|
"frame_analyzer/video_quality_analysis_unittest.cc",
|
|
|
|
|
"frame_analyzer/video_temporal_aligner_unittest.cc",
|
|
|
|
|
"sanitizers_unittest.cc",
|
|
|
|
|
"video_file_reader_unittest.cc",
|
|
|
|
|
"video_file_writer_unittest.cc",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
deps = [
|
|
|
|
|
":video_file_reader",
|
|
|
|
|
":video_file_writer",
|
|
|
|
|
":video_quality_analysis",
|
|
|
|
|
"../api:scoped_refptr",
|
2022-09-26 10:29:22 +02:00
|
|
|
"../api/test/metrics:metric",
|
|
|
|
|
"../api/test/metrics:metrics_logger",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_rtp_headers",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../rtc_base",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:null_socket_server",
|
|
|
|
|
"../rtc_base:threading",
|
2022-09-26 10:29:22 +02:00
|
|
|
"../system_wrappers",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/libyuv",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
deps += [ ":reference_less_video_analysis_lib" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
deps += [ "network_tester:network_tester_unittests" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data = tools_unittests_resources
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
|
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":tools_unittests_bundle_data" ]
|
|
|
|
|
}
|
2018-10-30 21:12:42 +01:00
|
|
|
}
|
|
|
|
|
|
2017-06-30 03:04:59 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_executable("audioproc_f") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "audioproc_f/audioproc_float_main.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:audioproc_f_api",
|
|
|
|
|
"../modules/audio_processing",
|
|
|
|
|
"../modules/audio_processing:api",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_executable("unpack_aecdump") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "unpack_aecdump/unpack.cc" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:function_view",
|
|
|
|
|
"../common_audio",
|
|
|
|
|
"../modules/audio_processing",
|
|
|
|
|
"../modules/audio_processing:audioproc_debug_proto",
|
|
|
|
|
"../modules/audio_processing:audioproc_debug_proto",
|
|
|
|
|
"../modules/audio_processing:audioproc_protobuf_utils",
|
2022-07-05 10:16:11 +02:00
|
|
|
"../rtc_base:checks",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../rtc_base:ignore_wundef",
|
2022-04-04 15:18:46 +02:00
|
|
|
"../rtc_base:macromagic",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../rtc_base:protobuf_utils",
|
2022-04-04 17:14:02 +02:00
|
|
|
"../rtc_base:stringutils",
|
2022-07-05 10:16:11 +02:00
|
|
|
"../rtc_base/system:arch",
|
2021-02-01 09:56:37 +00:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
]
|
|
|
|
|
} # unpack_aecdump
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
copy("rtp_analyzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"py_event_log_analyzer/misc.py",
|
|
|
|
|
"py_event_log_analyzer/pb_parse.py",
|
|
|
|
|
"py_event_log_analyzer/rtp_analyzer.py",
|
|
|
|
|
"py_event_log_analyzer/rtp_analyzer.sh",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
outputs = [ "$root_build_dir/{{source_file_part}}" ]
|
|
|
|
|
deps = [ "../logging:rtc_event_log_proto" ]
|
2017-12-12 15:53:31 +01:00
|
|
|
} # rtp_analyzer
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
}
|