Fix source frame border extension
authorJingning Han <jingning@google.com>
Fri, 27 Feb 2015 23:37:18 +0000 (15:37 -0800)
committerJingning Han <jingning@google.com>
Fri, 27 Feb 2015 23:48:01 +0000 (15:48 -0800)
commitfe85fabbac668b2426ce56387906b34539edbf64
tree874e3029cb533f0415c3ceb4c6519833ae1a037a
parent3e1d14a6ce812dece1f50800c2a29431b25822b7
Fix source frame border extension

This commit fixes an issue in source frame border extension. It
causes certain frame resolution such as 640x480 to have a portion
of the right/bottom extension filled by zeros, which misleads
motion search and degrades transform coding performance when large
block size is used.

This fix improves the speed 2 compression performance of a few
yt sequence, typically ranging from 1% - 2%, up to 5% at median
to low bit-rate.

Change-Id: Id6b09a5695d9e7651c6dfbc2c6a72288b08af7fb
vp9/encoder/vp9_extend.c