forked from len0rd/rockbox
H1x0: Changed lcd_blit() and the grayscale library to use the same internal format as on archos (1bpp). While the slowdown of the ISR is minimal (the intermediate buffers are in IRAM), the planar grayscale buffer takes only half the space for a given depth, and gray_update[_rect]() and unbuffered drawing/scrolling are faster because less data needs to be moved. It should also make porting of video.rock somewhat easier. * Archos recorders, Ondios: Some slight optimisations of the grayscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8b9c64f19d
commit
1a40e10933
8 changed files with 156 additions and 97 deletions
|
@ -1822,8 +1822,8 @@ int main(char* filename)
|
|||
|
||||
|
||||
/* initialize the grayscale buffer: 32 bitplanes for 33 shades of gray. */
|
||||
grayscales = gray_init(rb, buf, buf_size, false, LCD_WIDTH,
|
||||
(LCD_HEIGHT*LCD_DEPTH/8), 32, &graysize) + 1;
|
||||
grayscales = gray_init(rb, buf, buf_size, false, LCD_WIDTH, LCD_HEIGHT/8,
|
||||
32, &graysize) + 1;
|
||||
buf += graysize;
|
||||
buf_size -= graysize;
|
||||
if (grayscales < 33 || buf_size <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue