mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 14:20:45 +01:00
![]() OnRatesUpdated() is called every time the bitrate estimate, or once per second. However, since we don't want to reconfigure libvpx too often, just in case it interferes with the rate controller, so ScreenshareLayers contains a boolean |bitrate_update_| which indicate if the configuration should be updated on a call to UpdateConfiguration(). However, it two rate updates happened between two frames, the first of which changes the rates and second one does not, |bitrate_update_| will be reset to false and the encoder won't get the desired config. This CL makes sure we update the configuration iff the rate has changed at any time since the last call to UpdateConfiguration(). Bug: webrtc:9012 Change-Id: I62af36cffe20ecb7d3f403b3eb11f23a9692d719 Reviewed-on: https://webrtc-review.googlesource.com/69040 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22826} |
||
---|---|---|
.. | ||
include | ||
test | ||
default_temporal_layers.cc | ||
default_temporal_layers.h | ||
default_temporal_layers_unittest.cc | ||
libvpx_vp8_decoder.cc | ||
libvpx_vp8_decoder.h | ||
libvpx_vp8_encoder.cc | ||
libvpx_vp8_encoder.h | ||
screenshare_layers.cc | ||
screenshare_layers.h | ||
screenshare_layers_unittest.cc | ||
simulcast_rate_allocator.cc | ||
simulcast_rate_allocator.h | ||
simulcast_test_utility.h | ||
simulcast_unittest.cc | ||
temporal_layers.cc | ||
temporal_layers.h |