From 2520e7200eb2e82df06583fdc7afb3c85863a7ed Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 16 Sep 2015 14:05:00 -0700 Subject: [PATCH] VP9: Enable static threshold for non-screen content. Encoder control was currently on for screen-content mode, use it also for normal video. BUG= TBR=stefan@webrtc.org Review URL: https://codereview.webrtc.org/1351523005 . Cr-Commit-Position: refs/heads/master@{#9958} --- webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc index 2e9f5ae30f..0c4dee71bb 100644 --- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -402,10 +402,9 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) { if (codec_.mode == kScreensharing) { // Adjust internal parameters to screen content. vpx_codec_control(encoder_, VP9E_SET_TUNE_CONTENT, 1); - // Let the encoder skip the encoding of very flat/low content blocks. - vpx_codec_control(encoder_, VP8E_SET_STATIC_THRESHOLD, 1); } - + // Enable encoder skip of static/low content blocks. + vpx_codec_control(encoder_, VP8E_SET_STATIC_THRESHOLD, 1); inited_ = true; return WEBRTC_VIDEO_CODEC_OK; }