Allocate source buffers to be multiples of 16
authorYunqing Wang <yunqingwang@google.com>
Wed, 16 Feb 2011 17:00:25 +0000 (12:00 -0500)
committerYunqing Wang <yunqingwang@google.com>
Wed, 16 Feb 2011 17:57:17 +0000 (12:57 -0500)
commitda227b901d5f97e1ffbbb7ffe3fddf8d015164cd
treec473fea6d5786c03643816dc5d6d4c48294720cc
parent7725a7eb56e74ebbdba14d01cfe85a151f81bf1c
Allocate source buffers to be multiples of 16

Currently, when the video frame width is not multiples of 16, the
source buffer has a stride of non-multiples of 16, which forces
an unaligned load in SAD function and hurts the performance. To
avoid that, this change allocates source buffers to be multiples
of 16.

Change-Id: Ib7506e3eb2cea06657d56be5a899f38dfe3eeb39
vp8/encoder/onyx_if.c