DescriptionThis cl:
1. It moves calculation of the needed padding to VideoSendStream instead of ViEEncoder and only does it once per send Stream instead of every time the network estimate changes.
2. The maximum amount of padding sent was prior to this cl calculated and updated based on network estimate changes. However, it can only change based on encoder configuration changes and if send streams are added or removed. This cl change the VideoSendStream/VieEncoder to notify the BitrateAllocator of changes to the needed padding bitrate and for BitrateAllocator to notify Call of these changes.
3. Fixed an issue in the SendPacer where it could send a padding packet before sending a real packet. This caused the test EndToEndTest.RestartingSendStreamPreservesRtpStatesWithRtx to fail with these refactorings since the pacer suddenly could send a padding packet before the encoder had produced its first frame.
BUG=webrtc:5687
Committed: https://crrev.com/71ee44cc6d3049763da69e8e42a08d4b796b97db
Cr-Commit-Position: refs/heads/master@{#13149}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : More work. Seems to work now. #Patch Set 4 : Self review #
Total comments: 1
Patch Set 5 : Rebased #Patch Set 6 : Rebased #Patch Set 7 : Fixed unitialized memory. #
Total comments: 30
Patch Set 8 : Addressed review comments. #Patch Set 9 : #
Total comments: 16
Patch Set 10 : Rebased #Patch Set 11 : Addressed review comments. #
Created: 4 years, 6 months ago
Dependent Patchsets: Messages
Total messages: 31 (14 generated)
|