vp9-screen: Fix to screen wth layered encoding
authorMarco Paniconi <marpan@google.com>
Fri, 8 Mar 2019 18:04:31 +0000 (10:04 -0800)
committerMarco Paniconi <marpan@google.com>
Fri, 8 Mar 2019 18:41:36 +0000 (10:41 -0800)
commit8d488e8c3b301804bf0287a27f06972affa96378
treee0a004c7412fe3a9043cef2a3b1ced4174b34304
parent47f8ce0f7c6ee95598d336263d6714abe19aa204
vp9-screen: Fix to screen wth layered encoding

zero_temp_sad_source is only computed when
compute_source_sad_onepass and sf->use_source_sad are
on, which currently is only for the top layer of the
layered encoding. So qualify the usage of
zero_temp_sad_source on those flags.

This affects the quality/speed of the lower layers of
screen content mode when SVC (quality layers) are used.

Change-Id: I54167265a05a4b918ce015931375aa42d3e75cf5
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_pickmode.c