chromium/third_party/webrtc/common_video/bitrate_adjuster.cc

/*
 *  Copyright 2016 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 "common_video/include/bitrate_adjuster.h"

#include <algorithm>
#include <cmath>

#include "rtc_base/logging.h"
#include "rtc_base/time_utils.h"

namespace webrtc {

// Update bitrate at most once every second.
const uint32_t BitrateAdjuster::kBitrateUpdateIntervalMs =;

// Update bitrate at most once every 30 frames.
const uint32_t BitrateAdjuster::kBitrateUpdateFrameInterval =;

// 10 percent of original.
const float BitrateAdjuster::kBitrateTolerancePct =;

const float BitrateAdjuster::kBytesPerMsToBitsPerSecond =;

BitrateAdjuster::BitrateAdjuster(float min_adjusted_bitrate_pct,
                                 float max_adjusted_bitrate_pct)
    :{}

void BitrateAdjuster::SetTargetBitrateBps(uint32_t bitrate_bps) {}

uint32_t BitrateAdjuster::GetTargetBitrateBps() const {}

uint32_t BitrateAdjuster::GetAdjustedBitrateBps() const {}

absl::optional<uint32_t> BitrateAdjuster::GetEstimatedBitrateBps() {}

void BitrateAdjuster::Update(size_t frame_size) {}

bool BitrateAdjuster::IsWithinTolerance(uint32_t bitrate_bps,
                                        uint32_t target_bitrate_bps) {}

uint32_t BitrateAdjuster::GetMinAdjustedBitrateBps() const {}

uint32_t BitrateAdjuster::GetMaxAdjustedBitrateBps() const {}

// Only safe to call this after Update calls have stopped
void BitrateAdjuster::Reset() {}

void BitrateAdjuster::UpdateBitrate(uint32_t current_time_ms) {}

}  // namespace webrtc