VP9: Add automaticeResize to codec setting.
Added unittest. This setting allows for dynamic resizing at low bitrates. Setting is off by default for now. BUG= R=mflodman@webrtc.org, stefan@webrtc.org TBR=stefan@webrtc.org Review URL: https://codereview.webrtc.org/1323943007 . Cr-Commit-Position: refs/heads/master@{#9976}
This commit is contained in:
@ -283,6 +283,8 @@ int VP9EncoderImpl::InitEncode(const VideoCodec* inst,
|
||||
} else {
|
||||
config_->kf_mode = VPX_KF_DISABLED;
|
||||
}
|
||||
config_->rc_resize_allowed = inst->codecSpecific.VP9.automaticResizeOn ?
|
||||
1 : 0;
|
||||
// Determine number of threads based on the image size and #cores.
|
||||
config_->g_threads = NumberOfThreads(config_->g_w,
|
||||
config_->g_h,
|
||||
|
||||
Reference in New Issue
Block a user