- Status Closed
- Percent Complete
- Task Type Patches
- Category Plugins
- Assigned To No-one
- Operating System
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#2130 - Grayscale framework & demo plugin
This plugin contains a grayscale framework primarily
useful to incorporate grayscale display capabilities
into other plugins. This could be games, image viewers
or whatever else you could imagine.
The plugin itself contains a main() function that
demonstrates some of the capabilities of the framework.
The framework is heavily commented, so it should be
relatively easy to use. The available functions are
similar to these provided by the rockbox api for b&w
display except that there are no font functions. This
would require a change of the api.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
If someone wants to test the demo as-is, I’ve attached the
compiled grayscale.rock.
Hint: After the plugin has finished drawing, use the
“cursor” keys with and without holding “On” to see the
scrolling capabilities.
If someone wants to test the demo as-is, I’ve attached the
compiled grayscale.rock.
Hint: After the plugin has finished drawing, use the
“cursor” keys with and without holding “On” to see the
scrolling capabilities.
New, improved version of the framework attached:
- safe replacement for lcd_update() call added
- core pixel routine is 10% faster
- various small optimizations and improvements
- updated descriptions in comments
Grr, somehow Sourceforge mangled the uploaded files.
Re-uploaded them, additionally both files in a .zip
Great - the downloads are working fine now …Tested with
Opera 7.21
Further improved version of the grayscale framework:
- core pixel setting routine another 14% faster
- core pixel inverting routine optimized
- reduced code size
Reworked the framework a bit (again):
- core pixel routine slightly faster (only 2% this time)
- some other small tweaks
- reworked (extended/clarified) comments
- fixed the bug that the demo’s main() function didn’t react
So here is another update:
- safe lcd_update() replacement mechanism rewritten so that it
- minimal speed tweaks
an extra “stride” parameter to the bitmap/graymap copy
functions, to allow copying subsets from a larger image