| /* | |
| * 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. | |
| */ | |
| #ifndef API_VIDEO_CODECS_BUFFER_LEVEL_RATE_CONTROLLER_FACTORY_H_ | |
| #define API_VIDEO_CODECS_BUFFER_LEVEL_RATE_CONTROLLER_FACTORY_H_ | |
| #include <memory> | |
| #include "absl/base/nullability.h" | |
| #include "api/video_codecs/buffer_level_rate_controller_config.h" | |
| #include "api/video_codecs/video_rate_controller.h" | |
| #include "rtc_base/system/rtc_export.h" | |
| namespace webrtc { | |
| // NOTE: This interface is for prototyping purposes only and may change without | |
| // prior notice. | |
| class RTC_EXPORT BufferLevelRateControllerFactory final | |
| : public VideoRateControllerFactory { | |
| public: | |
| explicit BufferLevelRateControllerFactory( | |
| const BufferLevelRateControllerConfig& config = {}); | |
| ~BufferLevelRateControllerFactory() override = default; | |
| [[nodiscard]] absl_nonnull std::unique_ptr<VideoRateController> | |
| CreateRateController() const override; | |
| private: | |
| const BufferLevelRateControllerConfig config_; | |
| }; | |
| } // namespace webrtc | |
| #endif // API_VIDEO_CODECS_BUFFER_LEVEL_RATE_CONTROLLER_FACTORY_H_ |