- Status Closed
- Percent Complete
- Task Type Patches
- Category Plugins
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#5551 - Adapt vu_meter to fullscreen on all targets
WIP on making the vu_meter plugin fullscreen on all targets.
Only adjusted the analog meter so far.
Todo:
Need to tweak the y_values for all the new targets (nearly there…)
Digital meter
I’ll clean up and post the C programme I wrote to calculate the analog_db_scale and y_values for each screen resolution.
Closed by rasher
2006-07-12 20:09
Reason for closing: Accepted
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
2006-07-12 20:09
Reason for closing: Accepted
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
Committed.
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
This is something I’ve been meaning to do, but hadn’t gotten around to it yet.
Since you’ve already got a program to generate the tables and scale (in C, no less) - why not simply generate the tables at the start of the plugin? That allows the plugin to run on any screen size and be automatically scaled, preventing more work for future models and lots of #if/#elses.
I was originally planning on calculating in the plugin - the problem is I’m using log10 (although any log function will do, it can always be converted) and sqrt - I spent awhile trying to get some fixed-point log implementations to work, but I couldn’t get any meaningful output from them. No idea what I was doing wrong, but I’ve got them here if you want a look.
Anyway, attached is the quick and dirty bit of code for doing the calculations, plus the plugin with updated values.
I’ve got no idea what to do with the digital meter, there is a lot of screen real estate to fill…
Ah.. maybe somehow a method could be formulated for this, using e.g. a sine function (which I already use in my clock plugin, and the same function can be found in a number of places).
As for the digital meter, simply larger bitmaps are probably best for now - which I’d be happy to do.
Version using fixed-point log and sqrt.
The analog_db_scale is off a bit - it really needs log10 instead of log.
Midkay, if you could do the bitmaps that would be great - I’m not really any good at making things look nice :)
Fixed the analog_db_scale - analog side is (I think) as it should be now.
Now also fullscreen the digital scale - uses lcd_fillrect instead of handmade rounded rectangles.
Parentheses police.