#include "h264_ratectrl_rtc.h"
#include "base/logging.h"
#include "media/gpu/h264_rate_control_util.h"
namespace media {
namespace {
void CheckRateControlConfig(const H264RateControlConfigRTC& config) { … }
std::string CreateRateControlConfigLogMessage(
const H264RateControlConfigRTC& config) { … }
}
H264RateCtrlRTC::H264RateCtrlRTC(const H264RateControlConfigRTC& config)
: … { … }
H264RateCtrlRTC::~H264RateCtrlRTC() = default;
std::unique_ptr<H264RateCtrlRTC> H264RateCtrlRTC::Create(
const H264RateControlConfigRTC& config) { … }
void H264RateCtrlRTC::UpdateRateControl(
const H264RateControlConfigRTC& config) { … }
H264RateCtrlRTC::FrameDropDecision H264RateCtrlRTC::ComputeQP(
const H264FrameParamsRTC& frame_params) { … }
int H264RateCtrlRTC::GetQP() { … }
int H264RateCtrlRTC::GetLoopfilterLevel() const { … }
void H264RateCtrlRTC::PostEncodeUpdate(uint64_t encoded_frame_size,
const H264FrameParamsRTC& frame_params) { … }
void H264RateCtrlRTC::GetBufferFullness(base::span<int> buffer_fullness,
base::TimeDelta timestamp) { … }
}