Author Topic: Suggestion for emu-coders: GZip compression  (Read 2747 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Suggestion for emu-coders: GZip compression
« on: 15:56, 06 June 09 »
Hi together,
 as I was searching for CPC-emulators, I found a website for the GP2X emulator.
 
 This emulator uses compressed .SNA files (.SNZ)
 
 These files are GZip compressed.
 
 Now I coded a bit in JavaCPC and found out, that also WAV and DSK files could be easily GZip compressed.
 So I decided to create compressed .DSK (.DSZ) and also compressed .WAV tapes (.TAZ)
 
 JavaCPC can read and write these formats.
 
 Now my suggestion is:
 Include this feature in other emulators, too...
 (Or does this already exist???)
 
 I will attach 3 files as zip:
 - cybernoid.snz (compressed 64k snapshot, 27k instead of 64k)
 - deathwish3.dsz (compressed dsk, 46k instead of 192k)
 - gryzor.taz (compressed WAV tape, 265k instead of 13mb)
 
 Would be great, if other emulators could support these files, too.
 
 Cheers,
 Markus
 
« Last Edit: 15:58, 06 June 09 by CPC-Live »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline mahlemiut

  • CPC6128
  • ****
  • Posts: 288
  • Country: nz
  • Liked: 143
  • Likes Given: 53
Re: Suggestion for emu-coders: GZip compression
« Reply #1 on: 18:00, 06 June 09 »
Not really much different from simply putting the relevant file in a ZIP file.  Most emulators support ZIP files, at least for disk images. 

MESS, for example, treats ZIP files as folders, and can be used for all device types (DSK, WAV, CDT, CPR, BIN, SNA).
- Barry Rodewald
Amstrad CPC, Sharp X68000, Neo Geo Pocket, and Neo Geo AES system leader at HARP
http://www.homeactionreplay.org/

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Suggestion for emu-coders: GZip compression
« Reply #2 on: 19:50, 06 June 09 »
Not really much different from simply putting the relevant file in a ZIP file.  Most emulators support ZIP files, at least for disk images. 

MESS, for example, treats ZIP files as folders, and can be used for all device types (DSK, WAV, CDT, CPR, BIN, SNA).

In reading zipped DSK you are right...
But I am talking about writing these media to harddisk.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Octoate

  • CPC6128
  • ****
  • Posts: 290
  • Country: de
    • Octoate.de
  • Liked: 62
  • Likes Given: 326
Re: Suggestion for emu-coders: GZip compression
« Reply #3 on: 01:03, 07 June 09 »
In reading zipped DSK you are right...
But I am talking about writing these media to harddisk.
Where is the difference with writing to the DSK Images? You can changes files within a ZIP file, too.
--

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Suggestion for emu-coders: GZip compression
« Reply #4 on: 02:17, 07 June 09 »
Where is the difference with writing to the DSK Images? You can changes files within a ZIP file, too.

Sorry, I don't know an emulator writing disc.zip as disk image... ;-)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Octoate

  • CPC6128
  • ****
  • Posts: 290
  • Country: de
    • Octoate.de
  • Liked: 62
  • Likes Given: 326
Re: Suggestion for emu-coders: GZip compression
« Reply #5 on: 14:55, 07 June 09 »
Sorry, I don't know an emulator writing disc.zip as disk image... ;-)
That's a question of the implementation of an emulator. If you would allow it, then it is definitively possible to do that. That's why I don't see the advantages of a new compressed file format.
And what about games which contain more than one disk? In a ZIP container, I can combine them - with the compressed DSK you have all those files seperatly on the HDD.
--

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.570
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3137
  • Likes Given: 5786
Re: Suggestion for emu-coders: GZip compression
« Reply #6 on: 20:38, 13 June 09 »
Indeed, I tend to agree; it's not about the format, it's about the functionality. When you've got hundreds and hundreds of dsk images, they tend to eat up quite some space needlessly. ZIP, Gzip or RAR would all do...