Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Allow upto 512 images on a WPS
« previous next »
  • Print
Pages: [1] 2 3 4

Author Topic: Allow upto 512 images on a WPS  (Read 11302 times)

Offline kahuna_999

  • Member
  • *
  • Posts: 8
Allow upto 512 images on a WPS
« on: June 11, 2007, 08:39:59 AM »
Hi

My first patch for rockbox :),  http://www.rockbox.org/tracker/task/7289, is to up the available images allowed on a WPS from the default 52 to 512.  This is achieved using a new display tag %xp which has parameters to pick parts of a loaded bitmap.

There are two variations on the command. The first will use the x,y coordinates from the corresponding %xl tag, the second allows you to specify them.

%xp<bitmap load id>|srcx|srcy|w|h|
%xp<bitmap load id>|srcx|srcy|w|h|x|y|

The %xp tag can be used in conditions.

I hope the artists out there can use this to come up with some stunning new wps's
« Last Edit: June 12, 2007, 03:15:01 AM by kahuna_999 »
Logged

Offline Sambolina3

  • Member
  • *
  • Posts: 61
  • They say I'm a genius.
Re: Allow upto 512 images on a WPS
« Reply #1 on: June 11, 2007, 03:21:40 PM »
Um not to be negative but why would you need more than 52 images? And what about those poor processors?  :'(
Logged
I say // tomato
You say /*tomah-toe*/

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #2 on: June 11, 2007, 03:25:27 PM »
Basically, with the number of codecs Rockbox currently supports, plus the arbitrary length conditionals usable in the WPS it's very easy to come up against the limit for graphics. In fact, one of the official WPSes is pretty much up against it right now as it is (iCatcher). Used reasonably, bitmaps-by-parts should alleviate some of these problems. The total limit on WPS size (including graphics) will likely stay the same, or not increase much.
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: Allow upto 512 images on a WPS
« Reply #3 on: June 11, 2007, 06:28:37 PM »
I like the idea. If used correctly it can be very useful for WPS creators.
I haven't had time to really check the patch out yes, but I sure will :)
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Allow upto 512 images on a WPS
« Reply #4 on: June 11, 2007, 08:34:30 PM »
This sounds pretty cool.  If I read this correctly you're not allowing any more images to be loaded, but you're allowing us to specify an area of an existing loaded image to be displayed.  Very cool, and lots of potential.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline kahuna_999

  • Member
  • *
  • Posts: 8
Re: Allow upto 512 images on a WPS
« Reply #5 on: June 12, 2007, 03:11:07 AM »
Quote from: Yotto on June 11, 2007, 08:34:30 PM
This sounds pretty cool.  If I read this correctly you're not allowing any more images to be loaded, but you're allowing us to specify an area of an existing loaded image to be displayed.  Very cool, and lots of potential.

Thats correct

I have not changed the existing 52 bitmap limit.   Just the way that they can be used.
Logged

Offline Flid

  • Member
  • *
  • Posts: 196
Re: Allow upto 512 images on a WPS
« Reply #6 on: June 12, 2007, 09:28:16 AM »
In fact... wouldn't this potentially reduce the number of "loaded" bitmaps? Since the majority of bitmap usage tends to be battery & volume icons, this could allow scale enumeration of a single image, being slowly exposed (similar to progress bar bitmaps - or am I misinterpreting?).

How would this handle the clearing of images though? (ie. turning volume down)?
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Allow upto 512 images on a WPS
« Reply #7 on: June 12, 2007, 12:45:17 PM »
Here's one idea.  Simple volume bar:

=========|||||||||||||

The = is the volume bar graphic, the | is the transparent color.

for 0% volume, you use all transparent.  For 100% volume, you use all graphic.  For each step along the way, you grab a portion between the two.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #8 on: June 12, 2007, 12:51:06 PM »
I like it. Take an image 200 pixels long, the left side solid, the right side transparent, and slide your viewport from the rightmost 100 left until the leftmost 100 is displayed as you increase the volume.
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Allow upto 512 images on a WPS
« Reply #9 on: June 12, 2007, 01:23:46 PM »
Nice.  Very nice.  Hopefully we'll see a few new WPSs as a result of this.
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Allow upto 512 images on a WPS
« Reply #10 on: June 12, 2007, 08:57:15 PM »
Quote from: Yotto on June 12, 2007, 12:45:17 PM
Here's one idea.  Simple volume bar:

=========|||||||||||||

The = is the volume bar graphic, the | is the transparent color.

for 0% volume, you use all transparent.  For 100% volume, you use all graphic.  For each step along the way, you grab a portion between the two.

I was thinking of something similar a while ago, except I was thinking of a progress bar. Make it work just like or similarly to the normal progress bar.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #11 on: June 12, 2007, 08:59:52 PM »
Making it work similarly to the progress bar would break other solutions, like an icon that changes color from one color to another as you increase volume, or the circular volume indicator on iCatcher.

We should strive to not remove options we already have, and this does both (leaves existing options plus allows for some frugality in bitmap allocation).
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Allow upto 512 images on a WPS
« Reply #12 on: June 12, 2007, 09:03:14 PM »
What if you make it a separate tag? %vb for bitmap and %vp for progressbar-like. Now I don't know if those tags are taken, or the feasibility of this, but I'm just suggesting.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #13 on: June 12, 2007, 09:05:00 PM »
Why add that when the above solution solves the problem already, though?
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Allow upto 512 images on a WPS
« Reply #14 on: June 12, 2007, 09:13:01 PM »
That's why I said I'm not sure of the feasibility of this. I was just suggesting.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

  • Print
Pages: [1] 2 3 4
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Allow upto 512 images on a WPS
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.117 seconds with 14 queries.