XPK based adaptive file compressor
- Size
- 8.8K (8,998 bytes)
- Added
- 2026-11-20 17:29
- Downloads
- 1
- Long Description
- Release date: 19-May-1999 --------------------------------------------------------------------- 1. What is Headbanger? This program is an XPK based adaptive file compressor utility, with only a command line interface. (It is not an archiver, but a one-file only compressor!) 2. How does it work? Everybody knows that the files are usually not a homogene byte-stream inside, a file almost always can be separated into some different types of data. (Think of a song module - it consists of a header, the song data, and the samples.) All kind of data can be compressed efficiently with a different kind of method. Fortunately Amiga has a great possibility of using different methods for different kind of files trough the great XPK package. If you have ever tried to compress eg. a module-file, you have probably realized that SQSH often achieves better ratio than even the famous LZX. (Which is known unbeatable in everyday archiving.) Well, I tought we have a lot of nice compressors at hand, but they are working only on one whole file only. How Headbanger works then (in short): - first it splits the file into small pieces, - it tries to apply all of the given XPK compressing methods (selecting from a list) on each pieces, - chooses the most efficient, and uses its data in the output. It gained more than 50% from large data files, unlike any other packers, archivers or compressors... (Even against RAR...) A testfile (it shows almost nothing about the efficiency but...): ChiMai.S3M music module (Scream Tracker 3 format, woth 16 bit wide samples) Original: 696964 bytes xpk gzip.100: 394040 bytes (43.5% won) lzx (strongest method, switch -9): 391920 bytes (43.7% won) lha 390779 bytes (43.9% won) xpk sqsh.100: 385092 bytes (44.7% won) xpk shri.100: 377584 bytes (45.8% won) headbanger, nibble:32Kb 351800 bytes (49.5% won) headbanger, nibble:16Kb 348312 bytes (50.0% won) headbanger, nibble:8Kb 344980 bytes (50.5% won) 3. How to use it? At first you need XPK package. Then a list of the methods to be used in ENV:, called "headbanger.methods". (Simply text file, I included one into this archive.) Why it is needed? Of course not all of the methods worth a try, and there are also methods (eg. IDEA), which are not compressors, but protectors. You can filter out these methods. (More methods, less speed...) This list-file is not really needed, but then only SHRI, SQSH and GZIP methods will be used. The format of this file is: one line is a method to be used, if it starts with * (asterisk), then before compressing the nibble a delta will be generated. (Useful for sample files and some others, this is how SQSH works, but it worth not using it on these kind of compressing methods: SQSH, SLZX, SMPL, SDHC.) An example: SQSH.100 GZIP.100 ELZX.100 *ELZX.100 The point, and the number represents the efficiency. (100 recommended of course.) Empty lines can be added (real empty lines only), and remarks beginning with the colon (;). Remarks and empty lines will be ignored. (See example file in this archive!) Then, all you have to know is command-line, parameters are: COMMAND/A,FILEIN/A,FILEOUT,THRESHOLD=THRE/K/N,NIBBLE/K/N,MAXNIBBLE=MAX/K/N COMMAND/A: required, can be: c - compress, d - decompress a file l - list the required methods for decompressing a compressed file, FILEIN/A: required, the name of the file to be processed (compress, decompress, or list) FILEOUT: not required, the name of the output file, if it is not given, then at compressing Headbanger adds a .hdbg suffix, at decompressing it tries to chop .hdbg suffix, or it adds .1 to the filename. THRESHOLD=THRE/K/N
- SHA-256
11f3cc2cae0f5322ce884e32e557d253a29c57ae2570d0a08d38d9a437ca301a