Use pre-multiplication in scaler to save one multiply per color component on ARM...
commitc627a0d1c65463732fa7569305c559deb3dd72ff
authorunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Tue, 26 May 2009 20:00:47 +0000 (26 20:00 +0000)
committerunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Tue, 26 May 2009 20:00:47 +0000 (26 20:00 +0000)
tree3af2399c1e1be8e56cb1b5e6787efd738dad6d52
parent775a6afb91fde54e157d64f7ca6daf6bd486eb52
Use pre-multiplication in scaler to save one multiply per color component on ARM and Coldfire, at the cost of an extra add/shift in the horizontal scaler to reduce values to a workable range. SH-1 retains the same basic math, as
the use of 16x16->32 hardware multiplication in the earlier scaler stages saves more than removing the 32x32->40 multiply to descale output.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21091 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/bench_scaler.c
apps/plugins/lib/grey_draw.c
apps/plugins/pictureflow/pictureflow.c
apps/recorder/resize.c
apps/recorder/resize.h