Remove TemporalLayersFactory and associated classes
As the rate allocation has been moved into entirely into SimulcastRateAllocator, and the listeners are thus no longer needed, this class doesn't fill any other purpose than to determine if ScreenshareLayers or TemporalLayers should be created for a given simulcast stream. This can however be done just from looking at the VideoCodec instance, so changing this into a static factory method. Due to dependencies from upstream projects, keep the class name and field in VideoCodec around for now. Bug: webrtc:9012 Change-Id: I028fe6b2a19e0d16b35956cc2df01dcf5bfa7979 Reviewed-on: https://webrtc-review.googlesource.com/63264 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22529}
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
class TemporalLayersFactory;
|
||||
class VideoBitrateAllocator;
|
||||
class VideoCodec;
|
||||
class VideoEncoderConfig;
|
||||
@ -44,8 +43,7 @@ class VideoCodecInitializer {
|
||||
// optional, if it is populated, ownership of that instance will be
|
||||
// transferred to the VideoBitrateAllocator instance.
|
||||
static std::unique_ptr<VideoBitrateAllocator> CreateBitrateAllocator(
|
||||
const VideoCodec& codec,
|
||||
std::unique_ptr<TemporalLayersFactory> tl_factory);
|
||||
const VideoCodec& codec);
|
||||
|
||||
private:
|
||||
static VideoCodec VideoEncoderConfigToVideoCodec(
|
||||
|
||||
Reference in New Issue
Block a user