RateControlSettings: add option to set min pixels per frame for libvpx vp8.
Bug: none Change-Id: I09aa1bcea2f4a9cd65ffeef1df1d9656e4604def Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144029 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28412}
This commit is contained in:
@ -1198,6 +1198,10 @@ VideoEncoder::EncoderInfo LibvpxVp8Encoder::GetEncoderInfo() const {
|
||||
? VideoEncoder::ScalingSettings(
|
||||
kLowVp8QpThreshold, kHighVp8QpThreshold)
|
||||
: VideoEncoder::ScalingSettings::kOff;
|
||||
if (rate_control_settings_.LibvpxVp8MinPixels()) {
|
||||
info.scaling_settings.min_pixels_per_frame =
|
||||
rate_control_settings_.LibvpxVp8MinPixels().value();
|
||||
}
|
||||
// |encoder_idx| is libvpx index where 0 is highest resolution.
|
||||
// |si| is simulcast index, where 0 is lowest resolution.
|
||||
for (size_t si = 0, encoder_idx = encoders_.size() - 1; si < encoders_.size();
|
||||
|
||||
Reference in New Issue
Block a user