| # Copyright (c) 2026 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("scene_analyzer") { | |
| visibility = [ ":*" ] | |
| sources = [ | |
| "scene_analyzer.cc", | |
| "scene_analyzer.h", | |
| ] | |
| deps = [ | |
| "../../../api:scoped_refptr", | |
| "../../../api/video:video_frame", | |
| "../../../rtc_base:checks", | |
| "//third_party/libyuv", | |
| ] | |
| } | |
| rtc_library("buffer_level_rate_controller") { | |
| sources = [ | |
| "buffer_level_rate_controller.cc", | |
| "buffer_level_rate_controller.h", | |
| ] | |
| deps = [ | |
| ":scene_analyzer", | |
| "../../../api:media_stream_interface", | |
| "../../../api:sequence_checker", | |
| "../../../api/units:data_rate", | |
| "../../../api/units:data_size", | |
| "../../../api/units:frequency", | |
| "../../../api/units:time_delta", | |
| "../../../api/units:timestamp", | |
| "../../../api/video:resolution", | |
| "../../../api/video:video_frame", | |
| "../../../api/video_codecs:buffer_level_rate_controller_config", | |
| "../../../api/video_codecs:video_encoder_interface", | |
| "../../../api/video_codecs:video_rate_controller", | |
| "../../../rtc_base:checks", | |
| "../../../rtc_base:macromagic", | |
| "../../../rtc_base/system:no_unique_address", | |
| "//third_party/abseil-cpp/absl/base:nullability", | |
| "//third_party/abseil-cpp/absl/container:inlined_vector", | |
| ] | |
| } | |
| if (rtc_include_tests) { | |
| rtc_cc_test("buffer_level_rate_controller_unittest") { | |
| sources = [ "buffer_level_rate_controller_unittest.cc" ] | |
| deps = [ | |
| ":buffer_level_rate_controller", | |
| "../../../api:media_stream_interface", | |
| "../../../api:scoped_refptr", | |
| "../../../api/units:data_rate", | |
| "../../../api/units:data_size", | |
| "../../../api/units:time_delta", | |
| "../../../api/units:timestamp", | |
| "../../../api/video:resolution", | |
| "../../../api/video:video_frame", | |
| "../../../api/video_codecs:buffer_level_rate_controller_config", | |
| "../../../api/video_codecs:buffer_level_rate_controller_factory", | |
| "../../../api/video_codecs:video_encoder_interface", | |
| "../../../api/video_codecs:video_rate_controller", | |
| "../../../rtc_base:checks", | |
| "../../../test:test_support", | |
| "//third_party/abseil-cpp/absl/container:inlined_vector", | |
| ] | |
| } | |
| rtc_cc_test("scene_analyzer_unittest") { | |
| sources = [ "scene_analyzer_unittest.cc" ] | |
| deps = [ | |
| ":scene_analyzer", | |
| "../../../api:create_frame_generator", | |
| "../../../api:frame_generator_api", | |
| "../../../api:make_ref_counted", | |
| "../../../api:scoped_refptr", | |
| "../../../api/video:video_frame", | |
| "../../../rtc_base:timeutils", | |
| "../../../test:fileutils", | |
| "../../../test:test_support", | |
| ] | |
| data_deps = [ "../../../resources:video_coding_tests_data" ] | |
| if (is_ios) { | |
| deps += [ "../../../resources:video_coding_tests_bundle_data" ] | |
| } | |
| } | |
| } |