diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-09-30 20:10:27 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-09-30 20:10:27 +0000 |
| commit | 1a40e109333b8206140594fce746f7972a4d0d86 (patch) | |
| tree | a4f0589682ae4f8c894222b7691efebd989d763f /apps/plugins/lib/gray_scroll.c | |
| parent | 8b9c64f19db3abf8872b8dd85ea8ee1343f322e3 (diff) | |
| download | rockbox-1a40e109333b8206140594fce746f7972a4d0d86.zip rockbox-1a40e109333b8206140594fce746f7972a4d0d86.tar.gz rockbox-1a40e109333b8206140594fce746f7972a4d0d86.tar.bz2 rockbox-1a40e109333b8206140594fce746f7972a4d0d86.tar.xz | |
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
Diffstat (limited to 'apps/plugins/lib/gray_scroll.c')
| -rw-r--r-- | apps/plugins/lib/gray_scroll.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_scroll.c b/apps/plugins/lib/gray_scroll.c index f7ace0e..341024a 100644 --- a/apps/plugins/lib/gray_scroll.c +++ b/apps/plugins/lib/gray_scroll.c @@ -294,7 +294,9 @@ void gray_ub_scroll_up(int count) "extu.b r0,r1 \n" /* store data for next round */ ".su_shift6: \n" /* shift right by 0..7 bits */ - "shlr2 r0 \n" + "shll2 r0 \n" + "bra .su_shift0 \n" + "shlr8 r0 \n" ".su_shift4: \n" "shlr2 r0 \n" ".su_shift2: \n" @@ -378,7 +380,7 @@ void gray_ub_scroll_up(int count) [wide]"r"(_gray_info.width), [rows]"r"(_gray_info.bheight - shift), [addr]"a"(_gray_info.plane_data + _gray_info.plane_size - blockshift), - [cnt] "d"(2 * count) + [cnt] "d"(count) : /* clobbers */ "a0", "a1", "d0", "d1", "d2", "d3", "d4" ); @@ -474,7 +476,9 @@ void gray_ub_scroll_down(int count) "extu.b r0,r0 \n" /* extend unsigned */ ".sd_shift6: \n" /* shift left by 0..7 bits */ - "shll2 r0 \n" + "shll8 r0 \n" + "bra .sd_shift0 \n" + "shlr2 r0 \n" ".sd_shift4: \n" "shll2 r0 \n" ".sd_shift2: \n" @@ -557,7 +561,7 @@ void gray_ub_scroll_down(int count) [rows]"r"(_gray_info.bheight - shift), [psiz]"r"(_gray_info.plane_size), [addr]"a"(_gray_info.plane_data + blockshift), - [cnt] "d"(2 * count) + [cnt] "d"(count) : /* clobbers */ "a0", "a1", "d0", "d1", "d2", "d3", "d4" ); |