VP9 codec controls for screensharing
Telling the encoder to adjust the parameters for the screen content. Also, telling the encoder to skip the encoding of very flat/low content blocks. For now only for screensharing. (number 8 in VP8E_SET_STATIC_THRESHOLD is correct) Review URL: https://codereview.webrtc.org/1308753006 Cr-Commit-Position: refs/heads/master@{#9860}
This commit is contained in:
@ -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) {
|
||||
// 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user