Rockbox

  • Status Closed
  • Percent Complete
    0%
  • 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
Attached to Project: Rockbox
Opened by amiconn - 2004-04-07
Last edited by amiconn - 2004-05-10

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.

Closed by  amiconn
2004-05-10 22:10
Reason for closing:  Accepted

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

to USB plugging as intended

So here is another update:
- safe lcd_update() replacement mechanism rewritten so that it

does not cause flicker within the grayscale area any more

- minimal speed tweaks

an extra “stride” parameter to the bitmap/graymap copy
functions, to allow copying subsets from a larger image

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing