forked from len0rd/rockbox
iAudio M3: Optimised LCD driver, with more/better assembly code. Speedup is ~80% when boosted, ~15% when unboosted. Also implemented grey phase blitting. * Adapted the greyscale library, and the plugins using it. * Fixed a bug in greyscale scroll down for vertically packed pixels.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16809 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ceaf321f3
commit
40919d7db2
20 changed files with 744 additions and 315 deletions
|
@ -630,14 +630,14 @@ void grey_ub_gray_bitmap_part(const unsigned char *src, int src_x, int src_y,
|
|||
{
|
||||
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
|
||||
int idx = _GREY_MULUQ(_grey_info.width, yc);
|
||||
#else
|
||||
#else /* vertical packing or vertical interleaved */
|
||||
int idx = _GREY_MULUQ(_grey_info.width, yc & ~_GREY_BMASK)
|
||||
+ (~yc & _GREY_BMASK);
|
||||
#endif /* LCD_PIXELFORMAT */
|
||||
|
||||
#if (LCD_PIXELFORMAT == VERTICAL_PACKING) && \
|
||||
((LCD_DEPTH == 2) && defined(CPU_COLDFIRE) \
|
||||
|| (LCD_DEPTH == 1) && (CONFIG_CPU == SH7034))
|
||||
#if ((LCD_PIXELFORMAT == VERTICAL_PACKING) && (LCD_DEPTH == 1) && (CONFIG_CPU == SH7034)) \
|
||||
|| ((LCD_PIXELFORMAT == VERTICAL_PACKING) && (LCD_DEPTH == 2) && defined(CPU_COLDFIRE)) \
|
||||
|| ((LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) && defined(CPU_COLDFIRE))
|
||||
_grey_line1(width, dst + idx, src, _grey_info.gvalue);
|
||||
#else
|
||||
unsigned char *dst_row = dst + idx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue