Rockbox

  • Status Closed
  • Percent Complete
    100%
  • 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
Attached to Project: Rockbox
Opened by obo - 2006-06-15

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.

(application/octet-stream)    vu.patch (10.9 KiB)
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

Committed.

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.

obo commented on 2006-06-16 18:16

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.

obo commented on 2006-06-17 20:30

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 :)

(application/octet-stream)    vu.patch (10.1 KiB)
obo commented on 2006-06-18 23:14

Fixed the analog_db_scale - analog side is (I think) as it should be now.

(application/octet-stream)    vu.patch (10.1 KiB)
obo commented on 2006-07-10 22:22

Now also fullscreen the digital scale - uses lcd_fillrect instead of handmade rounded rectangles.

obo commented on 2006-07-11 18:45

Parentheses police.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing