webrtc_m130/modules/bitrate_controller/send_side_bandwidth_estimation.h

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

175 lines
6.0 KiB
C
Raw Normal View History

/*
* Copyright (c) 2012 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.
*
* FEC and NACK added bitrate is handled outside class
*/
#ifndef MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_
#define MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_
#include <stdint.h>
#include <deque>
#include <utility>
#include <vector>
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
#include "absl/types/optional.h"
#include "api/transport/network_types.h"
#include "api/units/data_rate.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
#include "modules/bitrate_controller/loss_based_bandwidth_estimation.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "rtc_base/experiments/field_trial_parser.h"
namespace webrtc {
class RtcEventLog;
class LinkCapacityTracker {
public:
LinkCapacityTracker();
~LinkCapacityTracker();
void OnOveruse(DataRate acknowledged_rate, Timestamp at_time);
void OnStartingRate(DataRate start_rate);
void OnRateUpdate(DataRate acknowledged, Timestamp at_time);
void OnRttBackoff(DataRate backoff_rate, Timestamp at_time);
DataRate estimate() const;
private:
FieldTrialParameter<TimeDelta> tracking_rate;
double capacity_estimate_bps_ = 0;
Timestamp last_link_capacity_update_ = Timestamp::MinusInfinity();
};
class RttBasedBackoff {
public:
RttBasedBackoff();
~RttBasedBackoff();
void OnRouteChange();
void UpdatePropagationRtt(Timestamp at_time, TimeDelta propagation_rtt);
TimeDelta CorrectedRtt(Timestamp at_time) const;
FieldTrialParameter<TimeDelta> rtt_limit_;
FieldTrialParameter<double> drop_fraction_;
FieldTrialParameter<TimeDelta> drop_interval_;
FieldTrialFlag persist_on_route_change_;
FieldTrialParameter<bool> safe_timeout_;
public:
Timestamp last_propagation_rtt_update_;
TimeDelta last_propagation_rtt_;
Timestamp last_packet_sent_;
};
class SendSideBandwidthEstimation {
public:
SendSideBandwidthEstimation() = delete;
explicit SendSideBandwidthEstimation(RtcEventLog* event_log);
~SendSideBandwidthEstimation();
void OnRouteChange();
void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const;
DataRate GetEstimatedLinkCapacity() const;
// Call periodically to update estimate.
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
void UpdateEstimate(Timestamp at_time);
void OnSentPacket(const SentPacket& sent_packet);
void UpdatePropagationRtt(Timestamp at_time, TimeDelta propagation_rtt);
// Call when we receive a RTCP message with TMMBR or REMB.
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
void UpdateReceiverEstimate(Timestamp at_time, DataRate bandwidth);
// Call when a new delay-based estimate is available.
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
void UpdateDelayBasedEstimate(Timestamp at_time, DataRate bitrate);
// Call when we receive a RTCP message with a ReceiveBlock.
void UpdateReceiverBlock(uint8_t fraction_loss,
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
TimeDelta rtt_ms,
int number_of_packets,
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
Timestamp at_time);
// Call when we receive a RTCP message with a ReceiveBlock.
void UpdatePacketsLost(int packets_lost,
int number_of_packets,
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
Timestamp at_time);
// Call when we receive a RTCP message with a ReceiveBlock.
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
void UpdateRtt(TimeDelta rtt, Timestamp at_time);
void SetBitrates(absl::optional<DataRate> send_bitrate,
DataRate min_bitrate,
DataRate max_bitrate,
Timestamp at_time);
void SetSendBitrate(DataRate bitrate, Timestamp at_time);
void SetMinMaxBitrate(DataRate min_bitrate, DataRate max_bitrate);
int GetMinBitrate() const;
void SetAcknowledgedRate(absl::optional<DataRate> acknowledged_rate,
Timestamp at_time);
void IncomingPacketFeedbackVector(const TransportPacketsFeedback& report);
private:
enum UmaState { kNoUpdate, kFirstDone, kDone };
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
bool IsInStartPhase(Timestamp at_time) const;
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
void UpdateUmaStatsPacketsLost(Timestamp at_time, int packets_lost);
// Updates history of min bitrates.
// After this method returns min_bitrate_history_.front().second contains the
// min bitrate used during last kBweIncreaseIntervalMs.
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
void UpdateMinHistory(Timestamp at_time);
DataRate MaybeRampupOrBackoff(DataRate new_bitrate, Timestamp at_time);
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
// Cap |bitrate| to [min_bitrate_configured_, max_bitrate_configured_] and
// set |current_bitrate_| to the capped value and updates the event log.
void CapBitrateToThresholds(Timestamp at_time, DataRate bitrate);
RttBasedBackoff rtt_backoff_;
LinkCapacityTracker link_capacity_;
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
std::deque<std::pair<Timestamp, DataRate> > min_bitrate_history_;
// incoming filters
int lost_packets_since_last_loss_update_;
int expected_packets_since_last_loss_update_;
absl::optional<DataRate> acknowledged_rate_;
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 current_bitrate_;
DataRate min_bitrate_configured_;
DataRate max_bitrate_configured_;
Timestamp last_low_bitrate_log_;
bool has_decreased_since_last_fraction_loss_;
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
Timestamp last_loss_feedback_;
Timestamp last_loss_packet_report_;
Timestamp last_timeout_;
uint8_t last_fraction_loss_;
uint8_t last_logged_fraction_loss_;
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
TimeDelta last_round_trip_time_;
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 bwe_incoming_;
DataRate delay_based_bitrate_;
Timestamp time_last_decrease_;
Timestamp first_report_time_;
int initially_lost_packets_;
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 bitrate_at_2_seconds_;
UmaState uma_update_state_;
UmaState uma_rtt_state_;
std::vector<bool> rampup_uma_stats_updated_;
RtcEventLog* event_log_;
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
Timestamp last_rtc_event_log_;
bool in_timeout_experiment_;
float low_loss_threshold_;
float high_loss_threshold_;
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 bitrate_threshold_;
LossBasedBandwidthEstimation loss_based_bandwidth_estimation_;
};
} // namespace webrtc
#endif // MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_