Compression support for Bud Tucker images?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Compression support for Bud Tucker images?

Post by dooplex »

Using the SCUMMVM Tools, it is possible to considerably compress most of the "Bud Tucker" audio files (not the "audio" folder, though - why?).

The Bud Tucker directory also contains a lot images in uncompressed PCX format, which is very outdated. Recompressing them to another lossless image format like PNG, or even using ZIP should give quite a considerable extra compression (at least ~50%, I think). One could even use JPG, though JPG is lossy and not a good choice for compression of sprites.

So, why not add compression support for images?
User avatar
sev
ScummVM Lead
Posts: 2308
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Re: Compression support for Bud Tucker images?

Post by sev »

dooplex wrote:So, why not add compression support for images?
Because it is some work?


Eugene
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

Hi Sev,

sorry, this was meant as an idea, not as a request. It's always easy to lean back and let others do the work, right?

I know a bit about image compression so I saw some potential there. I'm pretty sure one could even apply this idea to other supported games, too.
User avatar
sanguinehearts
Posts: 378
Joined: Mon Oct 31, 2005 12:42 am
Location: Hampshire, United Kingdom

Post by sanguinehearts »

You'll need to consider the implications of this before you figure out whether its worth while.
If you compress something you need to decompress it to work with it right?

this decompression might be more trouble than its worth on the platforms with lower specifications, those platforms are the ones which the smaller files are neccesary for in the first place.

It would be interesting to know what the overheads required for this would be though.

perhaps you can create a test patch dooplex?
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

To be honest, I don't know what you mean by creating a test patch :-). I'm a little bit into C++ programming, but I guess my skills are far behind those of most contributors (if programming is what you meant).

PNG or ZLIB decompression shouldn't be a problem for most platforms, though there might be problems on "small" platforms like Symbian.

I ran a small test, though, on the PCX files of my (german) "Bud Tucker" version.

Without compression (PCX): 6,948,482b
With compression (PNG): 3,300,159b

There are savings of a bit more than ~50%. Sev might be right, though. Adding PNG support means work, and the improvements are still very small.

Maybe, another possible concept would be the addition of support for zipped game files (for all games). Each game could stay zipped on HD until it is actually played. SCUMMVM would have to unpack the file to a temp directory before playing, and delete the files (not the savegame, though) afterwards.
User avatar
Longcat
Posts: 1061
Joined: Sat Sep 23, 2006 3:15 pm

Post by Longcat »

I like it the way it is:)
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

dooplex wrote:Maybe, another possible concept would be the addition of support for zipped game files (for all games). Each game could stay zipped on HD until it is actually played. SCUMMVM would have to unpack the file to a temp directory before playing, and delete the files (not the savegame, though) afterwards.
No, we won't add support for zipped game files. Read the FAQ:
http://www.scummvm.org/faq.php#id299894
dooplex
Posts: 36
Joined: Thu Apr 02, 2009 2:17 pm

Post by dooplex »

Basically, you could also add support for zipped games with a simple, home-made batch script.

This could look something like this:

@echo off
pkunzip kyra3.zip .\kyra3 (unzip archive)
scummvm --config=scummvm.ini kyra3 (run scummvm)
rd /q /s kyra3 (remove directory)

I do understand your point about zipped files support, though.
Post Reply