blob: 98e63b52023e0b05130d1b705d47b062b45326ff [file]
/*
* 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.
*/
#include "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 "modules/video_coding/rate_control/buffer_level_rate_controller.h"
namespace webrtc {
BufferLevelRateControllerFactory::BufferLevelRateControllerFactory(
const BufferLevelRateControllerConfig& config)
: config_(config) {}
absl_nonnull std::unique_ptr<VideoRateController>
BufferLevelRateControllerFactory::CreateRateController() const {
return std::make_unique<BufferLevelRateController>(config_);
}
} // namespace webrtc