forked from len0rd/rockbox
Greyscale library: Changed the internal data format once more (separated pixel values and phases), allowing for further optimisation of drawing, scrolling etc. * Optimised grey phase blitting in the core reduces CPU load on all architectures, most significantly on coldfire. Previous version was too slow to keep up at 45MHz, leading to unwanted graininess (update frequency was halved). Also fixed screendump on 2bpp targets with vertical pixel packing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16043 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75380fd27d
commit
6a56c14e17
13 changed files with 462 additions and 313 deletions
|
@ -131,13 +131,9 @@ extern void lcd_yuv_blit(unsigned char * const src[3],
|
|||
int src_x, int src_y, int stride,
|
||||
int x, int y, int width, int height);
|
||||
#else
|
||||
struct grey_data {
|
||||
unsigned char phase; /* SH1 uses it signed (doesn't matter for high level) */
|
||||
unsigned char value; /* 0..128 are allowed */
|
||||
} __attribute__((packed));
|
||||
extern void lcd_grey_data(const struct grey_data *data, int count); /* private */
|
||||
extern void lcd_grey_phase_blit(const struct grey_data *data, int bx, int by,
|
||||
int bwidth, int bheight, int stride);
|
||||
extern void lcd_grey_phase_blit(unsigned char *values, unsigned char *phases,
|
||||
int bx, int by, int bwidth, int bheight,
|
||||
int stride);
|
||||
#endif
|
||||
|
||||
/* performance function */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue