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
| |-+  Plugins/Viewers
| | |-+  (Un)zipper?
« previous next »
  • Print
Pages: [1]

Author Topic: (Un)zipper?  (Read 3617 times)

Offline gnu

  • Member
  • *
  • Posts: 269
(Un)zipper?
« on: March 10, 2007, 02:06:44 PM »
First of all: this is not a request. I'm just asking if it's possible (CPU speed etc..).

My question: would it be possible to include an unzipper into rockbox? Sometimes you've got a zip-file on your player but you can't use it because you forgot to extract it...
Of course it would be quite impossible to unzip large files (it'd take hours....), but what about small files?
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: (Un)zipper?
« Reply #1 on: March 10, 2007, 03:27:39 PM »
There is no need for zip extraction to be real time so i don't see why it would be a problem that the cpu speed in most targets is not that big. But as you say it will probably be very slow :-)
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: (Un)zipper?
« Reply #2 on: March 10, 2007, 06:12:24 PM »
You can simply put the portable version of 7zip on your player (like any other portable app) and use that. I don't see a need of running this on the player itself.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: (Un)zipper?
« Reply #3 on: March 11, 2007, 05:40:18 AM »
Quote from: nls on March 10, 2007, 03:27:39 PM
There is no need for zip extraction to be real time so i don't see why it would be a problem that the cpu speed in most targets is not that big. But as you say it will probably be very slow :-)

I'm not sure what you mean by "real time" when dealing with zip files...

But a zip/unzip implementation in Rockbox is very feasible - the code from the infozip project is extremely portable, and even runs on old 16-bit MS-DOS systems.  ZIP is an old format - meaning it was designed to run on computers with less horsepower than the modern targets Rockbox runs on.

I also think it could  be quite useful - the unzip functionality could be added to the plugin library (thereby making it usable by all plugins, such as the various emulators, enabling them to read data directly from zip files without uncompressing them first), as well as a general-purpose unzip plugin.

The fact that people have long been requesting such a plugin shows that at least those people would have a use for it.
Logged

Offline Mr_Rabid_Teddybear

  • Member
  • *
  • Posts: 51
Re: (Un)zipper?
« Reply #4 on: March 11, 2007, 11:01:36 AM »
Quote from: linuxstb on March 11, 2007, 05:40:18 AM
I'm not sure what you mean by "real time" when dealing with zip files...
He probably mean something like on-the-fly decompress and playback of audiofiles inside zip files, like some game formats that are served up like that....

Quote from: linuxstb on March 11, 2007, 05:40:18 AM
But a zip/unzip implementation in Rockbox is very feasible - the code from the infozip project is extremely portable, and even runs on old 16-bit MS-DOS systems.  ZIP is an old format - meaning it was designed to run on computers with less horsepower than the modern targets Rockbox runs on.
Except I had this experience short time ago, I downloaded some zip files (infact from www.rockbox-themes.org) that had been compressed with WinZip 11.0 and tried to unzip them under Debian - no dice! I then tried with 7-zip 4.42, still no dice... I then figured out that WinZip 11 compresses zip files that are not backwards compatible!!!!! Luckily the trialversion of WinZip 11 ran well under Wine....


Logged

Offline Rincewind

  • Member
  • *
  • Posts: 266
Re: (Un)zipper?
« Reply #5 on: March 11, 2007, 11:53:15 AM »
Quote from: linuxstb link=topic=9237.msg71259#msg71259

I also think it could  be quite useful - the unzip functionality could be added to the plugin library (thereby making it usable by all plugins, such as the various emulators, enabling them to read data directly from zip files without uncompressing them first), as well as a general-purpose unzip plugin.

A Rockbox zip library could also be useful to make a one-file wps format. But a simple .tar would be enough for this, though. Compression is not really needed in that case.
Logged
Iriver H120, Sansa e280

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: (Un)zipper?
« Reply #6 on: March 11, 2007, 11:59:08 AM »
Quote from: Rincewind on March 11, 2007, 11:53:15 AM
A Rockbox zip library could also be useful to make a one-file wps format. But a simple .tar would be enough for this, though. Compression is not really needed in that case.
I even consider using zip the inferior solution -- it needs much more work as compression needs to get handled and hasn't real benefits. Themes aren't that big size-wise and loading from a tar file is much easier. (I posted a theme file installer plugin on FS, it simply uses tar files, and zip also suffers from no file index issue like tar does which made the integration of tarred theme files I worked on some while ago quite slow.)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: (Un)zipper?
« Reply #7 on: March 11, 2007, 12:01:56 PM »
Quote from: linuxstb on March 11, 2007, 05:40:18 AM

I'm not sure what you mean by "real time" when dealing with zip files...

Sorry I wasn't expressing myself very clearly, I just meant the no need for realtime as a comparison for what is feasible to do regarding audio codecs and video as zip extraction can take forever and still work nicely :-)
Logged

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: (Un)zipper?
« Reply #8 on: March 12, 2007, 12:18:46 AM »
Quote from: bluebrother on March 11, 2007, 11:59:08 AM
I even consider using zip the inferior solution -- it needs much more work as compression needs to get handled and hasn't real benefits. Themes aren't that big size-wise and loading from a tar file is much easier.
This is true. Another  thing when using one tar or zip file for wps's is that you wont have to go through and delete the folder and .cfg and .wps files for these theme. just one or 2 things to delete.
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  (Un)zipper?
 

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

Page created in 0.11 seconds with 14 queries.