1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Workerrtc_library("video_adaptation") { 12*d9f75844SAndroid Build Coastguard Worker sources = [ 13*d9f75844SAndroid Build Coastguard Worker "balanced_constraint.cc", 14*d9f75844SAndroid Build Coastguard Worker "balanced_constraint.h", 15*d9f75844SAndroid Build Coastguard Worker "bandwidth_quality_scaler_resource.cc", 16*d9f75844SAndroid Build Coastguard Worker "bandwidth_quality_scaler_resource.h", 17*d9f75844SAndroid Build Coastguard Worker "bitrate_constraint.cc", 18*d9f75844SAndroid Build Coastguard Worker "bitrate_constraint.h", 19*d9f75844SAndroid Build Coastguard Worker "encode_usage_resource.cc", 20*d9f75844SAndroid Build Coastguard Worker "encode_usage_resource.h", 21*d9f75844SAndroid Build Coastguard Worker "overuse_frame_detector.cc", 22*d9f75844SAndroid Build Coastguard Worker "overuse_frame_detector.h", 23*d9f75844SAndroid Build Coastguard Worker "pixel_limit_resource.cc", 24*d9f75844SAndroid Build Coastguard Worker "pixel_limit_resource.h", 25*d9f75844SAndroid Build Coastguard Worker "quality_rampup_experiment_helper.cc", 26*d9f75844SAndroid Build Coastguard Worker "quality_rampup_experiment_helper.h", 27*d9f75844SAndroid Build Coastguard Worker "quality_scaler_resource.cc", 28*d9f75844SAndroid Build Coastguard Worker "quality_scaler_resource.h", 29*d9f75844SAndroid Build Coastguard Worker "video_stream_encoder_resource.cc", 30*d9f75844SAndroid Build Coastguard Worker "video_stream_encoder_resource.h", 31*d9f75844SAndroid Build Coastguard Worker "video_stream_encoder_resource_manager.cc", 32*d9f75844SAndroid Build Coastguard Worker "video_stream_encoder_resource_manager.h", 33*d9f75844SAndroid Build Coastguard Worker ] 34*d9f75844SAndroid Build Coastguard Worker 35*d9f75844SAndroid Build Coastguard Worker deps = [ 36*d9f75844SAndroid Build Coastguard Worker "../../api:field_trials_view", 37*d9f75844SAndroid Build Coastguard Worker "../../api:rtp_parameters", 38*d9f75844SAndroid Build Coastguard Worker "../../api:scoped_refptr", 39*d9f75844SAndroid Build Coastguard Worker "../../api:sequence_checker", 40*d9f75844SAndroid Build Coastguard Worker "../../api/adaptation:resource_adaptation_api", 41*d9f75844SAndroid Build Coastguard Worker "../../api/task_queue:task_queue", 42*d9f75844SAndroid Build Coastguard Worker "../../api/units:data_rate", 43*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 44*d9f75844SAndroid Build Coastguard Worker "../../api/video:video_adaptation", 45*d9f75844SAndroid Build Coastguard Worker "../../api/video:video_frame", 46*d9f75844SAndroid Build Coastguard Worker "../../api/video:video_stream_encoder", 47*d9f75844SAndroid Build Coastguard Worker "../../api/video_codecs:video_codecs_api", 48*d9f75844SAndroid Build Coastguard Worker "../../call/adaptation:resource_adaptation", 49*d9f75844SAndroid Build Coastguard Worker "../../modules/video_coding:video_coding_utility", 50*d9f75844SAndroid Build Coastguard Worker "../../modules/video_coding/svc:scalability_mode_util", 51*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:checks", 52*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:event_tracer", 53*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:logging", 54*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:macromagic", 55*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:refcount", 56*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_event", 57*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_numerics", 58*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:safe_conversions", 59*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:stringutils", 60*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:timeutils", 61*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/experiments:balanced_degradation_settings", 62*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/experiments:field_trial_parser", 63*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/experiments:quality_rampup_experiment", 64*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/experiments:quality_scaler_settings", 65*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/synchronization:mutex", 66*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/system:no_unique_address", 67*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/task_utils:repeating_task", 68*d9f75844SAndroid Build Coastguard Worker "../../system_wrappers:field_trial", 69*d9f75844SAndroid Build Coastguard Worker "../../system_wrappers:system_wrappers", 70*d9f75844SAndroid Build Coastguard Worker "../../video:video_stream_encoder_interface", 71*d9f75844SAndroid Build Coastguard Worker "../../video/config:encoder_config", 72*d9f75844SAndroid Build Coastguard Worker ] 73*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 74*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/algorithm:container", 75*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/base:core_headers", 76*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 77*d9f75844SAndroid Build Coastguard Worker ] 78*d9f75844SAndroid Build Coastguard Worker} 79*d9f75844SAndroid Build Coastguard Worker 80*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 81*d9f75844SAndroid Build Coastguard Worker rtc_library("video_adaptation_tests") { 82*d9f75844SAndroid Build Coastguard Worker testonly = true 83*d9f75844SAndroid Build Coastguard Worker 84*d9f75844SAndroid Build Coastguard Worker defines = [] 85*d9f75844SAndroid Build Coastguard Worker sources = [ 86*d9f75844SAndroid Build Coastguard Worker "bitrate_constraint_unittest.cc", 87*d9f75844SAndroid Build Coastguard Worker "overuse_frame_detector_unittest.cc", 88*d9f75844SAndroid Build Coastguard Worker "pixel_limit_resource_unittest.cc", 89*d9f75844SAndroid Build Coastguard Worker "quality_scaler_resource_unittest.cc", 90*d9f75844SAndroid Build Coastguard Worker ] 91*d9f75844SAndroid Build Coastguard Worker deps = [ 92*d9f75844SAndroid Build Coastguard Worker ":video_adaptation", 93*d9f75844SAndroid Build Coastguard Worker "../../api:field_trials_view", 94*d9f75844SAndroid Build Coastguard Worker "../../api:scoped_refptr", 95*d9f75844SAndroid Build Coastguard Worker "../../api/task_queue:task_queue", 96*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 97*d9f75844SAndroid Build Coastguard Worker "../../api/units:timestamp", 98*d9f75844SAndroid Build Coastguard Worker "../../api/video:encoded_image", 99*d9f75844SAndroid Build Coastguard Worker "../../api/video:video_adaptation", 100*d9f75844SAndroid Build Coastguard Worker "../../api/video:video_frame", 101*d9f75844SAndroid Build Coastguard Worker "../../api/video_codecs:scalability_mode", 102*d9f75844SAndroid Build Coastguard Worker "../../api/video_codecs:video_codecs_api", 103*d9f75844SAndroid Build Coastguard Worker "../../call/adaptation:resource_adaptation", 104*d9f75844SAndroid Build Coastguard Worker "../../call/adaptation:resource_adaptation_test_utilities", 105*d9f75844SAndroid Build Coastguard Worker "../../modules/video_coding:video_coding_utility", 106*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:checks", 107*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:logging", 108*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:random", 109*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_base_tests_utils", 110*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_event", 111*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_numerics", 112*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:task_queue_for_test", 113*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:threading", 114*d9f75844SAndroid Build Coastguard Worker "../../test:field_trial", 115*d9f75844SAndroid Build Coastguard Worker "../../test:rtc_expect_death", 116*d9f75844SAndroid Build Coastguard Worker "../../test:scoped_key_value_config", 117*d9f75844SAndroid Build Coastguard Worker "../../test:test_support", 118*d9f75844SAndroid Build Coastguard Worker "../../test/time_controller:time_controller", 119*d9f75844SAndroid Build Coastguard Worker ] 120*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 121*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/functional:any_invocable", 122*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 123*d9f75844SAndroid Build Coastguard Worker ] 124*d9f75844SAndroid Build Coastguard Worker } 125*d9f75844SAndroid Build Coastguard Worker} 126