Remove dependency on WebRTC-LowresSimulcastBitrateInterpolation
Dependency on WebRTC-LowresSimulcastBitrateInterpolation field trial in LimitSimulcastLayerCount() is unnecessary. Bug: webrtc:351644568, b/352504711 Change-Id: I9daf9cbfb5b6a582cd9f03ce1a86e5bbd2b2bfd4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357260 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42644}
This commit is contained in:
parent
bdfe6ae801
commit
1b78a7eb3f
@ -378,13 +378,11 @@ size_t LimitSimulcastLayerCount(int width,
|
||||
webrtc::ParseFieldTrial({&max_ratio},
|
||||
trials.Lookup("WebRTC-SimulcastLayerLimitRoundUp"));
|
||||
|
||||
const bool enable_lowres_bitrate_interpolation =
|
||||
EnableLowresBitrateInterpolation(trials);
|
||||
size_t adaptive_layer_count = std::max(
|
||||
need_layers,
|
||||
InterpolateSimulcastFormat(width, height, max_ratio.GetOptional(),
|
||||
enable_lowres_bitrate_interpolation, codec)
|
||||
.max_layers);
|
||||
need_layers, InterpolateSimulcastFormat(
|
||||
width, height, max_ratio.GetOptional(),
|
||||
/*enable_lowres_bitrate_interpolation=*/false, codec)
|
||||
.max_layers);
|
||||
if (layer_count > adaptive_layer_count) {
|
||||
RTC_LOG(LS_WARNING) << "Reducing simulcast layer count from "
|
||||
<< layer_count << " to " << adaptive_layer_count;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user