This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6571 - Load WPS .bmp files from a tar file
Attached to Project:
Rockbox
Opened by Dave Chapman (linuxstb) - Wednesday, 24 January 2007, 19:46 GMT+2
Last edited by Dave Chapman (linuxstb) - Monday, 24 March 2008, 10:38 GMT+2
Opened by Dave Chapman (linuxstb) - Wednesday, 24 January 2007, 19:46 GMT+2
Last edited by Dave Chapman (linuxstb) - Monday, 24 March 2008, 10:38 GMT+2
|
DetailsThis is a first, proof-of-concept patch to load wps .bmp files from a .tar file.
This doesn't include patches to the build system, so to create an appropriate .tar file, you need to do something like: cd wps/iCatcher awk -vFS="|" '(/^%x[l]?\\|/) {print $3}' ../iCatcher.220x176x16.wps | tar cvf ../iCatcher.tar -T - and then copy the resulting iCatcher.tar file to the .rockbox/wps/ directory on your player. As you can see from the above command, this only places the %x[l] bitmaps into the .tar file. The background .bmp file, and the progress bar .bmp files (if they exist) should still go in the normal directory. The patch has very little error checking at the moment, and has one major limitation which we may or may not wish to retain - the .bmp files in the .tar file must be in the same order as they are referenced in the .wps file. But if you test, you will see it vastly reduces the loading time for a bitmap-heavy wps. |
This task depends upon
Closed by Dave Chapman (linuxstb)
Monday, 24 March 2008, 10:38 GMT+2
Reason for closing: Rejected
Additional comments about closing: Bitmap strips have achieved the required speed-up and are easier for WPS authors to use than tar files.
Monday, 24 March 2008, 10:38 GMT+2
Reason for closing: Rejected
Additional comments about closing: Bitmap strips have achieved the required speed-up and are easier for WPS authors to use than tar files.
I think the loading needs to be enhanced to load the image files directly instead of opening every file separately to overcome that speed problem.
I also created an installer for my proposed theme file format, it simply unpacks the theme file to the standard location. See
FS#6156-- my idea was to use this as intermediate solution to establish our own theme format until it gets implemented in the core.I'm really interested in single-file themes, but unfortunately won't find the time working on it myself until may. Too much work at uni ...
One thing that I think still needs fixing is the backdrop, as it is still loaded from a bmp file. Maybe it would be worth adding code to allow loading a backdrop from an fd.
Also I'd like to remove the duplication between load_wps_bitmaps and load_wps_bitmaps_tar, but I'm not sure it will be possible.
I'd like to know whether this patches improves WPS loading time over regular WPS loading with separate bitmaps.
I think the patch is ready for committing, but wpsbuild.pl still needs some work for remote targets.
e.g. for iCatcher the tar files will be iCatcher-wps.tar and iCatcher-rwps.tar.