Moving the pacer and the pacer thread to ChannelGroup.
This means all channels within the same group will share the same pacing queue and scheduler. It also means padding will be computed and sent by a single pacer. To accomplish this I also introduce a PacketRouter which finds the RTP module which owns the packet to be paced out. BUG=4323 R=mflodman@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/45549004 Cr-Commit-Position: refs/heads/master@{#8864}
This commit is contained in:
@ -24,7 +24,7 @@ class SendSideBandwidthEstimation {
|
||||
SendSideBandwidthEstimation();
|
||||
virtual ~SendSideBandwidthEstimation();
|
||||
|
||||
void CurrentEstimate(uint32_t* bitrate, uint8_t* loss, int64_t* rtt) const;
|
||||
void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const;
|
||||
|
||||
// Call periodically to update estimate.
|
||||
void UpdateEstimate(int64_t now_ms);
|
||||
@ -38,9 +38,9 @@ class SendSideBandwidthEstimation {
|
||||
int number_of_packets,
|
||||
int64_t now_ms);
|
||||
|
||||
void SetSendBitrate(uint32_t bitrate);
|
||||
void SetMinMaxBitrate(uint32_t min_bitrate, uint32_t max_bitrate);
|
||||
uint32_t GetMinBitrate() const;
|
||||
void SetSendBitrate(int bitrate);
|
||||
void SetMinMaxBitrate(int min_bitrate, int max_bitrate);
|
||||
int GetMinBitrate() const;
|
||||
|
||||
private:
|
||||
enum UmaState { kNoUpdate, kFirstDone, kDone };
|
||||
|
||||
Reference in New Issue
Block a user