Latest work on the bmp on-load scaler:
commitb05f7f2d66790cc113723aca7e46de88e9b1f0a1
authorunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Fri, 26 Dec 2008 07:03:22 +0000 (26 07:03 +0000)
committerunhelpful <unhelpful@a1c6a512-1295-4272-9138-f99709370657>
Fri, 26 Dec 2008 07:03:22 +0000 (26 07:03 +0000)
treeea469e428a756e4f4979be1b6f5a84179a2cc80f
parentb65310ee3efd80d7d6f4b149b58d04e4dfd194c9
Latest work on the bmp on-load scaler:

Macros for calculating size needed for bitmap load and scaling, so that
these can be compile-time constant when their inputs are.

Reduce size of bayer dither by chopping all but first row of dither
matrix, and replacing 2D lookup with 1D lookup and small calculation.

Move some functions not related to actual bmp file loading out of bmp.c.

A smaller brightness() for mono targets, and a higher-quality one for
greyscale targets, both replacing the division by 10 with a shift.

Port of the linear and area scalers to greyscale targets, this costs
some binsize but produces better output even when dithered to 2bpp.

Move duplicated row output code from inside vertical scalers to a
separate row output function.

Move some multiplies out of the line scaler, for a small speedup and
code size reduction, as well as a small improvement in accuracy for the
upscaling case.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19592 a1c6a512-1295-4272-9138-f99709370657
apps/plugin.h
apps/plugins/sliding_puzzle.c
apps/recorder/bmp.c
apps/recorder/bmp.h
apps/recorder/resize.c
apps/recorder/resize.h
firmware/export/lcd-remote.h
firmware/export/lcd.h