#include "video/adaptation/encode_usage_resource.h"
#include <limits>
#include <utility>
#include "rtc_base/checks.h"
namespace webrtc {
rtc::scoped_refptr<EncodeUsageResource> EncodeUsageResource::Create(
std::unique_ptr<OveruseFrameDetector> overuse_detector) { … }
EncodeUsageResource::EncodeUsageResource(
std::unique_ptr<OveruseFrameDetector> overuse_detector)
: … { … }
EncodeUsageResource::~EncodeUsageResource() { … }
bool EncodeUsageResource::is_started() const { … }
void EncodeUsageResource::StartCheckForOveruse(CpuOveruseOptions options) { … }
void EncodeUsageResource::StopCheckForOveruse() { … }
void EncodeUsageResource::SetTargetFrameRate(
absl::optional<double> target_frame_rate) { … }
void EncodeUsageResource::OnEncodeStarted(const VideoFrame& cropped_frame,
int64_t time_when_first_seen_us) { … }
void EncodeUsageResource::OnEncodeCompleted(
uint32_t timestamp,
int64_t time_sent_in_us,
int64_t capture_time_us,
absl::optional<int> encode_duration_us) { … }
void EncodeUsageResource::AdaptUp() { … }
void EncodeUsageResource::AdaptDown() { … }
int EncodeUsageResource::TargetFrameRateAsInt() { … }
}