Make cost_coeffs() more efficient.
authorRonald S. Bultje <rbultje@google.com>
Thu, 7 Feb 2013 01:16:36 +0000 (17:16 -0800)
committerRonald S. Bultje <rbultje@google.com>
Sat, 9 Feb 2013 00:32:24 +0000 (16:32 -0800)
commit639b863d2276d8100a5e585fa5ab9bf2d3983946
tree1fc9f23cf7914295a5646cb37116d542c54d7431
parent6dfc95fe63a52945350a7c8a234e87a4a55645db
Make cost_coeffs() more efficient.

Cache the constant offset in one variable to prevent re-loading that
in each loop iteration, and mark the function as inline so we can use
the fact that the transform size is always known in the caller.

Almost 1% faster encoding overall.

Change-Id: Id78325a60b025057d8f4ecd9003a74086ccbf85a
vp9/encoder/vp9_rdopt.c