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:

Welcome to the Rockbox Technical Forums!

+  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 11304 times)

Offline knight4led

  • Member
  • *
  • Posts: 87
Re: Allow upto 512 images on a WPS
« Reply #30 on: June 20, 2007, 10:25:31 AM »
I believe using a : (colon) character as a seperator will eventually lead to the need to have %: in the rest of the WPS because for now it is used with the RTC on many targets without the leading %. I don't know if this will confuse the WPS parser, but it may confuse WPS writers.
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Allow upto 512 images on a WPS
« Reply #31 on: June 21, 2007, 12:26:09 AM »
It is only used as a separator when parsing a small number of tags (one so far), so the it wouldn't confuse the parser at least. Using ':' in combination with the RTC tags is not a problem.

Adding '%:' would only be needed if there was a need to enter ':' for other uses than a separator within a tag using ':' as a separator. In this case (as well as for the other image-related tags) it is used to separate numbers and filenames, so it isn't needed yet.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Allow upto 512 images on a WPS
« Reply #32 on: June 21, 2007, 03:40:42 AM »
I'd put much brain energy in a solution that would work without a new special symbol. Special symbols should be kept to a minimum IMHO. Why can't we use something like %evA (as proposed by lowlight)? This command would also need the grid size specified somehow (can '|' be used for this?)
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Allow upto 512 images on a WPS
« Reply #33 on: June 21, 2007, 04:45:05 AM »
Quote from: fml2 on June 21, 2007, 03:40:42 AM
Why can't we use something like %evA (as proposed by lowlight)? This command would also need the grid size specified somehow (can '|' be used for this?)

%evA would not need a grid size, since that is implied from the BMP dimensions and number of entries, as specified when loading it. (But if a grid size - or more likely, image number, when used in non-enumeration cases - were to be specified, '|' could not be used.)
Logged

Offline kahuna_999

  • Member
  • *
  • Posts: 8
Re: Allow upto 512 images on a WPS
« Reply #34 on: June 21, 2007, 07:37:12 AM »
the %evA solution proposed by lowlight only addresses one part of this patch.
I agree it would be a more elegant solution to enumerated tags such as volume and battery levels.

My patch allows you to use any part of a bitmap anywhere on the screen, so the need for a new seperator is still valid.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Allow upto 512 images on a WPS
« Reply #35 on: June 21, 2007, 08:07:28 AM »
Quote from: kahuna_999 on June 21, 2007, 07:37:12 AM
My patch allows you to use any part of a bitmap anywhere on the screen, so the need for a new seperator is still valid.

But can't this be done with regular image tags? I.e. the new feature is mostly interesting for enumerations, for other cases we already have a solution. Or does anybody need more than 52 regular images?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #36 on: June 21, 2007, 08:24:07 AM »
The more image files you have in a WPS, the longer it takes to load at boot. A single image, where only the parts are used in multiple places, would probably result in a much faster loading WPS than one that contains 52 images.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Allow upto 512 images on a WPS
« Reply #37 on: June 21, 2007, 08:38:01 AM »
Quote from: Llorean on June 21, 2007, 08:24:07 AM
The more image files you have in a WPS, the longer it takes to load at boot. A single image, where only the parts are used in multiple places, would probably result in a much faster loading WPS than one that contains 52 images.

True. But how many 'static' images are there? I'm not a WPS designer, but I think that there are many images because every single image in every enumeration has to be declared. If that's done with an %evA tag the image number will be significantly cut.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #38 on: June 21, 2007, 08:40:01 AM »
Even then, if you reduce it to 22 images, that's still more than the possibility of a single image plus backdrop. I don't see why the possibility for a faster load time is a bad thing, even if it requires a new separator. Is it just fear of confusion that makes the separator bad?
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Allow upto 512 images on a WPS
« Reply #39 on: June 21, 2007, 08:50:19 AM »
Quote from: Llorean on June 21, 2007, 08:40:01 AM
Is it just fear of confusion that makes the separator bad?

It means more complicated syntax (to learn), more complicated parser code and, probably, more tags needed (%:). Faster WPS loading at no other cost is fine but there is the said penalty.

And IMHO images for a enumeration can be thought of as a package and hence get a dedicated tag. Whereas using a package for 'standalone' images, while improving loading speed, would make WPS less readable (for a designer).

Are there great speed related problems? My WPS is text only so I may have missed something.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Allow upto 512 images on a WPS
« Reply #40 on: June 21, 2007, 09:01:25 AM »
As was said above, %: should not be needed. If someone can't learn the additional syntax for the one tag, then they can avoid using that tag.

As for designer readability: In the end, should the focus be on "make the WPS easier for designers to make" or "reduce the cost of using pretty WPSes to the end user"?

A complex WPS with many images can add a measurable time to the boot. I don't know the maximum time it can add, but the difference can be noticed by a casual user.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Allow upto 512 images on a WPS
« Reply #41 on: June 21, 2007, 09:23:41 AM »
Quote from: Llorean on June 21, 2007, 09:01:25 AM
As for designer readability: In the end, should the focus be on "make the WPS easier for designers to make" or "reduce the cost of using pretty WPSes to the end user"?

IMHO we should consider both. An extremely bad state on either side should be avoided.

But, as I already said, I don't use a WPS stuffed with images so my opinion is only based on purity and aesthetics.
Logged

Offline knight4led

  • Member
  • *
  • Posts: 87
Re: Allow upto 512 images on a WPS
« Reply #42 on: June 21, 2007, 09:59:50 AM »
I was not opposed to using : as a seperator, nor the addition of a %: tag down the road should it be necessary. I was simply stating if the first option is implemented, the second may be either a necessary or a good idea.

Personally I think that if it is decided that this new seperator is good for this tag, maybe it should be used for all enumeration tags that are non-conditional.

Progress in the form of faster loading and more versatility to the WPS parser is, in my opinion, better than trying to force constants based on previous versions of Rockbox.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Allow upto 512 images on a WPS
« Reply #43 on: June 21, 2007, 06:15:04 PM »
For the record, I would welcome complexity in WPS code to be able to make nicer WPS's. I've thought of another cool use for this, a smooth circular volume "bar" around... anything.  A play button, album art, whatever.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: Allow upto 512 images on a WPS
« Reply #44 on: June 22, 2007, 05:11:29 PM »
FYI...my patch for enumerated image sets is here: http://www.rockbox.org/tracker/task/7345
If you try it, please, post your comments there.
Logged

  • 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.041 seconds with 14 queries.