Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
LZX
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Compression algorithm}} {{about|the compression algorithm|the programming language|OpenLaszlo}} '''LZX''' is an [[LZ77]] family [[Data compression|compression]] [[algorithm]], a slightly improved version of [[DEFLATE]].<ref name=wmilib>[wimlib: the open source Windows Imaging (WIM) library - Compression algorithm https://wimlib.net/compression.html]</ref> It is also the name of a [[archive formats|file archiver]] with the same name. Both were invented by [[Jonathan Forbes (programmer)|Jonathan Forbes]] and [[Tomi Poutanen]] in the 1990s. ==Instances of use of the LZX algorithm== ===Amiga LZX=== LZX was publicly released as an [[Amiga]] file archiver in 1995, while the authors were studying at the [[University of Waterloo]] in [[Canada]]. The software was [[shareware]], which was common for compression software at the time. The registered version contained fixes and improvements that were not available in the evaluation version. In 1997, the authors gave away a free keyfile, which allowed anyone to use the registered version, as they had stopped work on the archiver and stopped accepting registrations. ===Microsoft Cabinet files=== In 1996, Forbes went to work for [[Microsoft]],<ref>{{cite web| url = http://www.linkedin.com/pub/jonathan-forbes/3/70a/a4b |url-status=dead |archive-url=https://web.archive.org/web/20100323133517/http://www.linkedin.com/pub/jonathan-forbes/3/70a/a4b |archive-date=2010-03-23 |title=Jonathan Forbes - LinkedIn}}</ref> and Microsoft's [[Cabinet (file format)|cabinet]] archiver was enhanced to include the LZX compression method. Improvements included a variable search window size; Amiga LZX was fixed to 64 KB, and Microsoft LZX could range on powers of two between 32 and 2048 [[kilobyte]]s (32,768 to 2,097,152 bytes). A special [[preprocessor]] was added to detect Intel [[80x86]] "CALL" instructions, converting their [[operand]]s from relative addressing to absolute addressing, thus calls to the same location resulted in repeated strings that the compressor could match, improving compression of 80x86 binary code. (This technique is later generalized as Branch-Call-Jump [BCJ] filtering.) ===Microsoft Compressed HTML Help (CHM) files=== When Microsoft introduced [[Microsoft Compressed HTML Help]], the replacement for their classic Help file format, they chose to compress all of the HTML data with the LZX algorithm. However, in order to improve random access speed, the compressor was altered to reset itself after every 64 kilobyte (65,536 bytes) interval and re-align to a 16-bit boundary after every 32 kilobyte interval. Thus, the HTMLHelp software could immediately seek the nearest 64 kilobyte interval and start decoding from there, rather than decoding from the beginning of the compressed datastream at all times. ===Microsoft Reader (LIT) files=== Microsoft LIT files for [[Microsoft Reader]] are simply an extension of the CHM file format, and thus also use LZX compression. ===Windows Imaging Format (WIM) files=== [[Windows Imaging Format]], the installation/drive image file format of [[Windows Vista]] and [[Windows 7]], uses LZX as one of the compression methods.<ref>{{cite web |url=http://www.apcstart.com/site/jbannan/2006/07/759/build-your-own-vista-install-dvd |title=APC Magazine Β» Build your own Vista install DVD |access-date=2006-08-19 |url-status=dead |archive-url=https://web.archive.org/web/20060819005213/http://www.apcstart.com/site/jbannan/2006/07/759/build-your-own-vista-install-dvd |archive-date=2006-08-19 }}</ref> === CompactOS NTFS file compression === In [[Windows 10]], LZX compression from Windows Imaging Format is used for the new [[NTFS#CompactOS algorithms|CompactOS]] NTFS file compression. ===Xbox Live Avatars=== Microsoft uses LZX compression on [[Xbox Live Avatars]] to reduce their disk and bandwidth requirements.<ref>{{cite web| url = http://www.xbox.com/en-US/live/engineeringblog/xbox-live-avatar-technology.htm |url-status=dead |archive-url=https://web.archive.org/web/20100411214605/http://www.xbox.com/en-US/live/engineeringblog/xbox-live-avatar-technology.htm |archive-date=2010-04-11 |title=Xbox.com {{!}} Engineering Blog - Xbox Engineering Blog: Avatar Technology}}</ref> ==Decompressing LZX files== The '''unlzx''' program and [[XAD (software)|XAD]] can unpack Amiga LZX archives. The '''cabextract''' program can unpack Microsoft cabinet files using the LZX method.<ref>{{cite web |title=cabextract: Free Software for extracting Microsoft cabinet files |url=https://www.cabextract.org.uk/ |access-date=17 March 2020}}</ref> There are a multitude of cross-platform tools for decompiling or viewing CHM files, as stated in the [[Microsoft Compressed HTML Help|CHM]] article. LIT files can be unpacked using the '''Convert LIT''' software.<ref>{{cite web |title=Converting .LIT files for fun and profit |url=https://www.kyzer.me.uk/pack/convlit/ |website=www.kyzer.me.uk}}</ref> ==See also== {{Portal|Amiga}} * [[List of archive formats]] * [[Comparison of file archivers]] ==References== {{Reflist}} ==External links== * [http://xavprods.free.fr/lzx/ The LZX page, including many versions of the Amiga LZX archiver] * [https://aminet.net/misc/unix/unlzx.c.gz unlzx source code] * [https://www.cabextract.org.uk/ cabextract (includes source code)] * [https://wimlib.net/ wimlib (included source code)] * [http://www.convertlit.com/ Convert LIT (includes source code)] * [https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-patch/cc78752a-b4af-4eee-88cb-01f4d8a4c2bf Microsoft's LZX DELTA specification] {{Compression Methods}}{{Archive formats}} [[Category:Amiga]] [[Category:Lossless compression algorithms]] [[Category:Data compression]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:About
(
edit
)
Template:Archive formats
(
edit
)
Template:Cite web
(
edit
)
Template:Compression Methods
(
edit
)
Template:Portal
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)