Index: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
index 3e4367fb67e0658e4302dc324ec229116fb6d691..00c2694a63d59a9640c71c2275c9aede9eff3284 100644 |
--- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
+++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
@@ -404,6 +404,13 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) { |
vpx_codec_control(encoder_, VP9E_SET_NOISE_SENSITIVITY, |
inst->codecSpecific.VP9.denoisingOn ? 1 : 0); |
#endif |
+ if (codec_.mode == kScreensharing) { |
pbos-webrtc
2015/09/03 14:59:27
This doesn't sound like what's in the CL descripti
ivica
2015/09/03 16:24:23
You're right, moving it to another CL.
|
+ // 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); |
+ |
inited_ = true; |
return WEBRTC_VIDEO_CODEC_OK; |
} |