webrtc/modules/video_coding/codecs/vp8
Erik Språng e624d078bc Always update libvpx configuration if bitrate has changed.
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}
2018-04-11 15:27:56 +00:00
..
include Enable and fix chromium clang warnings in sdk/android targets. 2018-04-05 11:22:03 +00:00
test Use frame generator in video codec unit tests. 2018-03-28 13:07:16 +00:00
default_temporal_layers.cc Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
default_temporal_layers.h Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
default_temporal_layers_unittest.cc Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
libvpx_vp8_decoder.cc Split vp8_impl into webm_vp8_encoder and webm_vp8_decoder 2018-03-15 11:57:07 +00:00
libvpx_vp8_decoder.h Split vp8_impl into webm_vp8_encoder and webm_vp8_decoder 2018-03-15 11:57:07 +00:00
libvpx_vp8_encoder.cc Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
libvpx_vp8_encoder.h Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
screenshare_layers.cc Always update libvpx configuration if bitrate has changed. 2018-04-11 15:27:56 +00:00
screenshare_layers.h Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
screenshare_layers_unittest.cc Always update libvpx configuration if bitrate has changed. 2018-04-11 15:27:56 +00:00
simulcast_rate_allocator.cc Remove TemporalLayersFactory and associated classes 2018-03-21 10:20:48 +00:00
simulcast_rate_allocator.h Remove TemporalLayersFactory and associated classes 2018-03-21 10:20:48 +00:00
simulcast_test_utility.h Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
simulcast_unittest.cc Reland "Enables/disables simulcast streams by allocating a bitrate of 0 to the spatial layer." 2018-01-18 22:42:23 +00:00
temporal_layers.cc Delete logic to set picture id and tl0 pic idx in encoders. 2018-03-27 13:11:16 +00:00
temporal_layers.h Delete obsolete tl_factory member and all mention thereof. 2018-04-09 11:02:38 +00:00