vp9: Enable vp9 denoiser by default in standalone webrtc.

BUG=None

Review-Url: https://codereview.webrtc.org/2789283002
Cr-Commit-Position: refs/heads/master@{#18450}
This commit is contained in:
jianj
2017-06-05 13:43:49 -07:00
committed by Commit Bot
parent b72fd747e7
commit 6bf57e3467
2 changed files with 5 additions and 3 deletions

View File

@ -450,13 +450,15 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) {
// Turn on row-based multithreading.
vpx_codec_control(encoder_, VP9E_SET_ROW_MT, 1);
#if !defined(WEBRTC_ARCH_ARM) && !defined(WEBRTC_ARCH_ARM64) && \
!defined(ANDROID)
// Note denoiser is still off by default until further testing/optimization,
// i.e., VP9().denoisingOn == 0.
// Do not enable the denoiser on ARM since optimization is pending.
// Denoiser is on by default on other platforms.
vpx_codec_control(encoder_, VP9E_SET_NOISE_SENSITIVITY,
inst->VP9().denoisingOn ? 1 : 0);
#endif
if (codec_.mode == kScreensharing) {
// Adjust internal parameters to screen content.
vpx_codec_control(encoder_, VP9E_SET_TUNE_CONTENT, 1);