2014-06-23 19:21:07 +00: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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2016-06-13 00:19:48 -07:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("remote_bitrate_estimator") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2014-12-04 15:34:06 +00:00
|
|
|
"aimd_rate_control.cc",
|
|
|
|
|
"aimd_rate_control.h",
|
2016-08-03 00:29:03 -07:00
|
|
|
"bwe_defines.cc",
|
2016-06-09 02:40:58 -07:00
|
|
|
"include/bwe_defines.h",
|
|
|
|
|
"include/remote_bitrate_estimator.h",
|
2014-12-04 15:34:06 +00:00
|
|
|
"inter_arrival.cc",
|
|
|
|
|
"inter_arrival.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"overuse_detector.cc",
|
|
|
|
|
"overuse_detector.h",
|
2014-12-04 15:34:06 +00:00
|
|
|
"overuse_estimator.cc",
|
|
|
|
|
"overuse_estimator.h",
|
2021-05-04 15:52:32 +02:00
|
|
|
"packet_arrival_map.cc",
|
|
|
|
|
"packet_arrival_map.h",
|
2014-12-04 15:34:06 +00:00
|
|
|
"remote_bitrate_estimator_abs_send_time.cc",
|
2016-06-09 02:40:58 -07:00
|
|
|
"remote_bitrate_estimator_abs_send_time.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"remote_bitrate_estimator_single_stream.cc",
|
2016-06-09 02:40:58 -07:00
|
|
|
"remote_bitrate_estimator_single_stream.h",
|
2015-09-24 15:06:57 +02:00
|
|
|
"remote_estimator_proxy.cc",
|
|
|
|
|
"remote_estimator_proxy.h",
|
2016-06-09 02:40:58 -07:00
|
|
|
"test/bwe_test_logging.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
2014-07-13 09:02:54 +00:00
|
|
|
|
2016-09-30 06:29:54 -07:00
|
|
|
if (rtc_enable_bwe_test_logging) {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
2018-09-11 10:49:41 +02:00
|
|
|
|
2016-09-30 06:29:54 -07:00
|
|
|
sources += [ "test/bwe_test_logging.cc" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
2016-05-22 17:15:02 -07:00
|
|
|
}
|
|
|
|
|
|
2016-06-09 02:40:58 -07:00
|
|
|
deps = [
|
2022-03-29 11:04:48 +02:00
|
|
|
"../../api:field_trials_view",
|
2019-04-10 13:48:24 +02:00
|
|
|
"../../api:network_state_predictor_api",
|
2019-03-20 08:40:23 +01:00
|
|
|
"../../api:rtp_headers",
|
2019-04-16 14:50:08 +02:00
|
|
|
"../../api/transport:field_trial_based_config",
|
2019-04-15 15:42:25 +02:00
|
|
|
"../../api/transport:network_control",
|
2018-10-08 11:00:50 +02:00
|
|
|
"../../api/units:data_rate",
|
2021-06-03 15:52:27 +02:00
|
|
|
"../../api/units:data_size",
|
|
|
|
|
"../../api/units:time_delta",
|
2018-11-19 18:02:20 +01:00
|
|
|
"../../api/units:timestamp",
|
2017-09-25 15:19:35 +02:00
|
|
|
"../../modules:module_api",
|
2018-10-23 12:03:01 +02:00
|
|
|
"../../modules:module_api_public",
|
2018-11-29 18:36:42 +01:00
|
|
|
"../../modules/congestion_controller/goog_cc:link_capacity_estimator",
|
2017-09-25 15:19:35 +02:00
|
|
|
"../../modules/rtp_rtcp:rtp_rtcp_format",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2022-04-04 15:06:30 +02:00
|
|
|
"../../rtc_base:logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
"../../rtc_base:macromagic",
|
2022-04-14 12:18:28 +02:00
|
|
|
"../../rtc_base:platform_thread",
|
2022-04-14 13:38:05 +02:00
|
|
|
"../../rtc_base:race_checker",
|
2022-04-19 15:58:39 +02:00
|
|
|
"../../rtc_base:rate_statistics",
|
2019-04-02 15:54:22 +02:00
|
|
|
"../../rtc_base:rtc_numerics",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../rtc_base:safe_minmax",
|
2022-04-04 17:14:02 +02:00
|
|
|
"../../rtc_base:stringutils",
|
2019-03-27 16:18:39 +01:00
|
|
|
"../../rtc_base/experiments:field_trial_parser",
|
2020-07-07 14:12:15 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2016-06-09 02:40:58 -07:00
|
|
|
"../../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../../system_wrappers:field_trial",
|
|
|
|
|
"../../system_wrappers:metrics",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2020-04-01 13:43:08 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-06-18 10:48:16 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2016-06-09 02:40:58 -07:00
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
|
2017-09-05 03:01:45 -07:00
|
|
|
if (!build_with_chromium) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("bwe_rtp") {
|
2017-09-05 03:01:45 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"tools/bwe_rtp.cc",
|
|
|
|
|
"tools/bwe_rtp.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../test:rtp_test_utils",
|
2021-06-03 13:27:35 +02:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-07-08 11:52:24 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_executable("rtp_to_text") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "tools/rtp_to_text.cc" ]
|
2019-07-08 11:52:24 +02:00
|
|
|
deps = [
|
|
|
|
|
":bwe_rtp",
|
|
|
|
|
"../../rtc_base:macromagic",
|
|
|
|
|
"../../rtc_base:stringutils",
|
|
|
|
|
"../../test:rtp_test_utils",
|
2021-06-03 13:27:35 +02:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-09-05 03:01:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-13 00:19:48 -07:00
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("remote_bitrate_estimator_unittests") {
|
2017-01-19 08:27:11 -08:00
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"aimd_rate_control_unittest.cc",
|
|
|
|
|
"inter_arrival_unittest.cc",
|
|
|
|
|
"overuse_detector_unittest.cc",
|
2021-05-04 15:52:32 +02:00
|
|
|
"packet_arrival_map_test.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"remote_bitrate_estimator_abs_send_time_unittest.cc",
|
|
|
|
|
"remote_bitrate_estimator_single_stream_unittest.cc",
|
|
|
|
|
"remote_bitrate_estimator_unittest_helper.cc",
|
|
|
|
|
"remote_bitrate_estimator_unittest_helper.h",
|
|
|
|
|
"remote_estimator_proxy_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":remote_bitrate_estimator",
|
2018-11-28 16:47:49 +01:00
|
|
|
"..:module_api_public",
|
2019-04-16 14:50:08 +02:00
|
|
|
"../../api/transport:field_trial_based_config",
|
2019-09-10 19:28:06 +02:00
|
|
|
"../../api/transport:mock_network_control",
|
2019-10-10 16:43:46 +02:00
|
|
|
"../../api/transport:network_control",
|
2022-03-09 09:29:42 +01:00
|
|
|
"../../api/units:data_rate",
|
2022-06-09 12:45:36 +02:00
|
|
|
"../../api/units:data_size",
|
2022-06-13 10:04:43 +02:00
|
|
|
"../../api/units:time_delta",
|
|
|
|
|
"../../api/units:timestamp",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2022-04-14 12:41:26 +02:00
|
|
|
"../../rtc_base:random",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:field_trial",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../test:fileutils",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../pacing",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp:rtp_rtcp_format",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|