vp9-svc: Fix in pickmode for key frames.
authorMarco Paniconi <marpan@google.com>
Wed, 28 Mar 2018 23:10:17 +0000 (16:10 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 28 Mar 2018 23:57:08 +0000 (16:57 -0700)
commitfe72ba15ac42760c229e10e97e796cebd6ce02b4
treeddb3e129fc6ccce0deaebb082ecfba67b12ed933
parent382afcab988bad359b8fa4892aae1f11b5200b74
vp9-svc: Fix in pickmode for key frames.

For the fixed/default SVC patterns, GOLDEN is the
spatial reference, except on key frames, where LAST
is labeled as the spatial reference.

The current code was assuming GOLDEN is always the
spatial reference for the purpose of selecting the
subpel motion (due to the downsampling filter).

Fix is make sure flag_svc_subpel is set and used
with spatial_ref, which is labeled as the proper
spatial reference before entering mode check.

Some quality improvement on key frames.
Change-Id: Id236bcd47055b035731cc910ed84449d7e29f50c
vp9/encoder/vp9_pickmode.c