Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 1 | # Copyright (c) 2020 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. |
| 8 | |
| 9 | import("../../webrtc.gni") |
| 10 | |
| 11 | rtc_library("video_adaptation") { |
| 12 | sources = [ |
Evan Shrubsole | 00ea628 | 2020-08-13 11:46:06 | [diff] [blame] | 13 | "balanced_constraint.cc", |
| 14 | "balanced_constraint.h", |
Shuhai Peng | f270770 | 2021-09-29 09:19:44 | [diff] [blame] | 15 | "bandwidth_quality_scaler_resource.cc", |
| 16 | "bandwidth_quality_scaler_resource.h", |
Evan Shrubsole | 00ea628 | 2020-08-13 11:46:06 | [diff] [blame] | 17 | "bitrate_constraint.cc", |
| 18 | "bitrate_constraint.h", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 19 | "encode_usage_resource.cc", |
| 20 | "encode_usage_resource.h", |
| 21 | "overuse_frame_detector.cc", |
| 22 | "overuse_frame_detector.h", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 23 | "pixel_limit_resource.cc", |
| 24 | "pixel_limit_resource.h", |
Evan Shrubsole | f88dd4d | 2020-06-16 09:38:50 | [diff] [blame] | 25 | "quality_rampup_experiment_helper.cc", |
| 26 | "quality_rampup_experiment_helper.h", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 27 | "quality_scaler_resource.cc", |
| 28 | "quality_scaler_resource.h", |
Henrik Boström | 5cc28b0 | 2020-06-01 15:59:05 | [diff] [blame] | 29 | "video_stream_encoder_resource.cc", |
| 30 | "video_stream_encoder_resource.h", |
Henrik Boström | de8d551 | 2020-04-17 15:15:26 | [diff] [blame] | 31 | "video_stream_encoder_resource_manager.cc", |
| 32 | "video_stream_encoder_resource_manager.h", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 33 | ] |
| 34 | |
| 35 | deps = [ |
Jonas Oreland | e62c2f2 | 2022-03-29 09:04:48 | [diff] [blame] | 36 | "../../api:field_trials_view", |
Henrik Boström | b0f2e0c | 2020-03-06 12:32:03 | [diff] [blame] | 37 | "../../api:rtp_parameters", |
Henrik Boström | c55516d | 2020-05-11 14:29:22 | [diff] [blame] | 38 | "../../api:scoped_refptr", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 39 | "../../api:sequence_checker", |
Henrik Boström | e2e8c17 | 2020-06-03 07:24:06 | [diff] [blame] | 40 | "../../api/adaptation:resource_adaptation_api", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 41 | "../../api/task_queue:task_queue", |
Evan Shrubsole | 2c9d76a | 2020-06-16 14:07:02 | [diff] [blame] | 42 | "../../api/units:data_rate", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 43 | "../../api/units:time_delta", |
Evan Shrubsole | c70b102 | 2020-04-06 09:23:06 | [diff] [blame] | 44 | "../../api/video:video_adaptation", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 45 | "../../api/video:video_frame", |
Henrik Boström | b0f2e0c | 2020-03-06 12:32:03 | [diff] [blame] | 46 | "../../api/video:video_stream_encoder", |
| 47 | "../../api/video_codecs:video_codecs_api", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 48 | "../../call/adaptation:resource_adaptation", |
Henrik Boström | b0f2e0c | 2020-03-06 12:32:03 | [diff] [blame] | 49 | "../../modules/video_coding:video_coding_utility", |
Asa Persson | 2ee3e4d | 2022-05-20 12:22:27 | [diff] [blame] | 50 | "../../modules/video_coding/svc:scalability_mode_util", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 51 | "../../rtc_base:checks", |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 52 | "../../rtc_base:event_tracer", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 53 | "../../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 54 | "../../rtc_base:macromagic", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 55 | "../../rtc_base:refcount", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 56 | "../../rtc_base:rtc_event", |
| 57 | "../../rtc_base:rtc_numerics", |
Florent Castelli | e10a9f6 | 2022-04-04 15:04:37 | [diff] [blame] | 58 | "../../rtc_base:safe_conversions", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 59 | "../../rtc_base:stringutils", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 60 | "../../rtc_base:timeutils", |
Henrik Boström | b0f2e0c | 2020-03-06 12:32:03 | [diff] [blame] | 61 | "../../rtc_base/experiments:balanced_degradation_settings", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 62 | "../../rtc_base/experiments:field_trial_parser", |
| 63 | "../../rtc_base/experiments:quality_rampup_experiment", |
| 64 | "../../rtc_base/experiments:quality_scaler_settings", |
Markus Handell | 9bbff07 | 2020-07-07 12:23:18 | [diff] [blame] | 65 | "../../rtc_base/synchronization:mutex", |
Mirko Bonadei | 20e4c80 | 2020-11-23 10:07:42 | [diff] [blame] | 66 | "../../rtc_base/system:no_unique_address", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 67 | "../../rtc_base/task_utils:repeating_task", |
| 68 | "../../system_wrappers:field_trial", |
| 69 | "../../system_wrappers:system_wrappers", |
Jonas Oreland | 6c2dae2 | 2022-09-29 08:28:24 | [diff] [blame] | 70 | "../../video:video_stream_encoder_interface", |
| 71 | "../../video/config:encoder_config", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 72 | ] |
| 73 | absl_deps = [ |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 74 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 75 | "//third_party/abseil-cpp/absl/base:core_headers", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 76 | "//third_party/abseil-cpp/absl/types:optional", |
| 77 | ] |
| 78 | } |
| 79 | |
| 80 | if (rtc_include_tests) { |
| 81 | rtc_library("video_adaptation_tests") { |
| 82 | testonly = true |
| 83 | |
| 84 | defines = [] |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 85 | sources = [ |
Sergey Silkin | 8c007ff | 2021-01-22 17:59:59 | [diff] [blame] | 86 | "bitrate_constraint_unittest.cc", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 87 | "overuse_frame_detector_unittest.cc", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 88 | "pixel_limit_resource_unittest.cc", |
Henrik Boström | 9438ddc | 2020-05-11 14:32:41 | [diff] [blame] | 89 | "quality_scaler_resource_unittest.cc", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 90 | ] |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 91 | deps = [ |
| 92 | ":video_adaptation", |
Markus Handell | 8e4197b | 2022-05-30 13:45:28 | [diff] [blame] | 93 | "../../api:field_trials_view", |
Henrik Boström | c55516d | 2020-05-11 14:29:22 | [diff] [blame] | 94 | "../../api:scoped_refptr", |
Henrik Boström | 9438ddc | 2020-05-11 14:32:41 | [diff] [blame] | 95 | "../../api/task_queue:task_queue", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 96 | "../../api/units:time_delta", |
| 97 | "../../api/units:timestamp", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 98 | "../../api/video:encoded_image", |
Evan Shrubsole | c70b102 | 2020-04-06 09:23:06 | [diff] [blame] | 99 | "../../api/video:video_adaptation", |
Ilya Nikolaevskiy | 38e9b06 | 2020-10-08 14:36:33 | [diff] [blame] | 100 | "../../api/video:video_frame", |
Asa Persson | 2ee3e4d | 2022-05-20 12:22:27 | [diff] [blame] | 101 | "../../api/video_codecs:scalability_mode", |
Henrik Boström | 4c07605 | 2020-03-18 09:09:59 | [diff] [blame] | 102 | "../../api/video_codecs:video_codecs_api", |
| 103 | "../../call/adaptation:resource_adaptation", |
Evan Shrubsole | a1c77f6 | 2020-08-10 09:01:06 | [diff] [blame] | 104 | "../../call/adaptation:resource_adaptation_test_utilities", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 105 | "../../modules/video_coding:video_coding_utility", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 106 | "../../rtc_base:checks", |
| 107 | "../../rtc_base:logging", |
Florent Castelli | 71337f3 | 2022-04-14 10:41:26 | [diff] [blame] | 108 | "../../rtc_base:random", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 109 | "../../rtc_base:rtc_base_tests_utils", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 110 | "../../rtc_base:rtc_event", |
| 111 | "../../rtc_base:rtc_numerics", |
Henrik Boström | 6205762 | 2020-03-10 18:08:05 | [diff] [blame] | 112 | "../../rtc_base:task_queue_for_test", |
Niels Möller | 83830f3 | 2022-05-20 07:12:57 | [diff] [blame] | 113 | "../../rtc_base:threading", |
Henrik Boström | 4c07605 | 2020-03-18 09:09:59 | [diff] [blame] | 114 | "../../test:field_trial", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 115 | "../../test:rtc_expect_death", |
Markus Handell | 8e4197b | 2022-05-30 13:45:28 | [diff] [blame] | 116 | "../../test:scoped_key_value_config", |
Henrik Boström | ad70609 | 2020-12-04 08:37:47 | [diff] [blame] | 117 | "../../test:test_support", |
| 118 | "../../test/time_controller:time_controller", |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 119 | ] |
Danil Chapovalov | 95eeaa7 | 2022-07-06 08:14:29 | [diff] [blame] | 120 | absl_deps = [ |
| 121 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
| 122 | "//third_party/abseil-cpp/absl/types:optional", |
| 123 | ] |
Henrik Boström | efbec9a | 2020-03-06 09:41:25 | [diff] [blame] | 124 | } |
| 125 | } |