This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7807 - gzip/gunzip port
Attached to Project:
Rockbox
Opened by Antoine Cellerier (dionoea) - Thursday, 20 September 2007, 23:21 GMT+1
Last edited by Antoine Cellerier (dionoea) - Thursday, 20 September 2007, 23:34 GMT+1
Opened by Antoine Cellerier (dionoea) - Thursday, 20 September 2007, 23:21 GMT+1
Last edited by Antoine Cellerier (dionoea) - Thursday, 20 September 2007, 23:34 GMT+1
|
DetailsThis is a port of gzip 1.3.12 to rockbox.
This patch adds a gzip_rb viewer (to compress files in the gzip format) and a gunzip_rb viewer (to decompress files in the gzip format and some other formats handled by gzip). You can also run gzip_rb as a standalone plugin to configure the gzip compression level. gunzip_rb is configured as a viewer for .gz, .tgz, .Z, .z and .taz files. These files are from gzip 1.3.12 including modifications for rockbox (note that a lot of documentation, build system and optional source code files from the original gzip 1.3.12 tarball have been left out). Some more code cleanup and improvements to the messaging system might be needed (currently uses splash() and DEBUGF() kind of randomly): A apps/plugins/gzip/tailor.h A apps/plugins/gzip/unlzh.c A apps/plugins/gzip/crypt.c A apps/plugins/gzip/bits.c A apps/plugins/gzip/zip.c A apps/plugins/gzip/revision.h A apps/plugins/gzip/AUTHORS A apps/plugins/gzip/deflate.c A apps/plugins/gzip/unzip.c A apps/plugins/gzip/crypt.h A apps/plugins/gzip/ChangeLog A apps/plugins/gzip/THANKS A apps/plugins/gzip/gzip.c A apps/plugins/gzip/README A apps/plugins/gzip/lzw.c A apps/plugins/gzip/util.c A apps/plugins/gzip/gzip.h A apps/plugins/gzip/unlzw.c A apps/plugins/gzip/unpack.c A apps/plugins/gzip/lzw.h A apps/plugins/gzip/trees.c A apps/plugins/gzip/inflate.c A apps/plugins/gzip/TODO A apps/plugins/gzip/INSTALL A apps/plugins/gzip/COPYING A apps/plugins/gzip/NEWS These files are rockbox specific: A apps/plugins/gzip/Makefile A apps/plugins/gzip/gzip_rb.c A apps/plugins/gzip/gunzip_rb.c A apps/plugins/gzip/malloc.c The plugins have been tested and work fine on: * ipod video sim * ipod video * archos recoder sim The plugins don't build for the archos recorder (and most likely all other hwcodec targets) due to a lack of RAM. This might be fixable at least for the gunzip_rb plugin by making sure that it links only with functions needed for unzipping (gzip and gunzip currently call the same gzip function (~the orignal gzip main()). It would be possible to make a simplified version for gunzip support only) |
This task depends upon
I guess, it doesn't support .zip!? Would be nice though.
zip is something completely different -- it archives and compresses files while gzip only compresses a single file, thus usually files are tarred together first.
Do you think it would be possible to make a .zip viwer as well?
I'm currently porting Info-Zip's unzip (which is the unzip program used by most Linux distros, and probably a bunch of other apps on Linux and other OSes). Should be done next week end I guess. Once it is I'll post a new patch to the tracker ... and start porting GNU tar :)