Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#5627 - H100 grayscale bitmap fix

Attached to Project: Rockbox
Opened by Andreas Mattsson (AM) - Sunday, 02 July 2006, 21:02 GMT+2
Last edited by Steve Bavin (pondlife) - Wednesday, 10 October 2007, 12:42 GMT+2
Task Type Patches
Category LCD
Status Unconfirmed
Assigned To No-one
Player type Iriver H100 series
Severity Low
Priority Normal
Reported Version current build
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

Updates the iriver H100 LCD-driver so as to make the handling of 4-gray bitmaps analogous to its monochrome bitmap-handling. This means the white pixels of an image are no longer drawn on top of other images.
Useful for WPS as it allows you to place grayscale bitmaps behind other bitmaps and properly display text on top of grayscale bitmaps. This was previously not possible.

Changes were made to the lcd_bitmap_part function in lcd-h100.c and the function setblock was removed as it no longer was used.
I'd like it if this was included in CVS.
This task depends upon

Comment by Andreas Mattsson (AM) - Monday, 03 July 2006, 10:32 GMT+2
Ok, I've now applied the same fix to the iPod 4-gray driver (lcd-2bit-horz.c). Here's the iPod patch and combined (iriver+iPod) batch.
Comment by Linus Nielsen Feltzing (linusnielsen) - Monday, 03 July 2006, 10:46 GMT+2
OK, so this patch makes white pixels transparent?

I would prefer if the grayscale drivers implemented the same mask color approach as the color targets. However, this is definitely a step in the right direction. Could you please submit a new patch without the MSDOS newlines and the TAB characters?
Comment by Andreas Mattsson (AM) - Monday, 03 July 2006, 11:31 GMT+2
I didn't really look into how color targets handle transparency. My main goal was to make it so that monochrome vs grayscale bitmaps could work interchangably with the same behaviour thinking it would make sense for you to for example be able to swap out the monochrome bitmaps of a WPS for grayscale versions without everything getting screwed up...

Did a find-and-replace for tab characters and ran dos2unix for the 2 source files. Here are the new patches.
Comment by Linus Nielsen Feltzing (linusnielsen) - Monday, 03 July 2006, 11:47 GMT+2
Have you made any performance tests other than the WPS, like some of the plugins?
Comment by Andreas Mattsson (AM) - Monday, 03 July 2006, 12:32 GMT+2
Ok, I'm a total rockbox dev n00b (this is my first patch) so by performance testing what exactly do you mean? Is there some debug mode to show framerates or something I should use? I've done a search for all source files that use lcd_bitmap(), lcd_bitmap_part(), screen->bitmap() or screen->bitmap_part() and have tried out all the plugins that do - noticing no difference. But is there any way to get actual performance figures for comparison?
Comment by Andreas Mattsson (AM) - Monday, 03 July 2006, 12:37 GMT+2
only limited testing on the iPod though as I don't have one myself... (only tested using simulator)
Comment by Andreas Mattsson (AM) - Thursday, 20 July 2006, 15:42 GMT+2
updated to CVS
Comment by Andreas Mattsson (AM) - Wednesday, 16 August 2006, 10:47 GMT+2
updated to CVS (wont bother making separate patches for h100 and ipod anymore, this one includes both)

Loading...