Using unit classes in BitrateAllocationUpdate struct.
This prepares for moving BitrateAllocationUpdate to API. Bug: webrtc:9718 Change-Id: Ib2bcedb6b68fde33b6a2466f40829e86438aa973 Reviewed-on: https://webrtc-review.googlesource.com/c/111507 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25737}
This commit is contained in:
committed by
Commit Bot
parent
e4cccae299
commit
13e5903626
@ -19,6 +19,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "api/units/data_rate.h"
|
||||
#include "api/units/time_delta.h"
|
||||
#include "rtc_base/bitrateallocationstrategy.h"
|
||||
#include "rtc_base/sequenced_task_checker.h"
|
||||
|
||||
@ -27,12 +29,11 @@ namespace webrtc {
|
||||
class Clock;
|
||||
|
||||
struct BitrateAllocationUpdate {
|
||||
// TODO(srte): Rename to target_bitrate.
|
||||
uint32_t bitrate_bps;
|
||||
uint32_t link_capacity_bps;
|
||||
uint8_t fraction_loss;
|
||||
int64_t rtt;
|
||||
int64_t bwe_period_ms;
|
||||
DataRate target_bitrate = DataRate::Zero();
|
||||
DataRate link_capacity = DataRate::Zero();
|
||||
double packet_loss_ratio = 0;
|
||||
TimeDelta round_trip_time = TimeDelta::PlusInfinity();
|
||||
TimeDelta bwe_period = TimeDelta::PlusInfinity();
|
||||
};
|
||||
// Used by all send streams with adaptive bitrate, to get the currently
|
||||
// allocated bitrate for the send stream. The current network properties are
|
||||
|
||||
Reference in New Issue
Block a user