LZHUF

From Just Solve the File Format Problem
Jump to: navigation, search
File Format
Name LZHUF
Ontology
Released 1989
This article is about the compression software by Haruyasu Yoshizaki. For the data compression technique in general, see LZ77 with Huffman coding.

LZHUF, or LZHUF.C, is a file compression utility written by Haruyasu Yoshizaki and Haruhiko Okumura. Some versions have a third author, Kenji Rikitake.

It uses LZSS-flavored LZ77, combined with adaptive Huffman coding. It has a 4K history buffer. The LZ77 code is from Okumura's LZARI.

Contents

Format details

Files have a minimal header, containing the uncompressed file size. The format is not portable, because it differs depending on the compiler's in-memory format of the "long" data type.

Related formats

Formats that use LZHUF compression, or something very similar, include:

Software

There are many different versions of LZHUF.C in existence, with modifications by many different people. It's not clear how many "official" versions there were, or how they ought to be identified.

Note that the original source code has portability issues. It will not work correctly if compiled by a modern C compiler.

For a discussion of the terms of use, see lbrate → lzhuf-post.txt.

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox