chromium/third_party/webrtc/video/adaptation/encode_usage_resource.cc

/*
 *  Copyright 2020 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 "video/adaptation/encode_usage_resource.h"

#include <limits>
#include <utility>

#include "rtc_base/checks.h"

namespace webrtc {

// static
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() {}

}  // namespace webrtc