Refactor NACK bitrate allocation

Nack bitrate allocation should not be done on a per-rtp-module basis,
but rather shared bitrate pool per call. This CL moves allocation to the
pacer and cleans up a bunch if bitrate stats handling.

BUG=
R=danilchap@webrtc.org, stefan@webrtc.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/2061423003 .

Cr-Commit-Position: refs/heads/master@{#13416}
This commit is contained in:
Erik Språng
2016-07-08 18:15:14 +02:00
parent 108ecec51c
commit 5fc59e810b
40 changed files with 603 additions and 620 deletions

View File

@ -46,7 +46,7 @@ class StreamStatistician {
typedef std::map<uint32_t, StreamStatistician*> StatisticianMap;
class ReceiveStatistics : public Module {
class ReceiveStatistics {
public:
virtual ~ReceiveStatistics() {}
@ -89,8 +89,6 @@ class NullReceiveStatistics : public ReceiveStatistics {
size_t packet_length) override;
StatisticianMap GetActiveStatisticians() const override;
StreamStatistician* GetStatistician(uint32_t ssrc) const override;
int64_t TimeUntilNextProcess() override;
void Process() override;
void SetMaxReorderingThreshold(int max_reordering_threshold) override;
void RegisterRtcpStatisticsCallback(
RtcpStatisticsCallback* callback) override;