Inverse dimension order in token_cost array.
authorRonald S. Bultje <rbultje@google.com>
Wed, 24 Jul 2013 22:13:58 +0000 (15:13 -0700)
committerRonald S. Bultje <rbultje@google.com>
Sat, 27 Jul 2013 00:30:04 +0000 (17:30 -0700)
commit118ccdcd309c6bdaa967ffe1e13ba6df8aad64db
tree171faa9a1f109a8a1cc1260677edead63651dab8
parent35e7e7b61442fbad0cbfda12c87f68426246d970
Inverse dimension order in token_cost array.

This allows us to increment the position at the band-level only as
we go from one band to the next; more importantly, that allows us to
use an add instead of multiply instruction, and omit the instruction
altogether if the band doesn't change from one coef to the next, thus
being slightly faster (probably more noticeable on systems where a
multiply is expensive, like arm).

Change-Id: I4343fe35b9f9a47fa00b217bdcbf5f91ff96c381
vp9/encoder/vp9_block.h
vp9/encoder/vp9_encodemb.c
vp9/encoder/vp9_rdopt.c