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") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
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",
|
|
|
|
|
"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 = [
|
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",
|
2019-04-16 14:50:08 +02:00
|
|
|
"../../api/transport:webrtc_key_value_config",
|
2018-10-08 11:00:50 +02:00
|
|
|
"../../api/units:data_rate",
|
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",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-04-02 15:54:22 +02:00
|
|
|
"../../rtc_base:rtc_numerics",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../rtc_base:safe_minmax",
|
2019-03-27 16:18:39 +01:00
|
|
|
"../../rtc_base/experiments:field_trial_parser",
|
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",
|
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 = [
|
|
|
|
|
":remote_bitrate_estimator",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../test:rtp_test_utils",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../rtp_rtcp",
|
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
|
|
|
|
|
sources = [
|
|
|
|
|
"tools/rtp_to_text.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":bwe_rtp",
|
|
|
|
|
"../../modules/rtp_rtcp",
|
|
|
|
|
"../../rtc_base:macromagic",
|
|
|
|
|
"../../rtc_base:stringutils",
|
|
|
|
|
"../../test:rtp_test_utils",
|
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",
|
|
|
|
|
"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",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../..:webrtc_common",
|
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",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
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
|
|
|
}
|