2019-12-10 14:14:09 +01:00
|
|
|
# Copyright (c) 2019 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")
|
|
|
|
|
|
|
|
|
|
rtc_library("resource_adaptation") {
|
|
|
|
|
sources = [
|
2020-03-06 13:32:03 +01:00
|
|
|
"encoder_settings.cc",
|
|
|
|
|
"encoder_settings.h",
|
2019-12-10 14:14:09 +01:00
|
|
|
"resource.cc",
|
|
|
|
|
"resource.h",
|
2020-04-17 18:36:19 +02:00
|
|
|
"resource_adaptation_processor.cc",
|
|
|
|
|
"resource_adaptation_processor.h",
|
2020-03-10 19:08:05 +01:00
|
|
|
"resource_adaptation_processor_interface.cc",
|
|
|
|
|
"resource_adaptation_processor_interface.h",
|
2020-01-13 11:27:18 +01:00
|
|
|
"video_source_restrictions.cc",
|
|
|
|
|
"video_source_restrictions.h",
|
2020-04-17 14:40:39 +02:00
|
|
|
"video_stream_adapter.cc",
|
|
|
|
|
"video_stream_adapter.h",
|
2020-04-17 12:10:59 +02:00
|
|
|
"video_stream_input_state.cc",
|
|
|
|
|
"video_stream_input_state.h",
|
|
|
|
|
"video_stream_input_state_provider.cc",
|
|
|
|
|
"video_stream_input_state_provider.h",
|
2019-12-10 14:14:09 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2020-01-16 13:55:29 +01:00
|
|
|
"../../api:rtp_parameters",
|
2020-05-11 16:29:22 +02:00
|
|
|
"../../api:scoped_refptr",
|
2020-04-17 14:40:39 +02:00
|
|
|
"../../api/video:video_adaptation",
|
2020-01-22 16:16:04 +01:00
|
|
|
"../../api/video:video_frame",
|
2020-04-17 12:10:59 +02:00
|
|
|
"../../api/video:video_stream_encoder",
|
2020-01-21 11:18:06 +01:00
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2020-04-17 14:40:39 +02:00
|
|
|
"../../modules/video_coding:video_coding_utility",
|
2019-12-10 14:14:09 +01:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2020-05-11 16:29:22 +02:00
|
|
|
"../../rtc_base:rtc_task_queue",
|
2020-04-17 14:40:39 +02:00
|
|
|
"../../rtc_base/experiments:balanced_degradation_settings",
|
2020-05-11 16:29:22 +02:00
|
|
|
"../../rtc_base/synchronization:sequence_checker",
|
2020-02-25 16:26:01 +01:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2019-12-10 14:14:09 +01:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_library("resource_adaptation_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
2020-04-17 14:40:39 +02:00
|
|
|
sources = [
|
2020-04-29 16:46:30 +02:00
|
|
|
"resource_adaptation_processor_unittest.cc",
|
2020-04-17 14:40:39 +02:00
|
|
|
"resource_unittest.cc",
|
2020-04-29 16:46:30 +02:00
|
|
|
"video_source_restrictions_unittest.cc",
|
2020-04-17 14:40:39 +02:00
|
|
|
"video_stream_adapter_unittest.cc",
|
2020-04-29 16:46:30 +02:00
|
|
|
"video_stream_input_state_provider_unittest.cc",
|
2020-04-17 14:40:39 +02:00
|
|
|
]
|
2019-12-10 14:14:09 +01:00
|
|
|
deps = [
|
|
|
|
|
":resource_adaptation",
|
|
|
|
|
":resource_adaptation_test_utilities",
|
2020-05-11 16:29:22 +02:00
|
|
|
"../../api:scoped_refptr",
|
2020-04-17 14:40:39 +02:00
|
|
|
"../../api/video:video_adaptation",
|
|
|
|
|
"../../api/video_codecs:video_codecs_api",
|
2019-12-10 14:14:09 +01:00
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2020-04-17 14:40:39 +02:00
|
|
|
"../../test:field_trial",
|
|
|
|
|
"../../test:rtc_expect_death",
|
2019-12-10 14:14:09 +01:00
|
|
|
"../../test:test_support",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("resource_adaptation_test_utilities") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
2020-04-29 16:46:30 +02:00
|
|
|
"test/fake_frame_rate_provider.cc",
|
|
|
|
|
"test/fake_frame_rate_provider.h",
|
2019-12-10 14:14:09 +01:00
|
|
|
"test/fake_resource.cc",
|
|
|
|
|
"test/fake_resource.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":resource_adaptation",
|
2020-04-29 16:46:30 +02:00
|
|
|
"../../api/video:video_stream_encoder",
|
2019-12-10 14:14:09 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2020-04-29 16:46:30 +02:00
|
|
|
"../../test:test_support",
|
2019-12-10 14:14:09 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|