Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
C++
Raw Normal View History

/*
* Copyright (c) 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 "modules/remote_bitrate_estimator/include/bwe_defines.h"
#include "system_wrappers/include/field_trial.h"
namespace webrtc {
const char kBweTypeHistogram[] = "WebRTC.BWE.Types";
namespace congestion_controller {
int GetMinBitrateBps() {
constexpr int kMinBitrateBps = 5000;
return kMinBitrateBps;
}
Reland "Reland "Using units in SendSideBandwidthEstimation."" This reverts commit a4de9c8b04ce9f7b1c4be639edd6cc4d3a9f07a1. Reason for revert: <INSERT REASONING HERE> Original change's description: > Revert "Reland "Using units in SendSideBandwidthEstimation."" > > This reverts commit e2cb26cb4fa2a3ce7c12636225ba9c720d7c7e56. > > Reason for revert: <INSERT REASONING HERE> > > Original change's description: > > Reland "Using units in SendSideBandwidthEstimation." > > > > This reverts commit 917e5967a597fa8d6e6cae9ffccb21e3d35d553b. > > > > Reason for revert: Handling downstream use case. > > > > Original change's description: > > > Revert "Using units in SendSideBandwidthEstimation." > > > > > > This reverts commit 35b5e5f3b0dc409bf571b3609860ad5bb8e00c29. > > > > > > Reason for revert: Breaks downstream project > > > > > > Original change's description: > > > > Using units in SendSideBandwidthEstimation. > > > > > > > > This CL moves SendSideBandwidthEstimation to use the unit types > > > > DataRate, TimeDelta and Timestamp. This prepares for upcoming changes. > > > > > > > > Bug: webrtc:9718 > > > > Change-Id: If10e329920dda037b53055ff3352ae7f8d7e32b8 > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/104021 > > > > Commit-Queue: Sebastian Jansson <srte@webrtc.org> > > > > Reviewed-by: Björn Terelius <terelius@webrtc.org> > > > > Cr-Commit-Position: refs/heads/master@{#25029} > > > > > > TBR=terelius@webrtc.org,srte@webrtc.org > > > > > > No-Try: True > > > Bug: webrtc:9718 > > > Change-Id: Iaf470f1eec9911ee6fc7c1b4f5db9675d89d3780 > > > Reviewed-on: https://webrtc-review.googlesource.com/c/104480 > > > Commit-Queue: Oleh Prypin <oprypin@webrtc.org> > > > Reviewed-by: Oleh Prypin <oprypin@webrtc.org> > > > Cr-Commit-Position: refs/heads/master@{#25035} > > > > TBR=oprypin@webrtc.org,terelius@webrtc.org,srte@webrtc.org > > > > Change-Id: I0940791fcd1e196598b0f0a2ec779c49931ee5df > > No-Presubmit: true > > No-Tree-Checks: true > > No-Try: true > > Bug: webrtc:9718 > > Reviewed-on: https://webrtc-review.googlesource.com/c/104520 > > Reviewed-by: Sebastian Jansson <srte@webrtc.org> > > Commit-Queue: Sebastian Jansson <srte@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#25036} > > TBR=oprypin@webrtc.org,terelius@webrtc.org,srte@webrtc.org > > Change-Id: I6628771c79fc78dfd856649ae92232e95df63495 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: webrtc:9718 > Reviewed-on: https://webrtc-review.googlesource.com/c/104540 > Reviewed-by: Sebastian Jansson <srte@webrtc.org> > Commit-Queue: Sebastian Jansson <srte@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#25037} TBR=oprypin@webrtc.org,terelius@webrtc.org,srte@webrtc.org Change-Id: If5473859cea725420afce11b6683fa0c70a29b0a No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:9718 Reviewed-on: https://webrtc-review.googlesource.com/c/104501 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25039}
2018-10-08 11:00:50 +02:00
DataRate GetMinBitrate() {
return DataRate::bps(GetMinBitrateBps());
}
} // namespace congestion_controller
RateControlInput::RateControlInput(
BandwidthUsage bw_state,
const absl::optional<DataRate>& estimated_throughput)
: bw_state(bw_state), estimated_throughput(estimated_throughput) {}
RateControlInput::~RateControlInput() = default;
} // namespace webrtc